I have tested this script
procedure OnFlagScore(ID, TeamFlag: Byte);
var i: Integer;
begin
// if its alpha flag
if TeamFlag = 1 then begin
// First, move all to bravo
for i := 1 to 32 do
Command('/setteam2 ' + inttostr(i));
// Then, repeat this loop until someone is on alpha
while AlphaPlayers < 1 do
Command('/setteam1 ' + inttostr(Random(1, 32)));
end;
end;
And it doesn't work at all. (with bots)
As I understand When Bravo scores, then all moves to Bravo and random player to Alpha.