SA-MP Forums Archive
Timer - 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: Timer (/showthread.php?tid=501430)



Timer - Mriss - 18.03.2014

So, How do I set a timer that automatically sets vehicles to respawn using my stock
pawn Код:
stock SetEmptyVehiclesToRespawn()



Re: Timer - Mriss - 18.03.2014

Timer should be every ten mins


Re: Timer - VishvaJeet - 18.03.2014

Put it down OnFilterScriptInit()/OnGameModeInit()
Код:
SetTImer("RespawnVehicles",600000,1);
Код:
forward RespawnVehicles();
public RespawnVehicles()
{
      for(new i; i < MAX_VEHICLES; i++)
      SetVehicleToRespawn(i);
      return 1;
}



Re: Timer - Mriss - 18.03.2014

Alright thanks, Repped