#define CS_TEAM_SPEC 3public function(id) { if(get_user_team(id) == CS_TEAM_SPEC) { //player is specting do this }}