G.MaxPlayers

From GMod Wiki

Revision as of 20:39, 11 November 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax MaxPlayers( )
Where is this used?
Description:
Returns the maximum number of players that can be in the game.
Returns: Number
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.MaxPlayers]G.MaxPlayers [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPrints how many players are allowed.
Used onNewerShared.png
Code
Msg( MaxPlayers() .. " players are allowed on this server!\n")
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox