maybe needed check

This commit is contained in:
jenz 2023-04-24 23:26:06 +02:00
parent 6b3d5a615b
commit 9be3bbaa76

View File

@ -77,8 +77,11 @@ public Action time_query_activity(Handle timer, any data)
}
public void OnPluginStart()
{
if (!g_hDatabase)
{
Database.Connect(SQL_OnDatabaseConnect, "unloze_playtimestats");
}
RegConsoleCmd("sm_playtime", Command_Time, "retreives total connection time on all connected servers");
RegConsoleCmd("sm_topplaytime", Command_TopTime, "retreives top 12 playtime highscores on all connected servers");