From 015e4f2f3316aafca300a518eb9b104f08167c49 Mon Sep 17 00:00:00 2001 From: 9iky6 Date: Fri, 21 Nov 2014 20:56:06 +0600 Subject: [PATCH] fix_alive_spectator Fix invisible living the spectators --- plugins/plmenu.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/plmenu.sma b/plugins/plmenu.sma index 9bf60f0a..b9d00917 100755 --- a/plugins/plmenu.sma +++ b/plugins/plmenu.sma @@ -746,7 +746,7 @@ public actionTeamMenu(id, key) if ( g_CSPlayerCanSwitchFromSpec[player] && g_cstrike && (CS_TEAM_T <= cs_get_user_team(player) <= CS_TEAM_CT)) { - if (is_user_alive(player) && !g_silent[id]) + if (is_user_alive(player) && (!g_silent[id] || destTeamSlot == 2)) { new deaths = cs_get_user_deaths(player) user_kill(player, 1) @@ -756,7 +756,7 @@ public actionTeamMenu(id, key) cs_set_user_team(player, destTeamSlot + 1) } else { - if (is_user_alive(player) && !g_silent[id]) + if (is_user_alive(player) && (!g_silent[id] || destTeamSlot == 2)) { user_kill(player, 1) }