21.10.2018, 10:26
I suggest you to use a stock to directly set engine status, instead of writing that much code everytime.
And you need also a stock if a vehicle has engine or not.
pawn Код:
stock SetEngineStatus(vehicleid, status)
{
static engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
return SetVehicleParamsEx(vehicleid, status, lights, alarm, doors, bonnet, boot, objective);
}
pawn Код:
SetEngineStatus(vehicleid, true/false);