Cars Exploding
#1

Hi everyone, Happy Saturday! I just wanted to figure out how to make it so when your car totals, it wont explode, but stay at a vehicle health that will make it unusable, so that I can get my mechanic job into use when they /mech.

Thank you in Advance ~ Krakuski
Reply
#2

pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
    new Float:health;
    GetVehicleHealth(vehicleid, health);
    if(health<320)
        {
             SetVehicleHealth(vehicleid, 350);//so it doesn't explode
             //To turn the engine off use my custom function(if you want)
             VehicleEngine(vehicleid,true)
        }
    return 1;
}
you can find the function here:
http://forum.sa-mp.com/showpost.php?...44&postcount=2

But its with a random timer for a realistic start!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)