{$CLEO .cs}
0000: NOP
repeat
wait 400
until SAMP.Available
0B34: samp register_client_command "xd" to_label
@cmd
0B34: samp register_client_command "xdt" to_label @wait
10@ == 0
while true
wait 10@
0470: 3@ = actor $PLAYER_ACTOR current_weapon
if and
02E0: actor $PLAYER_ACTOR firing_weapon
31@ == 1
then
if and
3@ >= 23
3@ <= 25
then jump
@Work
end
if or
3@ == 33
3@ == 34
then jump
@Work
end
end
continue
:work
01B2: give_actor $PLAYER_ACTOR weapon 3@ ammo 0 // Load the weapon model before using this
Actor.StorePos($PLAYER_ACTOR, 0@, 1@, 2@)
2@ += -1.0
Actor.PutAt($PLAYER_ACTOR, 0@, 1@, 2@)
end
:Cmd
0B12: 31@ = 31@ XOR 1
SAMP.CmdRet
:wait
0B35: samp 8@ = get_last_command_params
0AD4: 9@ = scan_string 8@ format "%d" 10@
samp.CmdRet()