Skip to content

Commit

Permalink
Change teamnames in scoreboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ShookEagle committed Jul 28, 2024
1 parent 3a0c196 commit cf23264
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions OsVSNOs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ public override void Load(bool hotReload)
AddCommandListener("jointeam", Command_Jointeam);
OTeam = CsTeam.Terrorist;
NOTeam = CsTeam.CounterTerrorist;
Server.ExecuteCommand($"mp_teamname_1 NO's");
Server.ExecuteCommand($"mp_teamname_2 O's");
}

public override void Unload(bool hotReload)
{
Server.ExecuteCommand("mp_teamname_1 COUNTER-TERRORISTS");
Server.ExecuteCommand("mp_teamname_2 TERRORISTS");
}

public HookResult Command_Jointeam(CCSPlayerController? player, CommandInfo info)
Expand All @@ -38,6 +46,9 @@ public void SwapTeams()
OTeam = NOTeam;
NOTeam = temp;

Server.ExecuteCommand($"mp_teamname_1 {(OTeam == CsTeam.CounterTerrorist ? "O's" : "NO's")}");
Server.ExecuteCommand($"mp_teamname_2 {(OTeam == CsTeam.Terrorist ? "O's" : "NO's")}");

var OTags = Utilities.GetPlayers().Where(p => p.IsOTag());
var NOTags = Utilities.GetPlayers().Where(p => !p.IsOTag());

Expand Down

0 comments on commit cf23264

Please sign in to comment.