Small help plz.
#2

Try this
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (GetPlayerVehicleSeat(playerid) == 0)
    {
        if (newkeys & KEY_FIRE)
        {
            new vehicleid = GetPlayerVehicleID(playerid);
            if (AVehicleData[vehicleid][Fuel] > 0)
            {
                new engine, lights, alarm, doors, bonnet, boot, objective;             
                GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);

                if (!engine)
                {
                    SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective);
                    GameTextForPlayer(playerid, "~w~Engine turned ~g~on", 2000, 1);
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Small help plz. - by iOxide - 03.01.2014, 17:29
Re: Small help plz. - by iggy1 - 03.01.2014, 17:34
Re: Small help plz. - by iOxide - 03.01.2014, 17:39
Re: Small help plz. - by iggy1 - 03.01.2014, 17:46
Re: Small help plz. - by iOxide - 03.01.2014, 17:48
Re: Small help plz. - by iggy1 - 03.01.2014, 18:03
Re: Small help plz. - by iOxide - 03.01.2014, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)