04.05.2011, 10:26
Hi...
I'm working on a little debug filterscript and I'd need to know how / if it's possible to detect if a player is pressing a certain key while he is frozen (TogglePlayerControllable)
if I use the normal way
it doesn't work (I'm not sending that msg in my code, this is just an example)...
it works with no key, I've tried different keys...
is there a plugin, include or another way to do it?
(please don't reply and suggest to use one of the existing debug scripts)
thanks
I'm working on a little debug filterscript and I'd need to know how / if it's possible to detect if a player is pressing a certain key while he is frozen (TogglePlayerControllable)
if I use the normal way
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if((newkeys & KEY_ACTION) && !(oldkeys & KEY_ACTION))
{
SendClientMessage(playerid, 0x999999AA, "Key pressed");
}
return 1;
}
it works with no key, I've tried different keys...
is there a plugin, include or another way to do it?
(please don't reply and suggest to use one of the existing debug scripts)
thanks