From ca633f77b7ab312438904d7e1502b1fc3d5c33a6 Mon Sep 17 00:00:00 2001 From: dogan Date: Thu, 3 Sep 2020 23:41:23 +0200 Subject: [PATCH] FakeClients: latest update running on the server for a while already --- FakeClients/scripting/FakeClients.sp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FakeClients/scripting/FakeClients.sp b/FakeClients/scripting/FakeClients.sp index c24fdb81..c46ef847 100644 --- a/FakeClients/scripting/FakeClients.sp +++ b/FakeClients/scripting/FakeClients.sp @@ -214,6 +214,7 @@ public Action Command_DebugFakes(int client, int argc) { int iFakes = 0; int iFakesInTeam = 0; + int iPlayers = GetClientCount(false); for(int i = 1; i <= MaxClients; i++) { @@ -222,9 +223,14 @@ public Action Command_DebugFakes(int client, int argc) if (g_bFakePopulation[i] && GetClientTeam(i) > 0) iFakesInTeam++; + + if(IsClientConnected(i) && IsFakeClient(i)) + iPlayers--; } ReplyToCommand(client, "[SM] There are currently %d Fake-Clients, from which %d are in Spectate.", iFakes, iFakes - iFakesInTeam); + ReplyToCommand(client, "[SM] Server Population at the end of the previous Map: %d.", g_iPopulation); + ReplyToCommand(client, "[SM] Current Server Population: %d. Difference: %d.", iPlayers, iPlayers - g_iPopulation); return Plugin_Handled; }