Posts: 26
Threads: 7
Joined: Dec 2014
Reputation:
0
I'm writing a code on which when it detects player haves 1 ammo on any weapon, it prevents him from shooting his gun. Nevertheless, I've been trying to stop the player being able to shoot and its been impossible for me.
What can I do?
Posts: 26
Threads: 7
Joined: Dec 2014
Reputation:
0
That's interesting. But for esthetics sake, there's a way which the player can't shoot the weapon at all?
Posts: 1,176
Threads: 2
Joined: Nov 2012
Reputation:
0
just clear the player's animation when he tries to aim (u can detect aiming with key or GetAnimationIndex & Name)
Posts: 26
Threads: 7
Joined: Dec 2014
Reputation:
0
This didn't work. I've tried clearing anims when player aims but that doesn't seem to work to stop the aiming.
Posts: 728
Threads: 109
Joined: May 2015
Reputation:
0
check my method,i think its gonna work
SetPlayerArmedWeapon(playerid,0); if ammo is 1.