I believe what he really wants is, simply.
2 teams, we will call them Humans and Others for an example.
An other kills a human, said human, when respawned, will become an other, and nice versa. Human kills other, other becomes human.
The way you'd do this is: (lol, pseudo code)
function GameConnection::OnClientEnterGame(%this)
{
//split up teams evenly here by looping through all players, checking their teams, seeing which has less players, put them in that team.
parent::OnClientEnterGame(%this);
}
function PlayerStandardArmor:OnDeath(%this,%personwhokilledthem)
{
if(%this.team != %personwhokilledthem.team)
{
%this.team = %personwhokilledthem.team;
parent::ondeath(%this,%personwhokilledthem);
}
else {
parent::ondeath(%this,%personwhokilledthem);
}
Note: This is based on theory, not actual function names or variable names.