Derrekgamer
Active member
{$CLEO}
{$INCLUDE SF}
0000:
repeat
wait 0
until SAMP.Available()
alloc 8@ 256
0C11: memset destination 8@ value 0 size 256
alloc 17@ 256
0C11: memset destination 17@ value 0 size 256
14@ = 0
0C11: memset destination 8@ value 0 size 256
0BE1: raknet setup_outcoming_rpc_hook @out_phone
0BE3: raknet setup_incoming_rpc_hook @chat_number
while true
wait 0
if and
14@ == 1
32@ == 60000
then
14@ = 0
end
ut_phone
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SERVERCOMMAND
then
0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_INT
alloc 3@ 1024
0C11: memset destination 3@ value 0 size 1024
0BE8: raknet bit_stream 1@ read_array 3@ size 2@
0C1E: array 3@ element 2@ el_size 1 = 0
if 0C18: $NOT_STRING = strstr string1 3@ string2 "/sms"
then
alloc 15@ 128
alloc 13@ 128
0AA7: call 0x8220AD num_params 4 pop 4 13@ 15@ "/sms %s %s" 3@ 11@
if 11@ == 2
then
0C17: 16@ = strlen 15@
if 16@ <= 3
then
0AA5: call 0x8220AD num_params 4 pop 4 7@v 4@v "/sms %d %n" 3@
005a: 7@ += 3@
if SAMP.IsPlayerConnected(4@)
then
if 003b: 9@ == 4@
then
say "/sms %s %s" 8@ 7@
else
say "/number %d" 4@
6@ = 1
end
0BE0: raknet hook_ret false
end
end
end
free 15@
free 13@
end
Hello i made this script weeks ago it works like a charm. But now the server got an update (anti spam) and i need to ad an waiting time like 5 seconds between /sms %s %s and /number %d
How can i add 5 seconds delay between this 2 commands?
i tryed this :
then
wait 5000
say "/sms %s %s" 8@ 7@
else
wait 5000
say "/number %d" 4@
and is not taking efect,.
when i use /sms id in game the server take only the /number %d command. the /sms %s %s is not working due to spam reason from the server update..
Can you help me? Maybe add a deelay or something
{$INCLUDE SF}
0000:
repeat
wait 0
until SAMP.Available()
alloc 8@ 256
0C11: memset destination 8@ value 0 size 256
alloc 17@ 256
0C11: memset destination 17@ value 0 size 256
14@ = 0
0C11: memset destination 8@ value 0 size 256
0BE1: raknet setup_outcoming_rpc_hook @out_phone
0BE3: raknet setup_incoming_rpc_hook @chat_number
while true
wait 0
if and
14@ == 1
32@ == 60000
then
14@ = 0
end
ut_phone
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SERVERCOMMAND
then
0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_INT
alloc 3@ 1024
0C11: memset destination 3@ value 0 size 1024
0BE8: raknet bit_stream 1@ read_array 3@ size 2@
0C1E: array 3@ element 2@ el_size 1 = 0
if 0C18: $NOT_STRING = strstr string1 3@ string2 "/sms"
then
alloc 15@ 128
alloc 13@ 128
0AA7: call 0x8220AD num_params 4 pop 4 13@ 15@ "/sms %s %s" 3@ 11@
if 11@ == 2
then
0C17: 16@ = strlen 15@
if 16@ <= 3
then
0AA5: call 0x8220AD num_params 4 pop 4 7@v 4@v "/sms %d %n" 3@
005a: 7@ += 3@
if SAMP.IsPlayerConnected(4@)
then
if 003b: 9@ == 4@
then
say "/sms %s %s" 8@ 7@
else
say "/number %d" 4@
6@ = 1
end
0BE0: raknet hook_ret false
end
end
end
free 15@
free 13@
end
Hello i made this script weeks ago it works like a charm. But now the server got an update (anti spam) and i need to ad an waiting time like 5 seconds between /sms %s %s and /number %d
How can i add 5 seconds delay between this 2 commands?
i tryed this :
then
wait 5000
say "/sms %s %s" 8@ 7@
else
wait 5000
say "/number %d" 4@
and is not taking efect,.
when i use /sms id in game the server take only the /number %d command. the /sms %s %s is not working due to spam reason from the server update..
Can you help me? Maybe add a deelay or something