10.05.2015, 18:28
Use JerneJ's encode_lights function:
encode_lights(0, 0, 0, 0);
I am not sure exactly what the positions of them are, but you can easily mess around with it and find out for yourself ingame.
e.g:
encode_lights(0, 0, 0, 0);
I am not sure exactly what the positions of them are, but you can easily mess around with it and find out for yourself ingame.
pawn Код:
encode_lights(light1, light2, light3, light4)
{
return light1 | (light2 << 1) | (light3 << 2) | (light4 << 3);
}
pawn Код:
new panels, doors, lights, tires;
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, encode_lights(0,0,0,1), tires);