new teamA=0;public OnPlayerConnect(playerid){ if(teamA==4){ //Do whatever here to put that player into team B teamA=0; } if(teamA<4){ teamA++; //Do whatever here to put that player into team A }}