15.10.2010, 04:58
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 )
or, as Austin suggested, applying an animation when the player presses fire is worth testing too.
pawn Код:
new bool:inzone[MAX_PLAYERS];
...
public OnPlayerUpdate(playerid)
{
if(inzone[playerid])
{
SetPlayerArmedWeapon(playerid, 0);
}
return 1;
}