Vehicle Health - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle Health (
/showthread.php?tid=94119)
Vehicle Health -
FreeSoul - 28.08.2009
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);
}
}
|
Re: Vehicle Health -
bogeymanEST - 28.08.2009
The maximum health for a vehicle is 1000, it starts burning at 249.
Re: Vehicle Health -
dice7 - 28.08.2009
pawn Код:
if(IsPlayerInAnyVehicle(i))
{
new Float:health1;
GetVehicleHealth(newcar,health1);
if(health1 <= /*amount*/)
{
TogglePlayerControllable(i, 0);
ShowMenuForPlayer(CarMenu,i);
}
}