CustomGame.SetMaxPlayers(LobbyTeam team, int count);
public void SetMaxPlayers(
    LobbyTeam team, 
    int count

Team to change max players.
Type: CustomGameOW.LobbyTeam

Number to change max player count to.
Type: CustomGameOW.LobbyTeam

Sets maximum player count of blue team, red team, FFA count or spectators.

using System;
using CustomGameOW;


static void Main(string[] args)
    CustomGame cg = new CustomGame();

    // Set max player count of red team (bosses) to half of blue team player count.
    int bosscount = cg.bluecount / 2;
    cg.SetMaxPlayers(LobbyTeam.Red, bosscount);