24.01.2014, 15:43
In command or whereever you want...
function
pawn Код:
new panels,doors,lights,tires;
GetVehicleDamageStatus(vehicleid,panels,doors,lights,tires);
doors = encode_doors(4, 4, 4, 4, 0, 0);
UpdateVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
function
pawn Код:
encode_doors(bonnet, boot, driver_door, passenger_door, behind_driver_door, behind_passenger_door)
{
#pragma unused behind_driver_door
#pragma unused behind_passenger_door
return bonnet | (boot << 8) | (driver_door << 16) | (passenger_door << 24);
}