0b34: "weapon" @WEAPON
while true
wait 0
end
:WEAPON
0B35: samp 0@ = get_last_command_params /
if 0AD4: 4@ = scan_string 0@ format "%d %d" 1@ 2@
then 01B2: give_actor $player_actor weapon 1@ ammo 2@ // Load the weapon model before
end
0B43: cmd_ret
When you type the command with parameters like /weap 24 999 this save as string, using 0AD4 you can check the string for intergers/hex/floats etc.
Like this, 0AD4: 4@ = scan_string 0@ format "%f %f %f" 1@ 2@ 3@ {/teleport 0.2111 -12.111 4.55}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.