How to disable shooting?
#1

I have disabled simple shooting with left mouse button, but if i hold left button (shooting) and at the same moment while i am holding i change my gun then i can shoot. How to fix that?
Reply
#2

What code did you use to disable the shooting with the mouse?
Copy/Paste it here and I'll make some changes w/ explanation next to it.
Reply
#3

OnPlayerUpdate:

pawn Code:
if(GetPlayerWeapon(playerid)!=0 && IsPlayerInSafeZone(playerid)){SetPlayerArmedWeapon(playerid, 0);return 0;}
Reply
#4

Check for animations as well, also you could return the health lost to players using OnPlayerTakeDamage
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)