+ if (!TeamBalance_IsTeamAllowed(balance, team_id))
+ {
+ LOG_INFO("Player #", client_num_str, " (", pl_name, ") is not allowed to join the ", Team_ColoredFullName(team_num), "^7.");
+ TeamBalance_Destroy(balance);
+ continue;
+ }
+ TeamBalance_Destroy(balance);
+
+ // If so, lets continue and finally move the player
+ Player_SetForcedTeamIndex(client, TEAM_FORCE_DEFAULT);
+ if (MoveToTeam(client, team_id, 6))
+ {
+ successful = strcat(successful, (successful ? ", " : ""), pl_name);
+ LOG_INFO("Player #", client_num_str, " (", pl_name, ") has been moved to the ", Team_ColoredFullName(team_num), "^7.");
+ }
+ else
+ {
+ LOG_INFO("Unable to move player #", client_num_str, " (", pl_name, ")");
+ }