11.07.2012, 09:40
Ah okay, this is simple. I've done it. Well not with tyres but with panels.
wait are you sure that code pops back and not front tyres? from logic it seems 1010 would pop back front and 0101 would pop back tyres
also note you can't do tires & 3 with a bitwise operator, 3 is no a bit
I'm sorry for not using American English for tyres / tires.
wait are you sure that code pops back and not front tyres? from logic it seems 1010 would pop back front and 0101 would pop back tyres
pawn Код:
new panels, doors, lights, tires;
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
if(tires & 0101)//or in this weird case.. if(tires & 1010)
{
//back tyres are poped
}
//or it might be done by index which it seems like on the wiki
if(tires == 5) //or in this weird case.. if(tires == 10)
{
//back tyres are poped
}
I'm sorry for not using American English for tyres / tires.