25.11.2013, 17:13
I haven't used that function before, but it should be something like:
Or by the examples of the tire states:
pawn Код:
new panels, doors, lights, tires;
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, 0);
// 0 -> all of them inflated tires.
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));

