team.GetPlayers

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

Contents

Description

Returns a table with all player of the specified team.

Arguments

number teamIndex

The team index.

Returns

table

A table of Players that belong to the requested team.

Examples

Example

Prints all the players in a player's team.

PrintTable(team.GetPlayers(ply:Team()))

Output:

List of players.
Personal tools
Navigation