mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 02:18:35 +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];
|
char compareId[MAX_AUTHID_LENGTH];
|
||||||
for (int client = 1; client <= MaxClients; client++)
|
for (int client = 1; client <= MaxClients; client++)
|
||||||
{
|
{
|
||||||
if (!IsClientInGame(client) || !IsClientAuthorized(client))
|
if (!IsClientConnected(client) || IsClientInKickQueue(client) || !IsClientAuthorized(client))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user