When I 'say /cs' work great but not work fine on ' /spec' on much time and I'm dead but not in Spec ScoreBoard why?
PHP Code:
new CsTeams:team[33];
new deaths[33];
public cmd_spec ( id )
{
if( is_user_alive(id))
{
deaths[id] = cs_get_user_deaths(id);
cs_set_user_deaths(id, deaths[id] - 1);
team[id] = cs_get_user_team(id);
cs_set_user_team(id, CS_TEAM_SPECTATOR);
user_silentkill(id);
}
return PLUGIN_HANDLED;
}
__________________