28.11.2014, 04:50
Everyone makes it harder than it is.
When the key is pressed, just execute the command with a parameter like this:
When the key is pressed, just execute the command with a parameter like this:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(PRESSED(KEY_NO))
{
cmd_car(playerid, "engine");
}
return 1;
}