team.GetAllTeams

From Garry's Mod
Jump to: navigation, search
 team.GetAllTeams( )

Contents

Description

Returns a table consisting of information on every defined team

Returns

table

Team info

Examples

Example

Prints all Jobs/Teams on the server. The list in printed from lowest to highest. Information about join able to the player, the score of the team and the colors.

PrintTable( team.GetAllTeams() )

Output:

0:
		Color:
				a	=	255
				b	=	100
				g	=	255
				r	=	255
		Joinable	=	false
		Name	=	Joining/Connecting
		Score	=	0
Personal tools
Navigation