From 2be068eb142c8f0ed45bc4a1f2893af73d95b4fe Mon Sep 17 00:00:00 2001 From: dogan Date: Fri, 25 Sep 2020 14:32:17 +0200 Subject: [PATCH] VIPMode: say no to fakes --- _VIPMode/scripting/VIPMode.sp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_VIPMode/scripting/VIPMode.sp b/_VIPMode/scripting/VIPMode.sp index e102b809..9bba9318 100644 --- a/_VIPMode/scripting/VIPMode.sp +++ b/_VIPMode/scripting/VIPMode.sp @@ -82,6 +82,9 @@ public void PerformVIPSelection(bool reselect) { if (IsClientInGame(client) && IsPlayerAlive(client) && ZR_IsClientHuman(client)) { + if(IsFakeClient(client)) + continue; + PotentialVIPClient[PotentialVIPCount] = client; PotentialVIPCount++; } @@ -117,6 +120,9 @@ public Action PerformAdminVIPSelection(int client, int args) { if (IsClientInGame(player) && IsPlayerAlive(player) && ZR_IsClientHuman(player)) { + if(IsFakeClient(client)) + continue; + PotentialVIPClient[PotentialVIPCount] = player; PotentialVIPCount++; }