totalled cars & teams/skins help
#6

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
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 -
pawn Код:
new Float:health;
    new veh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(veh, health);
And yeah, if it reaches 0 health I don't want to make it doesn't explode (unless the car is upside down without driver in it), any ideas?
Reply


Messages In This Thread
totalled cars & teams/skins help - by Uberanwar - 07.09.2013, 04:59
Re: totalled cars & teams/skins help - by Uberanwar - 07.09.2013, 05:48
Re: totalled cars & teams/skins help - by [HK]Ryder[AN] - 07.09.2013, 05:52
Re: totalled cars & teams/skins help - by Uberanwar - 07.09.2013, 06:31
Re: totalled cars & teams/skins help - by [HK]Ryder[AN] - 07.09.2013, 07:21
Re: totalled cars & teams/skins help - by Uberanwar - 07.09.2013, 07:46

Forum Jump:


Users browsing this thread: 2 Guest(s)