jasonbigcock03
Active member
- Joined
- Jul 8, 2017
- Messages
- 37
- Reaction score
- 0
so i made a script NOP weapondata with spawning a M4 but idk what did i wrong. take a look on the script pls.
it says //''Couldn''t get the local variable @.''// let me know how to use @ variables, and how to correctly use NOP in SB. thanks.
Code:
{$CLEO .cs}
////////////////MAIN/////////////
0000:NOP
thread "main"
0B34: samp register_client_command ".m4" to_label @
:blank
wait 0
jump @blank
:nop
wait 0
0BE2: raknet setup_outcoming_packet_hook 1@
jf @nop
wait 100
0BE5: raknet 1@ = get_hook_param 1
IF 1@ == 217
THEN
0BE0: raknet hook_ret false
END
0BE0: raknet hook_ret true
jf @nop
goto @m4
:m4
wait 0
Model.Load(356)
wait 100
if
Model.Available(356)
jf @m4
wait 100
Actor.GiveWeaponAndAmmo($Player_ACTOR, Minigun, 9999)
wait 100
Model.Destroy(356)
0B43: samp cmd_ret