Quote:
Originally Posted by drekes
try checking if he is connected
PHP Code:
stock can_spawn(id) { if( !is_user_connected(id) || cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED || is_user_alive(id)) return false return true }
|
Ok perfect.
a question:
That stock worked better?
1.
PHP Code:
stock can_spawn(id)
{
if( !is_user_connected(id) || cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED || is_user_alive(id))
return false
return true
}
2.
PHP Code:
stock can_spawn(id) return ( !is_user_connected(id) && (cs_get_user_team(id) == CS_TEAM_SPECTATOR || cs_get_user_team(id) == CS_TEAM_UNASSIGNED || is_user_alive(id))) ? false : true