Team players

How to get all the players from a team? but indivualy so i can print a list on console like

tom : team1
person1 : team1
etc…

http://wiki.garrysmod.com/page/team/GetPlayers ?


 for k,v in pairs(player.GetAll()) do
	if v:Team() == SOME_TEAM then
		print(v:Nick()..": "..team.GetName(SOME_TEAM))
	end
end

There’s also team.GetPlayers


for k, v in pairs(team.GetPlayers(SOME_TEAM)) do
	print(v:Nick()..": "..team.GetName(SOME_TEAM))
end