18.01.2011, 14:50
I'm happy with ur reply, but this ain't gonna work :P
Because now you'll only activate the engine if you are one a bike. And i would like the system to work with Vehicle[vehicle][Engine] because i am editing an existing code and this is the easiest and best way to do it for me.
Код:
stock VehicleCheckStatus(playerid) { new vehicle = GetPlayerVehicleID(playerid), VehicleModel = GetVehicleModel(vehicle), engine, lights, alarm, doors, bonnet, boot, objective); if(VehicleModel == 509 || VehicleModel == 481 || VehicleModel == 510) { GetVehicleParamsEx(vehicle, engine, lights, alarm, doors, bonnet, boot, objective); if(engine != 1) SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_ON, VEHICLE_PARAMS_ON, alarm, Vehicle[vehicleid][IsLocked], bonnet, boot, objective); else SetVehicleParamsEx(vehicle, VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, Vehicle[vehicleid][IsLocked], bonnet, boot, objective); } }