20.10.2012, 23:11
Hello.
I wanna turn off engine of all vehicles, but have a problem with this, when i enter a vehicle - engine is turned on...
I wanna turn off engine of all vehicles, but have a problem with this, when i enter a vehicle - engine is turned on...
Код:
new VehicleEngine [MAX_VEHICLES];
Код:
public OnVehicleSpawn (vehicleid) { VehicleEngine [vehicleid] = 0; return 1; }
Код:
public OnPlayerEnterVehicle (playerid, vehicleid, ispassenger) { if (GetPlayerState (playerid) == 2) { new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, VehicleEngine [vehicleid], lights, alarm, doors, bonnet, boot, 0); } return 1; }