new Teams;public OnPlayerConnect(playerid){ gTeam[playerid]= Teams;//Or whatever your team system is if(Teams < 2) Teams++; else Teams=0; return 1;}