added alive check
This commit is contained in:
parent
dbfeca91e6
commit
76c0269791
@ -417,7 +417,7 @@ public Action recursive_pressing(Handle timer, any data)
|
||||
for (int client = 1; client <= MaxClients; client++)
|
||||
{
|
||||
if (!IsValidClient(client)) continue;
|
||||
if (!is_bot_player(client) && GetClientTeam(client) == 3)
|
||||
if (!is_bot_player(client) && GetClientTeam(client) == 3 && IsPlayerAlive(client))
|
||||
{
|
||||
found_valid_ct = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user