24.11.2012, 13:59
pawn Код:
if(newkeys & KEY_JUMP)
{
vehid = GetPlayerVehicleID(playerid);
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
if(vehid == 481 || vehid == 509 || vehid == 510)
return 1;
GetVehicleParamsEx(vehid,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine<=0)
{
GameTextForPlayer(playerid, "~g~Starting the engine...", 1200, 1);
SetTimerEx("StartEngine", 3000, 0, "ii", playerid, vehid);
}
else if(engine<=1)
{
GameTextForPlayer(playerid, "~r~Stopping the engine...", 1200, 1);
SetTimerEx("StopEngine", 3000, 0, "ii", playerid, vehid);
}
}
}