CustomGame.PlayersDead(List<int> playersConnected);
Syntax
public List<int> PlayersDead
(
    List<int> playersConnected
)

Returns a list of players who are dead.

The code below will switch any blue players that die to red team.

using System;
using CustomGameOW;
using System.Collections.Generic;

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

    while(true)
    {
        // Get list of players dead on blue team.
        List<int> playersdead = cg.PlayersDead(cg.blueslot);

        for (int i = 0; i < playersdead.count; i++)
        {
            // Swap player to red team.
            cg.SwapToRed(playersdead[i]);
        }
    }
}

The code below will award points to the opposite team if someone dies.

using System;
using CustomGameOW;
using System.Collections.Generic;

...

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

    bool[] awarded = new bool[12];

    int redpoints = 0;
    int bluepoints = 0;

    while(true)
    {
        for(int i = 0; i < awarded.Length; i++)
        {
            List<int> playersdead = cg.PlayersDead(cg.playerslot);
            if (playersdead.Contains(i) && awarded[i] == false)
            {
                if (i < 6)
                    redpoints++;
                else
                    bluepoints++;
                awarded[i] = true;
            }
            else if (playersdead.Contains(i) == false && awarded[i])
            {
                awarded[i] = false;
            }
        }
    }
}