SA-MP Forums Archive
How to make some vehicles spawn with more 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)
+--- Thread: How to make some vehicles spawn with more health? (/showthread.php?tid=509245)



How to make some vehicles spawn with more health? - FilipeSilvens - 26.04.2014

Hey I need help with my server.
I want several vehicles to spawn with more health
I used the following example on "public OnVehicleSpawn"

Код:
    new model = GetVehicleModel(vehicleid);
    if(model == 596 && model == 599 && model == 601 && model == 427 && model == 490 && model == 470)
    {
        SetVehicleHealth(vehicleid, 3000);
    }
    return 1;
}



Re: How to make some vehicles spawn with more health? - Zex Tan - 26.04.2014

http://forum.sa-mp.com/showpost.php?...33&postcount=5

This post could help you, but anyway I'm pretty sure that the vehicle would receive more damage than any other vehicle that has a health of 1000 by default.

Also, try searching next time would ya


Re: How to make some vehicles spawn with more health? - PrinceKumar - 26.04.2014

First thing u need to use || instead of &&