Vehicle spawn with 5000hp - 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: Vehicle spawn with 5000hp (
/showthread.php?tid=370157)
Vehicle spawn with 5000hp -
NinjaChicken - 19.08.2012
how can i make it in my server then when i start the gm and then say /createveh 402 when it spawns it will have 5000 hp instead of 1000hp?
Re: Vehicle spawn with 5000hp -
Larceny - 19.08.2012
pawn Код:
//COMMAND - This is an example.
{
new Float:pPos[3];
GetPlayerPos(playerid, pPos[0], pPos[1], pPos[2]);
new vehicleid = CreateVehicle(402, pPos[0], pPos[1], pPos[2], 0.0, -1, -1, 60);
SetVehicleHealth(vehicleid, 5000.0);// <
return 1;
}
Re: Vehicle spawn with 5000hp -
NinjaChicken - 19.08.2012
but also things spawn like faction vehicles n stuff
Re: Vehicle spawn with 5000hp -
Babul - 19.08.2012
inside
OnVehicleSpawn it could work. not tested.
Re: Vehicle spawn with 5000hp -
NinjaChicken - 19.08.2012
yea under onvehiclespawn doesnt work either