team.NumPlayers

From GMod Wiki

Revision as of 14:50, 22 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax team.NumPlayers( Integer TeamIndex )
Where is this used?
Description:
Gets the number of players in the specific Team.
Returns: Integer number of players
Part of Library: Team
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Team.NumPlayers]Team.NumPlayers [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionGets Team 1's number of players.
Used onNewerShared.png
Code
Msg(team.NumPlayers (1))
OutputOutputs Team 1's number of players in Console.


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox