Ok, then you have to check if player is connected du to the delayed respawn.
Little optimization on code, so you use only 1 time the team :
PHP Code:
stock can_spawn(id)
{
if( is_user_connected(id)
&& !is_user_alive(id)
&& (CS_TEAM_T <= cs_get_user_team(id) <= CS_TEAM_CT) )
{
return true
}
return false
}
or
PHP Code:
stock can_spawn(id)
{
return ( is_user_connected(id) && !is_user_alive(id) && (CS_TEAM_T <= cs_get_user_team(id) <= CS_TEAM_CT) )
}
or
PHP Code:
#define can_respawn(%1) ( is_user_connected(%0) && !is_user_alive(%0) && (CS_TEAM_T <= cs_get_user_team(%0) <= CS_TEAM_CT) )
__________________