{$CLEO}
0000:
repeat
wait 400
until SAMP.Available()
alloc 4@ 128
alloc 6@ 128
0B34: samp register_client_command "ni" to_label @nick
0BDE: pause_thread 0@
while true
wait 0
if key_down 106
then
for 1@ = 0 to 999
if SAMP.IsPlayerConnected(1@)
then
2@ = SAMP.GetPlayerNickname(1@)
if 0C18: 3@ = strstr string1 2@ string2 6@
then
0AD3: 4@ = format "/sms %d" 1@
SAMP.SetChatInputEnabled(1)
SAMP.SetChatInputText(4@)
while key_down 106
wait 0
end
break
end
end
end
end
end
:nick
SAMP.IsCommandTyped(5@)
0AD3: 6@ = format "%s" 5@
SAMP.CmdRet()