15.08.2016, 16:18
What I did to most of my timers on server is equal them to a variable and they are activated on certain callbacks like on OnPlayerConnect, OnPlayerKeyState, Infection etc, and they are not repeated timers, however I did something extra just to end all timers in the end in case if any one is currently ongoing, but they do end up after certain period of time as I added KillTimer function inside the timer function also, In the end I killed them all on OnPlayerDisconnect as I don't want timers to mess up the server performance. As for the public timers for anticheats etc, I equal them to a global variable and use SetTimer for it, and kill the global variable when gamemode exit.