21.02.2010, 19:21
Asuming what he says is true,
You should be using a timer that checks what keys are pressed every ... milliseconds. (in stead of what you are doing atm)
Using GetPlayerKeys...
for example
More info about the GetPlayerKeys.... here https://sampwiki.blast.hk/wiki/GetPlayerKeys
You should be using a timer that checks what keys are pressed every ... milliseconds. (in stead of what you are doing atm)
Using GetPlayerKeys...
for example
pawn Код:
public CheckKeys(playerid)
{
if(GetPlayerKeys(playerid)==...)
{
....
}
}
OnPlayerEnterVehicle()
{
if(vehicleid==...)
{
SetTimer("CheckKeys", 200, 1);
}
}