Disable keys
#5

I would suggest creating a global boolean variable which is set to true if the player is in the area that you want to be 'fight free' ( because I don't like putting proximity checks in onplayerupdate )

pawn Код:
new bool:inzone[MAX_PLAYERS];
...
public OnPlayerUpdate(playerid)
{
     if(inzone[playerid])
     {
          SetPlayerArmedWeapon(playerid, 0);
     }
     return 1;
}
or, as Austin suggested, applying an animation when the player presses fire is worth testing too.
Reply


Messages In This Thread
Disable keys - by Buwla - 15.10.2010, 02:10
Re: Disable keys - by Austin - 15.10.2010, 03:02
Re: Disable keys - by Toni - 15.10.2010, 03:27
Re: Disable keys - by Austin - 15.10.2010, 04:28
Re: Disable keys - by Rachael - 15.10.2010, 04:58
Re: Disable keys - by Rac3r - 15.10.2010, 06:48
Re: Disable keys - by CrucixTM - 15.10.2010, 06:50

Forum Jump:


Users browsing this thread: 1 Guest(s)