Fix client validity checks

Unify the client validity checks with AddTargetsToMenuByAuthId checks
This commit is contained in:
Rain 2023-10-15 22:05:25 +03:00
parent 9b06d85771
commit 3b6f18e3b4
No known key found for this signature in database
GPG Key ID: 83230CA2EA4B534E

View File

@ -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;
}