private void JoinBlue(BasePlayer player) { if (BlueTeam.Count == TeamSize) { SendChatMessage(player, CurrentTeamFull); return; } if (RedTeam.Contains(player.userID)) { RedTeam.Remove(player.userID); RedReady.Remove(player.userID); RedParty.RemovePlayer(player.userID); } if (!BlueTeam.Contains(player.userID)) { BlueTeam.Add(player.userID); BlueParty.AddPlayer(player); } BasePlayer.activePlayerList.ForEach(x => SendChatMessage(x, CurrentNow, player.displayName, CurrentBlueLower)); }
private void JoinRed(BasePlayer player) { if (RedTeam.Count == TeamSize) { SendChatMessage(player, CurrentTeamFull); return; } if (BlueTeam.Contains(player.userID)) { BlueTeam.Remove(player.userID); BlueReady.Remove(player.userID); BlueParty.RemovePlayer(player.userID); } if (!RedTeam.Contains(player.userID)) { RedTeam.Add(player.userID); RedParty.AddPlayer(player); } foreach (BasePlayer x in BasePlayer.activePlayerList) { SendChatMessage(x, CurrentNow, player.displayName, CurrentRedLower); } }