Olcay
Active member
- Joined
- Dec 1, 2014
- Messages
- 31
- Reaction score
- 0
Hi everyone
I'm trying to make a cleo that add 3 ammo and then fire weapon. So, I can't make 2 parts of this. How can i fire weapon after added 3 ammo to current weapon and repeat it until has 9000+ ammo?
[shcode=cpp]
{$CLEO .cs}
0000: NOP
repeat
Wait 40
until 0AFA: is_samp_structures_available
while true
wait 0
0470: 1@ = actor $PLAYER_ACTOR current_weapon
041A: 2@ = actor $PLAYER_ACTOR weapon 1@ ammo
if and
key_down 74
not SAMP.ChatInputOpened()
then
wait 0
0114: set_actor $PLAYER_ACTOR weapon 1@ add_ammo 3
///// ??????? //////
end
end
[/shcode]
I'm trying to make a cleo that add 3 ammo and then fire weapon. So, I can't make 2 parts of this. How can i fire weapon after added 3 ammo to current weapon and repeat it until has 9000+ ammo?
[shcode=cpp]
{$CLEO .cs}
0000: NOP
repeat
Wait 40
until 0AFA: is_samp_structures_available
while true
wait 0
0470: 1@ = actor $PLAYER_ACTOR current_weapon
041A: 2@ = actor $PLAYER_ACTOR weapon 1@ ammo
if and
key_down 74
not SAMP.ChatInputOpened()
then
wait 0
0114: set_actor $PLAYER_ACTOR weapon 1@ add_ammo 3
///// ??????? //////
end
end
[/shcode]