10.04.2019, 15:47
Helo! I wana make a mod that send a message automate to a number, but i don't want to write /number x /sms y "Test"
I make a mod that make easy to find a number, /nu = /number. But now i wanna make a command that combine 2 commands, something like that. /nu <id/player> <mesage>. The command will find X number and will sms to that number what i write, k?
EXAMPLE: /nu 5 helo bitch!
Now the command will use for me /number 5 | /sms <number of id 5> helo bitch!
I wanna combine 2 command in one command. I use sanny builder for that.
I make a mod that make easy to find a number, /nu = /number. But now i wanna make a command that combine 2 commands, something like that. /nu <id/player> <mesage>. The command will find X number and will sms to that number what i write, k?
EXAMPLE: /nu 5 helo bitch!
Now the command will use for me /number 5 | /sms <number of id 5> helo bitch!
I wanna combine 2 command in one command. I use sanny builder for that.
PHP Code:
{$CLEO}
0662: "Tapina"
thread "Tapina"
wait 2500
0B34: samp register_client_command "nu" to_label @cmd_10
0AB1: call_scm_func @chatmsg 0
:cmd_39
wait 0
jump @cmd_39
:cmd_10
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
0B36: samp 1@ = get_player_nickname 21@
0AF9: samp say_msg "/number %d " 1@
else
print "~y~/nu + <id jucatorului>" 2000
end
SAMP.CmdRet()
:chatmsg
0AA2: 0@ = load_library "samp.dll" // IF and SET
0085: 1@ = 0@ // (int)
1@ += 2203876
0A8D: 3@ = read_memory 1@ size 4 virtual_protect 1
0085: 2@ = 0@ // (int)
2@ += 409616
chatmsg "{bfff00}Mod creat de : {0080ff}Calinacho{ff0066} Pentru JADE <3 has loaded." -1
0AB2: ret 0