added check against bots
This commit is contained in:
parent
59b0ef9d48
commit
9efecd807d
@ -814,7 +814,7 @@ public int GetClosestClient_option1(int targeteam, int client)
|
||||
if (GetEntityMoveType(client) == MOVETYPE_LADDER)
|
||||
return nearest;
|
||||
for (int i = 1; i <= MaxClients; i++)
|
||||
if (IsValidClient(i) && IsPlayerAlive(i) && i != client)
|
||||
if (IsValidClient(i) && IsPlayerAlive(i) && i != client && !is_bot_player(i))
|
||||
{
|
||||
if (!IsAbleToSee(client, i))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user