i need a timer script
#1

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
Reply
#2

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
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)