Vehicle Health
#1

I need some help with the vehicle health.
What is the maximum health of a vehicle?

What health must the car reach to burn?

And a question,if this code is good at a callback that is called every second

Quote:

if(IsPlayerInAnyVehicle(i))
{
new Float:health1;
if(GetVehicleHealth(newcar,health1) <= ((certain health,I don't know how much yet)))
{
TogglePlayerControllable(i, 0);
ShowMenuForPlayer(CarMenu,i);
}
}

Reply
#2

The maximum health for a vehicle is 1000, it starts burning at 249.
Reply
#3

pawn Код:
if(IsPlayerInAnyVehicle(i))
{
     new Float:health1;
     GetVehicleHealth(newcar,health1);
     if(health1 <= /*amount*/)
     {
        TogglePlayerControllable(i, 0);
        ShowMenuForPlayer(CarMenu,i);
     }
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)