05.07.2015, 17:37
Usei como base a funзгo de furar pneus. Nгo testei pq estou incapacitado no momento de fazer teste
PHP код:
new panels, doors, luzes, tires;
new carid = GetPlayerVehicleID(playerid);
GetVehicleDamageStatus(carid, panels, doors, luzes, tires);
doors = encode_doors(IS_REMOVED, IS_REMOVED, IS_REMOVED, IS_REMOVED);
UpdateVehicleDamageStatus(carid, panels, doors, luzes, tires);
encode_doors(doors1, doors2, doors3, doors4)
{
return doors1 | (doors2 << 1) | (doors3 << 2) | (doors4 << 3);
}