Все должно работать правильно.
Вот у меня так работает:
Код
new bool:CanJump[MAX_PLAYERS];
forward Jump(playerid);
public OnFilterScriptInit()
{
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) CanJump[playerid] = true;
return 1;
}
public OnPlayerConnect(playerid)
{
CanJump[playerid] = true;
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerInAnyVehicle(playerid) && newkeys & KEY_ACTION)
{
if(CanJump[playerid] == true) return 1;
new Float:Velocity[3];
GetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2]);
SetVehicleVelocity(GetPlayerVehicleID(playerid), Velocity[0], Velocity[1], Velocity[2] + 0.2);
CanJump[playerid] = false;
SetTimerEx("Jump", 1100, 0, "i", playerid);
}
return 1;
}
public Jump(playerid) return CanJump[playerid] = true;