public OnPlayerSpawn(playerid) { for(new i=0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { for(new j=i+1; j < MAX_PLAYERS; j++) { if (IsPlayerConnected(j)) { if (gTeam[i] == gTeam[j]) { ShowPlayerNameTagForPlayer(i,j,1); ShowPlayerNameTagForPlayer(j,i,1); } else { ShowPlayerNameTagForPlayer(i,j,0); ShowPlayerNameTagForPlayer(j,i,0); } } } } } return 1; }