fix_alive_spectator

Fix invisible living the spectators
This commit is contained in:
9iky6 2014-11-21 20:56:06 +06:00
parent 8951f80748
commit 015e4f2f33

View File

@ -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)
}