From 69f859f2ea4eaaaf8a5d7cefa3c8b79ac07c1fcf Mon Sep 17 00:00:00 2001 From: jenz Date: Mon, 14 Aug 2023 15:56:32 +0200 Subject: [PATCH] fixed minithing about disconnected client that zuff mentioned --- discord_verificiation/scripting/unloze_player_time.sp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/discord_verificiation/scripting/unloze_player_time.sp b/discord_verificiation/scripting/unloze_player_time.sp index 47def622..def63181 100644 --- a/discord_verificiation/scripting/unloze_player_time.sp +++ b/discord_verificiation/scripting/unloze_player_time.sp @@ -186,7 +186,12 @@ public void SQL_OnDatabaseConnect(Database db, const char[] error, any data) } g_hDatabase = db; for (int i = 1; i <= MaxClients; i++) - OnClientPostAdminCheck(i); + { + if(IsValidClient(i) && !IsFakeClient(i)) + { + OnClientPostAdminCheck(i); + } + } OnMapStart(); }