Player.CheckLimit
From GMod Wiki
Gamemode Function: Player.CheckLimit | |
---|---|
Player.CheckLimit is a function that is defined in the Sandbox Gamemode and its derivatives. |
Function | |
Syntax |
Player:CheckLimit( String ) Where is this used? |
Description: | |
Checks to if there is any limit of "sbox_max<string>" left on the current player. | |
Returns: | Boolean |
Part of Library: | Player |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Player.CheckLimit]Player.CheckLimit [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Quits if the local player can't make any more balloons. |
---|---|
Used on | |
Code | if !LocalPlayer():CheckLimit("balloons") then return end |
Output | N/A |
Additional Info
- This is included in the sandbox (or sandbox derived) gamemodes.