CarRespawn help! - 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: CarRespawn help! (
/showthread.php?tid=379009)
CarRespawn help! -
HD-RP - 20.09.2012
Hi, is there a way to set respawn time for all cars on server? I have about 500vehicles and i dont want to change every one manualy :3 If someone could make a fs or something that will set all cars respawn time to never, or at least few hours :3
Re: CarRespawn help! -
Riddick94 - 20.09.2012
SetTimer set loopcount to what time you want, and then in the Timer function use SetVehicleToRespawn in loop which count loop will be your amount of your vehicles.
Re: CarRespawn help! -
clarencecuzz - 20.09.2012
pawn Код:
public OnGameModeInit() //Or OnFilterScriptInit()
{
SetTimer("RespawnAllCars", 7200000, true); //Will respawn cars every 2 hours.
return 1;
}
forward RespawnAllCars();
public RespawnAllCars()
{
for(new v = 0; v < MAX_VEHICLES; v++)
{
SetVehicleToRespawn(v);
}
return 1;
}
Re: CarRespawn help! -
HD-RP - 20.09.2012
Does this mean that all cars will respawn 2hours after the last respawn, or 2hours being inactive? I know i'm preety bad, but everyone was on the begining some time

Than you anyway