nighthack031
Member
To do this, try to modify this, being that every x time, use the same cmd but with a different id. My fault is that it just takes the same id all the time. Somebody could help me? I am new at this :/
Code:
{$CLEO .cs}
0000:
repeat
wait 0
until 0AFA:
0B34: samp register_client_command "aspec" to_label @cmd_mycmd
WHILE TRUE
WAIT 0
IF
30@ == 1
THEN
30@ = 0
0C8A: samp 1@ = get_max_player_id streamed_only 0
FOR 0@ = 0 TO 1@
IF
0B23: samp is_player_connected 0@
THEN
0AF9: "/spec %d" 0@ 5@
WAIT 1000 // DELAY
END
END
END
END
:cmd_mycmd
0B35: samp 5@ = get_last_command_params
30@ = 1
0B43: samp cmd_ret