SetTimer and SetTimerEx
#6

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


Messages In This Thread
SetTimer and SetTimerEx - by Penguin1997 - 14.08.2016, 20:39
Re: SetTimer and SetTimerEx - by Vince - 14.08.2016, 20:56
Re: SetTimer and SetTimerEx - by Penguin1997 - 15.08.2016, 10:50
Re: SetTimer and SetTimerEx - by Stinged - 15.08.2016, 11:46
Re: SetTimer and SetTimerEx - by Logic_ - 15.08.2016, 15:40
Re: SetTimer and SetTimerEx - by Penguin1997 - 15.08.2016, 16:18
Re: SetTimer and SetTimerEx - by Stinged - 15.08.2016, 17:26
Re: SetTimer and SetTimerEx - by Kar - 18.08.2016, 00:30
Re: SetTimer and SetTimerEx - by Mister0 - 19.08.2016, 11:28
Re: SetTimer and SetTimerEx - by WhiteGhost - 19.08.2016, 12:06

Forum Jump:


Users browsing this thread: 1 Guest(s)