just running the query every minute instead of 10. so knifeban, entwatc and display playtime have it more updated
This commit is contained in:
@@ -162,7 +162,7 @@ public void OnPluginStart()
|
|||||||
RegConsoleCmd("sm_topplaytime", Command_TopTime, "retreives top 1000 playtime highscores on all connected servers");
|
RegConsoleCmd("sm_topplaytime", Command_TopTime, "retreives top 1000 playtime highscores on all connected servers");
|
||||||
|
|
||||||
g_h_time_activity = CreateTimer(10.0, time_query_activity, INVALID_HANDLE, TIMER_REPEAT);
|
g_h_time_activity = CreateTimer(10.0, time_query_activity, INVALID_HANDLE, TIMER_REPEAT);
|
||||||
CreateTimer(600.0, UpdateForward, _, TIMER_REPEAT);
|
CreateTimer(60.0, UpdateForward, _, TIMER_REPEAT);
|
||||||
|
|
||||||
ConVar cvar;
|
ConVar cvar;
|
||||||
HookConVarChange((cvar = CreateConVar("sm_mapchooser_afk_detect_time", "120", "Time in seconds until a player is considered as AFK and therefore excluded from player average time.")), Cvar_playerAFKTime);
|
HookConVarChange((cvar = CreateConVar("sm_mapchooser_afk_detect_time", "120", "Time in seconds until a player is considered as AFK and therefore excluded from player average time.")), Cvar_playerAFKTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user