it is fucking possible.That's impossible.
It is completely possible.That's impossible.
/sms <id> ?I want a cleo script, that sends message (/sms %d ...) to all players on the server with a small delay between commands. I need the code, the message will be added by me.
{$CLEO .cs}
0000:
repeat
wait 0
until 0AFA:
0B34: samp register_client_command "smsall" 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: "/sms %d %s" 0@ 5@
WAIT 1000 // DELAY
END
END
END
END
:cmd_mycmd
0B35: samp 5@ = get_last_command_params
30@ = 1
0B43: samp cmd_ret
Can you make /cmd <ldplayer around>?If you don't need to enter a phone number, this code will work for you.
use it with the command /smsall (msg)
example: /smsall hi
PHP:{$CLEO .cs} 0000: repeat wait 0 until 0AFA: 0B34: samp register_client_command "smsall" 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: "/sms %d %s" 0@ 5@ WAIT 1000 // DELAY END END END END :cmd_mycmd 0B35: samp 5@ = get_last_command_params 30@ = 1 0B43: samp cmd_ret
works perfect, thank youIf you don't need to enter a phone number, this code will work for you.
use it with the command /smsall (msg)
example: /smsall hi
PHP:{$CLEO .cs} 0000: repeat wait 0 until 0AFA: 0B34: samp register_client_command "smsall" 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: "/sms %d %s" 0@ 5@ WAIT 1000 // DELAY END END END END :cmd_mycmd 0B35: samp 5@ = get_last_command_params 30@ = 1 0B43: samp cmd_ret
Does it work in server with phone number?this works perfect
works perfect, thank you