couldnot
Active member
- Joined
- Dec 24, 2018
- Messages
- 25
- Reaction score
- 1
I'm working on Auto accept weapons script, but it seems that it's not working, cat anyone help me resolve this.
Code:
0BE3: raknet setup_incoming_rpc_hook @chat_detector
0b34: "autoaccept" @GangHelp_1005
:GangHelp_1005
if 19@ == 1
then
chatmsg "{FFFFFF}Functia AutoAccept este acum {ff0900}OFF{FFFFFF}, vei accepta arme manual{FFFFFF}." -1
19@ = 0
else
chatmsg "{FFFFFF}Functia AutoAccept este acum {3bb44a}ON{FFFFFF}, vei accepta armele in mod automat{FFFFFF}." -1
19@ = 1
end
0B43: samp cmd_ret
:chat_detector
0BE5: raknet 0@ = get_hook_param 1
if and
19@ == 1
0@ == 93
then
0AB1: @GET 2 var_number 2 var_size 4 receiver 25@
if 25@ == 1
then
if or
0AD4: 33@ = scan_string 4@ format "* Arms Dealer %*s offered you a %*s for %*s Use (/accept gun %d)." 17@
0AD4: 33@ = scan_string 4@ format "* Arms Dealer %*s offered you a %*s %*s for %*s Use (/accept gun %d)." 17@
0AD4: 33@ = scan_string 4@ format "* Distribuitorul de arme %*s ti-a oferit un %*s pentru %*s Scrie (/accept gun %d)." 17@
0AD4: 33@ = scan_string 4@ format "* Distribuitorul de arme %*s ti-a oferit un %*s %*s pentru %*s Scrie (/accept gun %d)." 17@
then
say "/ag %d" 17@
end
end
0AC9: free_allocated_memory 4@
end
0BE0: raknet hook_ret true
:GET
0AC6: 3@ = get_label_pointer @MEMORY
int 0@ *= 4
int 3@ += 0@
0A8D: 2@ = read_memory 3@ size 1@ virtual_protect 0
ret 1 2@
:MEMORY
hex
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
end