From 2f628d98468b103f83692e07d07822920522b90e Mon Sep 17 00:00:00 2001 From: Dogan Date: Sun, 25 Aug 2019 12:53:12 +0200 Subject: [PATCH] FakePopulation: partial fix --- FakePopulation/scripting/FakePopulation.sp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FakePopulation/scripting/FakePopulation.sp b/FakePopulation/scripting/FakePopulation.sp index 545097d3..78641227 100644 --- a/FakePopulation/scripting/FakePopulation.sp +++ b/FakePopulation/scripting/FakePopulation.sp @@ -34,7 +34,7 @@ public void OnPluginEnd() { for(int i = 1; i <= MaxClients; i++) { - if(IsClientConnected(i) && IsFakeClient(i)) + if(IsClientConnected(i) && IsFakeClient(i) && !IsClientSourceTV(i)) KickClient(i); } } @@ -47,7 +47,7 @@ public Action Command_DebugFakes(int client, int argc) int iFakes = 0; for(int i = 1; i <= MaxClients; i++) { - if(IsClientConnected(i) && IsFakeClient(i)) + if(IsClientConnected(i) && IsFakeClient(i) && !IsClientSourceTV(i)) iFakes++; } ReplyToCommand(client, "[SM] There are currently %d Fake Players.", iFakes); @@ -87,7 +87,7 @@ public void CheckPopulation() for(int i = 1; i <= MaxClients; i++) { - if(IsClientConnected(i) && IsFakeClient(i)) + if(IsClientConnected(i) && IsFakeClient(i) && !IsClientSourceTV(i)) iFakes++; } @@ -122,7 +122,7 @@ public void CheckPopulation() { for(int i = 1; i <= MaxClients; i++) { - if(IsClientConnected(i) && IsFakeClient(i)) + if(IsClientConnected(i) && IsFakeClient(i) && !IsClientSourceTV(i)) { KickClient(i); iFakes--;