07.09.2013, 07:21
The max health of a vehicle is 1000, 7% would be 70. Although, we cant detect if it's 70 cuz i believe around 200 or something the car is on fire.
To use the function, just create a new Float:carhealth;
Then get the vehicle ID of the player and then get the health for that vehicle id which will be stored in the variable carhealth
Example -
To use the function, just create a new Float:carhealth;
Then get the vehicle ID of the player and then get the health for that vehicle id which will be stored in the variable carhealth
Example -
pawn Код:
new Float:health;
new veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);