Untested. There have been reports of get_players not returning data properly with particular combinations of flags. If you run into problems with this method then that may be the case. Let me know if you have problems.
PHP Code:
public MoveFromSpec(id)
{
new players[32], tteam, ctteam;
get_players(players, tteam, "che" , "TERRORIST" );
get_players(players, ctteam , "che" , "CT" );
cs_set_user_team( id , ( ctteam >= tteam ) ? CS_TEAM_T : CS_TEAM_CT );
}
__________________