From d4934a7e9df4eaa8edb0bd4d66982a5b331a9183 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 16 Apr 2009 00:10:14 +0200 Subject: [PATCH] Improved IsClientPlayer and IsClientAdmin. --- src/zr/zombiereloaded.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zr/zombiereloaded.inc b/src/zr/zombiereloaded.inc index 6896e6e..f2b5f1c 100644 --- a/src/zr/zombiereloaded.inc +++ b/src/zr/zombiereloaded.inc @@ -237,7 +237,7 @@ bool:IsPlayerInList(client) bool:IsClientPlayer(client) { - if (client > 0 && client <= maxclients) + if (!IsFakeClient(client) && client > 0 && client <= maxclients) { return true; } @@ -253,7 +253,7 @@ bool:IsClientPlayer(client) */ bool:IsClientAdmin(client) { - if (GetAdminFlag(GetUserAdmin(client), Admin_Generic)) + if (IsClientPlayer(client) && GetAdminFlag(GetUserAdmin(client), Admin_Generic)) { return true; }