Player is alive in either CT or T. He chooses to GO SPECTATOR, player gets to be joined spectator team. BUT he stays alive as in spec team (can kill CT/T, can be killed also).
the line that should kill him in plugin is :
Code:
case 4:
{
if( is_user_alive( id ) )
{
client_cmd( id, "kill" )
cs_set_user_deaths( id, cs_get_user_deaths( id ) - 1 )
fm_set_user_frags( id, get_user_frags( id ) + 1 )
}
cs_set_user_team( id, CS_TEAM_SPECTATOR, CS_DONTCHANGE )
}
}
The part where he is supposed to DIE while going spec team wont function, Any help pls?