{$CLEO}
0000:
while not Samp.Available()
wait 0
end
0B34: samp register_client_command "gosms" to_label @cmd
0B34: samp register_client_command "setsms" to_label @setsms
while true
wait 0
if and
30@ == 1
31@ == 1
then
wait 1000
say "/sms 1 %d" 1@
end
end
:cmd
0B12: 30@ = 30@ XOR 1
if 30@ == 1
then
0ACD: show_text_highpriority "~y~[SMS] ~g~Started" time 1000
else
0ACD: show_text_highpriority "~y~[SMS] ~r~Stop" time 1000
end
Samp.CmdRet()
:setsms
0B35: samp 0@ = get_last_command_params
if 0AD4: 0@ = scan_string 0@ format "%d" 1@
then
0ACD: show_text_highpriority "~y~[SMS] ~g~Good" time 1000
31@ = 1
else
0ACD: show_text_highpriority "~y~[SMS] ~r~Error" time 1000
31@ = 0
end
Samp.CmdRet()