samp help
#1

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.
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
0AD420@ = scan_string 20format "%d" 21@
then
    0B36
samp 1@ = get_player_nickname 21@
    
0AF9samp 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 
00851@ = 0// (int) 
1@ += 2203876 
0A8D
3@ = read_memory 1size 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 
Reply
#2

This is a PAWN scripting forum. Pawn is the language used in SA-MP servers.

You're looking for a cleo scripting forum. Check for communities based around cleo or sanny builder.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)