Posts: 362
Threads: 46
Joined: Jul 2013
Reputation:
0
Hello everyone. I'm trying to make a payday that will be called every hour. I checked many filterscripts on forums but all of them start a one hour timer under OnGameModeInit.But I want the payday to be called at the end of each hour like 1:00:00, 5:00:00 etc...If I use the methods I found it would be random as hell as it would depend on when I started the server. I hope you guys can help.
Posts: 362
Threads: 46
Joined: Jul 2013
Reputation:
0
I think you didn't read what I wrote...Any idiot can do that. But I need it to give payday at the end of an hour not an hour after starting the server.
Posts: 3,085
Threads: 37
Joined: Nov 2012
Reputation:
0
Well it depends. How are you using the time for an hour?
If you're using a one second timer for your time in hours/minutes, just check when minutes == 0, then issue the payday.
Posts: 362
Threads: 46
Joined: Jul 2013
Reputation:
0
Well, I am doing the same thing but with seconds, as the minute will be 0 for 60 seconds which means they gonna have 60 paydays. But sometimes it gives you your paycheck and sometimes it doesn't
Posts: 362
Threads: 46
Joined: Jul 2013
Reputation:
0
Oh now I see how that works. I saw that same code on an NGG edit when I tries to look at their payday system but I didn't understand how it worked so I didn't use it.