CLEO Help How do I remove 1 weapon the one in my hand?

CLEO related
Status
Not open for further replies.

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Code:
0470: 0@ = actor $PLAYER_ACTOR current_weapon
0555: remove_weapon 0@ from_actor $PLAYER_ACTOR
 

Afandimi

Active member
Joined
Mar 11, 2014
Messages
50
Reaction score
0
If that's the cmd why is this saying unknown directive deagledd it is giving me an error about the name

{$CLEO .cs}

//-------------MAIN---------------
thread 'TPTER'
0662: NOP "XZYTRO SAYS HI"
wait 10
Model.Load(#MICRO_UZI)
038B: load_requested_models 

:NONAME_28
wait 10
if and
  $ONMISSION == 0
Model.Load(#MICRO_UZI)
jump @REGCMD

:REGCMD
wait 0
0B34: samp register_client_command "gun1" to_label @DEAGddd
0B34: samp register_client_command "gun2" to_label @REMOVE

:IFCMDTYPED
wait 0
if
SAMP.IsCommandTyped($command)
else_jump @IFCMDTYPED

@DEAGddd
01B2: give_actor $PLAYER_ACTOR weapon 28 ammo 328 // Load the weapon model before using this
wait 100
Model.Destroy(#MICRO_UZI)
wait 2900
0B43: samp cmd_ret

@REMOVE
0470: 0@ = actor $PLAYER_ACTOR current_weapon
0555: remove_weapon 0@ from_actor $PLAYER_ACTOR
wait 2900
0B43: samp cmd_ret
 

monday

Expert
Joined
Jun 23, 2014
Messages
1,127
Solutions
1
Reaction score
158
@DEAGddd
01B2: give_actor $PLAYER_ACTOR weapon 28 ammo 328 // Load the weapon model before using this
wait 100
Model.Destroy(#MICRO_UZI)
wait 2900
0B43: samp cmd_ret

@REMOVE
0470: 0@ = actor $PLAYER_ACTOR current_weapon
0555: remove_weapon 0@ from_actor $PLAYER_ACTOR
wait 2900
0B43: samp cmd_ret


:DEAGddd
:REMOVE
 
Status
Not open for further replies.
Top