KeyStateChange
#1

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if((newkeys & KEY_RIGHT) && !(oldkeys & KEY_RIGHT))
	{
	    SendDebug(playerid, "Key Right Detected!");
	}

	if((newkeys == KEY_RIGHT))
	{
	    SendDebug(playerid, "Key Right Detected! (Check 2)");
	}
        return 1;
}
When i connect to server and press right key or D (Walk to right) it does not detect it at all but it detects it when i press space or right aim key...(On foot and in vehicle)

Im not only one...
https://sampforum.blast.hk/showthread.php?tid=457090
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)