Spix
Well-known member
- Joined
- Sep 23, 2013
- Messages
- 353
- Reaction score
- 1
What have i done wrong, Can anyone help me with this? It's a cleo i made that when i do /setammo [ammo] it gives me the amount.
{$CLEO}
0000: "SpexxTr0n"
0662: "www.Ugbase.EU"
wait 2000
0B34: "setammo" to_label @SpexxTr0n
if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end
while true // tis just a loop
wait 0
end
:SpexxTr0n
0001: wait 0 ms
0B35: samp 0@ = get_last_command_params
if
0AD4: 0@ = 0@ format "%d" 1@
then
0470: 2@ = actor $PLAYER_ACTOR current_weapon
041A: 3@ = actor $PLAYER_ACTOR weapon 2@ ammo
005A: 3@ += 1@ // (int)
017B: set_actor $PLAYER_ACTOR weapon 2@ ammo_to 3@
end
0B43: cmd_ret
{$CLEO}
0000: "SpexxTr0n"
0662: "www.Ugbase.EU"
wait 2000
0B34: "setammo" to_label @SpexxTr0n
if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end
while not SAMP.Available()
wait 100
end
while true // tis just a loop
wait 0
end
:SpexxTr0n
0001: wait 0 ms
0B35: samp 0@ = get_last_command_params
if
0AD4: 0@ = 0@ format "%d" 1@
then
0470: 2@ = actor $PLAYER_ACTOR current_weapon
041A: 3@ = actor $PLAYER_ACTOR weapon 2@ ammo
005A: 3@ += 1@ // (int)
017B: set_actor $PLAYER_ACTOR weapon 2@ ammo_to 3@
end
0B43: cmd_ret