added alive check

This commit is contained in:
christian 2021-06-30 12:37:35 +02:00
parent dbfeca91e6
commit 76c0269791

View File

@ -417,7 +417,7 @@ public Action recursive_pressing(Handle timer, any data)
for (int client = 1; client <= MaxClients; client++) for (int client = 1; client <= MaxClients; client++)
{ {
if (!IsValidClient(client)) continue; 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; found_valid_ct = true;
} }