18.09.2010, 16:18
How can I detect if player has pressed key space ?

new keys[3];
GetPlayerKeys(playerid, keys[0], keys[1], keys[2]); //keys[0] contains the "other" key values, keys[1] contains the left & right value, and keys[2] contains the up & down value.
if(keys[0] & KEY_SPRINT)//If the player presses the sprint key, usually spacebar
{
//Do stuff
}