05.08.2011, 10:18
And it sets the engine to 0 every time.
This doesn't.
pawn Код:
stock SetEngine(vehicleid) {
new engine,lights,alarm,doors,bonnet,boot,objective;
if(EngineStatus[vehicleid]) {
EngineStatus[vehicleid] = 0;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective); //ENGINE = 0
} else {
EngineStatus[vehicleid] = 1;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(vehicleid, 1, lights, alarm, doors, bonnet, boot, objective); //ENGINE = 1
}
return 1;
}