Posts: 63
Threads: 15
Joined: Jun 2009
Reputation:
0
Is it possible to disable keys like KEY_FIRE?
ex. to make a fighting free zone.
Posts: 253
Threads: 15
Joined: Jul 2006
Reputation:
0
Could apply an animation when they do that? Wouldn't stop them, doing it, but it will stop the fight.
Posts: 253
Threads: 15
Joined: Jul 2006
Reputation:
0
But if I'm not wrong The Toni, that means if the guys holds that key, he could use it to run away because nobody would see his location, no?
Posts: 500
Threads: 15
Joined: May 2007
Reputation:
0
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.