Onvehiclespawn problem - 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: Onvehiclespawn problem (
/showthread.php?tid=336014)
Onvehiclespawn problem -
Face9000 - 20.04.2012
Hello,i want set the vehicles health (ALL vehicles) to 970.0,so i made this:
pawn Код:
public OnVehicleSpawn(vehicleid)
{
SetVehicleHealth(vehicleid,970);
return 1;
}
But doesn't work,health is still at 1000.
Re: Onvehiclespawn problem -
ViniBorn - 20.04.2012
Respawn the vehicles at end of OnGameModeInit
pawn Код:
for(new i; i != MAX_VEHICLES; i++)
SetVehicleToRespawn(i);
Re: Onvehiclespawn problem -
Jows - 20.04.2012
YEs but this on OnGameModeInit
Re: Onvehiclespawn problem -
Face9000 - 20.04.2012
Ok thanks i'll do.