23.05.2010, 13:40
Well, the wiki for UpdateVehicleDamageStatus has the status for only tires. What I would like to know is, what status turns off the lights, and what status turns on the lights? I've tried 0, and 15. Both of them do nothing for some reason. Maybe i'm doing it wrong? :\
And of course at the top, I have:
Any help is much appreciated,
Sky.
pawn Код:
else if(PRESSED(KEY_SUBMISSION))
{
new vehicleid, panels, doors, lights, tires;
if(statuslight == 0)
{
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, 15, tires);
statuslight = 1;
}
if(statuslight == 1)
{
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires);
statuslight = 0;
}
}
pawn Код:
new statuslight = 0;
Sky.