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

team
Team to change max players.
Type: CustomGameOW.LobbyTeam

count
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);
}