CLEO Help I think this is simple enough??

CLEO related
Status
Not open for further replies.

noobish

Active member
Joined
Feb 16, 2014
Messages
120
Reaction score
0
A cleo mod which searches if ID 0 up to 30 is available then return a samp.message saying "ID %d is available, please recon asap!"

I think its a simple loop which searches if ID 0-30 (0 upto 30) is available. How?
 

noobish

Active member
Joined
Feb 16, 2014
Messages
120
Reaction score
0
Opcode.eXe said:
for 0@ = 0 to 30 step 1
 if
 connected id 0@
 then
       chatmsg pls reconnectu nub
 
 end
end


for 0@ = 0 >= 30
if
connected id 0@
then
end

didnt worked
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
noobish said:
i still need some help

So it's realy hard ?.?

[shcode=cpp]
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

WHILE TRUE
    WAIT 0
    
IF 0B61:  samp is_local_player_spawned
THEN /// Nr 1   
    for 0@ = 0 to 30  /// Nr 2
    IF 0B23:  samp is_player_connected 0@
    THEN /// Nr 3
        0B36: samp 1@ = get_player_nickname 0@
        printf "Pls %s reconnect nub !" time 1500 1@   /// See only you..
    END /// END Nr 1
END /// END Nr 2
END /// END Nr 3
    
END /// END WHILE TRUE
[/shcode]
 
Status
Not open for further replies.
Top