new const g_szTeams[4] ={ "UNASSIGNED", "TERRORIST", "CT", "SPECTATOR"}new g_Msg_TeamInfo;public plugin_init(){ g_Msg_TeamInfo = get_user_msgid("TeamInfo");}public yourFunction(id){ if(get_user_team(id) == 2) { setScoreTeam(id, 3); // As you should know, 1 = T, 2 = CT and 3 = SPECTATOR(0 = UNASSIGNED). }}setScoreTeam(index, team){ message_begin(MSG_BROADCAST, g_Msg_TeamInfo); write_byte(index); write_string(g_szTeams[team]); message_end();}