Disable keys
#6

OnPlayerKeyStateChange, check if the player presses KEY_FIRE, check if he's in range of the zone, if so TogglePlayerControllable(playerid, true), or as Rachael suggested SetPlayerArmedWeapon(playerid, 0).

Using OnPlayerUpdate, you can imagine how many times SetPlayerArmedWeapon(playerid, 0) would be called, way too much.
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)