Engine off/on with keys help
#2

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);
            }
        }
    }
Reply


Messages In This Thread
Engine off/on with keys help - by ItalianKiller1568 - 24.11.2012, 13:54
Re: Engine off/on with keys help - by Boooth - 24.11.2012, 13:59
Re: Engine off/on with keys help - by jakejohnsonusa - 24.11.2012, 14:01
Re: Engine off/on with keys help - by ItalianKiller1568 - 24.11.2012, 14:07
Re: Engine off/on with keys help - by ItalianKiller1568 - 24.11.2012, 16:03

Forum Jump:


Users browsing this thread: 1 Guest(s)