29.12.2011, 16:12
Hello guys,in OnGameModeInit i've this timers:
Zonetimer is for gangwars system and runs every 2 seconds.
AntiCheat timer is obvious - Runs every 5 seconds.
SStats save all players stats every 10 minutes.
SendMsg is to send random messages on chat,runs every 60 seconds.
My question is,are they optimized or they run too fast and this will cause lag?Thanks.
pawn Код:
zonetimer = SetTimer("ZoneUpdate", 2000, true);
timer1 = SetTimer("AntiCheat",5000,true);
SetTimer("SStats",10*60*1000,1);
SetTimer("SendMSG", 60000, true);
AntiCheat timer is obvious - Runs every 5 seconds.
SStats save all players stats every 10 minutes.
SendMsg is to send random messages on chat,runs every 60 seconds.
My question is,are they optimized or they run too fast and this will cause lag?Thanks.