From 3b6f18e3b4a24e14f6159e449a35aad9e630c65c Mon Sep 17 00:00:00 2001 From: Rain Date: Sun, 15 Oct 2023 22:05:25 +0300 Subject: [PATCH] Fix client validity checks Unify the client validity checks with AddTargetsToMenuByAuthId checks --- plugins/basebans/ban.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/basebans/ban.sp b/plugins/basebans/ban.sp index 61109f975..a00987194 100644 --- a/plugins/basebans/ban.sp +++ b/plugins/basebans/ban.sp @@ -342,7 +342,7 @@ int GetClientOfAuthId(const char[] authid, AuthIdType authIdType=AuthId_Steam2) char compareId[MAX_AUTHID_LENGTH]; for (int client = 1; client <= MaxClients; client++) { - if (!IsClientInGame(client) || !IsClientAuthorized(client)) + if (!IsClientConnected(client) || IsClientInKickQueue(client) || !IsClientAuthorized(client)) { continue; }