[Help] Repairing just a part of a vehicle
#4

I haven't used that function before, but it should be something like:

pawn Код:
new panels, doors, lights, tires;  
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 0);
// 0 -> all of them inflated tires.
Or by the examples of the tire states:
pawn Код:
new Panels, Doors, Lights, Tires;
GetVehicleDamageStatus(vehicleid), Panels, Doors, Lights, Tires);
// For 4-wheeled vehicles:
UpdateVehicleDamageStatus(vehicleid, Panels, Doors, Lights, (Tires | 0b0000));
// For 2-wheeled vehicles (bikes):
UpdateVehicleDamageStatus(vehicleid, Panels, Doors, Lights, (Tires | 0b00));
Reply


Messages In This Thread
[Help] Repairing just a part of a vehicle - by RooK1e - 25.11.2013, 17:03
Re: [Help] Repairing just a part of a vehicle - by Konstantinos - 25.11.2013, 17:06
Re: [Help] Repairing just a part of a vehicle - by RooK1e - 25.11.2013, 17:08
Re: [Help] Repairing just a part of a vehicle - by Konstantinos - 25.11.2013, 17:13
Re: [Help] Repairing just a part of a vehicle - by RooK1e - 25.11.2013, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)