06.09.2009, 00:30
Well, i have made a quick test:
and it prints "DEBUG: debugMsg - works?" message into the console only when player is spawned (and if he presses the KEY_ACTION key), so i guess you can't detect any key when player is not spawned but i remember that someone (i think ******) talked about YSI that can detect keys but only left and right, but i'm not sure.
Edit: Found it - http://forum.sa-mp.com/index.php?top...2415#msg742415
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(newkeys & KEY_ACTION)
{
printf("DEBUG: debugMsg - works?");
}
return 1;
}
Edit: Found it - http://forum.sa-mp.com/index.php?top...2415#msg742415