SA-MP Forums Archive
vehicle without an engine - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: vehicle without an engine (/showthread.php?tid=490959)



vehicle without an engine - MatriXgaMer - 28.01.2014

Hey guys i made an Vehicle Without an Engine.(i am trying to do it xD)
I get no errors here is my on player enter vehicle:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(IsPlayerInVehicle(playerid, RentAuto[0]))
    {
        SetVehicleParamsEx(RentAuto[0], 0, 0, 0, 0, 0, 0, 0);
        AutmobilKomponenti[RentAuto[0]][Motor]--;
        AutmobilKomponenti[RentAuto[0]][Svetla]--;
    }
    return 1;
}
But when i enter the vehicle i can drive it


Re: vehicle without an engine - dannyk0ed - 28.01.2014

pawn Код:
ManualVehicleEngineAndLights();
Under OnGameModeInit