From 76c026979190b253654797e841f1027345ce16e1 Mon Sep 17 00:00:00 2001 From: christian Date: Wed, 30 Jun 2021 12:37:35 +0200 Subject: [PATCH] added alive check --- AutismBotIngame/scripting/autism_bot_info.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AutismBotIngame/scripting/autism_bot_info.sp b/AutismBotIngame/scripting/autism_bot_info.sp index b51df7bf..9a6c61e2 100644 --- a/AutismBotIngame/scripting/autism_bot_info.sp +++ b/AutismBotIngame/scripting/autism_bot_info.sp @@ -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; }