Engine problem
#1

How come when player enters a vehicle it shows engine are off but the engines are on when i start driving. after when i did /engine it said you have started your engines so i get out my car and enter again and it says your engine are off

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new vid = GetPlayerVehicleID(playerid);
    if(vEngine[vid] == 0)
    {
        SendClientMessage(playerid,orange,"That vehicle engine is off, use /engine to turn it on");
        vEngine[vid] = 0;
        SetVehicleParamsEx(vid, 0, lights, false, doors, bonnet, boot, objective);
    }
    return 1;
}
Reply
#2

pawn Код:
//ongamemodeinit
ManualVehicleEngineAndLights();
Then you dont need a variable to store the engine status.
Reply
#3

Do i only add that or add that and remove the lines with variables like vEngine etc
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)