private int GetClanPopulation(PlayerModel player, int teamId)
{
if (player == null) return 0;
Scope scope = Scope.Total;
switch (teamId) {
case 1:
scope = Scope.TeamOne;
break;
case 2:
scope = Scope.TeamTwo;
break;
case 3:
scope = Scope.TeamThree;
break;
case 4:
scope = Scope.TeamFour;
break;
default:
break;
}
return CountMatchingTags(player, scope);
}