Car explosion prevention. - 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)
+--- Thread: Car explosion prevention. (
/showthread.php?tid=345588)
Car explosion prevention. -
vIBIENNYx - 25.05.2012
Is there a way to stop cars exploding when flipping and taking too much damage, stay on fire, but not explode?
Re: Car explosion prevention. -
IceCube! - 25.05.2012
Yeah, OnVehicleTakeDamge(..)
under that header put
pawn Код:
if(health < 300) // Health being the correct variable for it found in the header.
{
SetVehicleHealth(vehicleid, 350);
return 1;
}
Note: I'm unsure if health is the correct interger to check the vehicles health, it will be noted in the command header.
Re: Car explosion prevention. -
Dan. - 25.05.2012
If you set health to 350, it wont stay on fire..
Re: Car explosion prevention. -
vIBIENNYx - 25.05.2012
The car sets on fire at 240 hp, but it blows up regardless, so I'm wondering if there is a way to make it, not.