mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-06 18:08:36 +00:00
Fix client validity checks
Unify the client validity checks with AddTargetsToMenuByAuthId checks
This commit is contained in:
parent
9b06d85771
commit
3b6f18e3b4
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user