SA-MP Forums Archive
i need a timer script - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: i need a timer script (/showthread.php?tid=252738)



i need a timer script - gahal156 - 02.05.2011

i need a script that every hour like 17:00 18:00 19:00 will do a command
for example i need at 17:00 the server will do the command /spayday and then at 18:00 it will do this command again


Re: i need a timer script - park4bmx - 02.05.2011

well you would need to set a timer Under
OnPlayerSpawn ot OnPlayerConnect your coice
then just add a timer
pawn Код:
SetTimer("AfterTimer",3600000,true); //3600000 is 1 hour in milliseconds LoL

//Then when is 1 houre
forward AfterTimer();
public AfterTimer(playerid)
{
//your Pay Day Script
}