Commands
Generally admin commands will have a get5_
prefix and must be used in console. Commands intended for general player
usage are created with sm_
prefixes, which means SourceMod automatically registers a !
and .
chat version of the
command. (For example: sm_ready
in console is equivalent to !ready
or .ready
in chat).
Client Commands
Please note that these can be typed by all players in chat.
!ready
- Marks the player as ready.
!unready
- Marks the player as not ready.
!pause
or !tac
- Requests a tactical pause.
!unpause
- Requests to unpause the game.
!tech
- Requests a technical pause.
!coach
- Moves a client to coach for their team. Requires that
the
sv_coaching_enabled
variable is set to1
.
!stay
- Elects to stay after a knife round win. This can be substituted by
!ct
or!t
to select a side.
!swap
or !switch
- Elects to swap team side after a knife round win. This can be substituted by
!ct
or!t
to select a side.
!stop
- Asks to reload the last match backup file. The opposing team must confirm. Only works if
the backup system is enabled and
the get5_stop_command_enabled is set to
1
.
!forceready
- Force-readies your team, marking all players on your team as ready.
!ringer
- Adds/removes a ringer to/from the home scrim team.
!scrim
- Shortcut for
get5_scrim
.
!get5
- Opens a menu that wraps some common commands. It's mostly intended for people using scrim settings, and has menu buttons for starting a scrim, force-starting, force-ending, adding a ringer, and loading the most recent backup file.
Server/Admin Commands
Please note that these are meant to be used by admins in console.
get5_loadmatch <filename>
- Loads a match configuration file (JSON or KeyValue) relative from the
csgo
directory.
get5_loadbackup <filename>
- Loads a match backup, relative from the
csgo
directory. Only works if the backup system is enabled. If you defineget5_backup_path
, you must include the path in the filename.
get5_last_backup_file
- Prints the name of the last match backup file Get5 wrote in the current series, this is automatically updated each time a backup file is written. Empty string if no backup was written.
get5_loadteam <team1|team2|spec> <filename>
- Loads a team section of a match configuration from a file into a team relative from the
csgo
directory. The file must contain aGet5MatchTeam
object.
get5_loadmatch_url <url>
- Loads a remote (JSON-formatted) match configuration by sending an HTTP(S)
GET
to the given URL. You should put theurl
argument inside quotation marks (""
).
SteamWorks required
Loading remote matches requires the SteamWorks extension.
get5_endmatch [team1|team2]
- Force-ends the current match. The team argument will force the winner of the series and the current map to be set to that team. Omitting the team argument sets no winner (tie).
get5_creatematch [map name] [matchid]
- Creates a BO1 match with the current players on the server.
map name
defaults to the current map andmatchid
defaults tomanual
. You should not provide a match ID if you use the MySQL extension.
get5_scrim [opposing team name] [map name] [matchid]
- Creates a scrim on the current map. The opposing team name defaults to
Away
and the map defaults to the current map.matchid
defaults toscrim
. You should not provide a match ID if you use the MySQL extension.
get5_addplayer <auth> <team1|team2|spec> [name]
- Adds a Steam ID to a team (can be any format for the Steam ID). The name parameter optionally locks the player's name.
get5_addcoach <auth> <team1|team2> [name]
- Adds a Steam ID to a team as a coach. The name parameter optionally locks the player's name.
get5_removeplayer <auth>
- Removes a steam ID from all teams (can be any format for the Steam ID).
get5_addkickedplayer <team1|team2|spec> [name]
- Adds the last kicked Steam ID to a team. The name parameter optionally locks the player's name.
get5_removekickedplayer <team1|team2|spec>
- Removes the last kicked Steam ID from all teams. Cannot be used in scrim mode.
get5_forceready
- Marks all teams as ready.
get5_forcestart
does the same thing.
get5_status
- Replies with JSON formatted match state (available to all clients).
Definition
Properties marked as
undefined
are only present if a match configuration has been loaded.
interface StatusTeam {
"name": string, // (11)
"series_score": number, // (12)
"current_map_score": number, // (13)
"connected_clients": number, // (14)
"ready": boolean, // (15)
"side": "t" | "ct" // (16)
}
interface Status {
"plugin_version": string, // (1)
"gamestate": "none" | "pre_veto" | "veto" | "warmup"
| "knife" | "waiting_for_knife_decision"
| "going_live" | "live" | "post_game", // (2)
"paused": boolean, // (3)
"loaded_config_file": string | undefined, // (4)
"matchid": string | undefined, // (5)
"map_number": number | undefined, // (6)
"round_number": number | undefined, // (7)
"round_time": number | undefined, // (8)
"team1": StatusTeam | undefined, // (9),
"team2": StatusTeam | undefined, // (10)
"maps": [string] | undefined // (17)
}
- The version of Get5 you are currently running, along with that version's commit.
Example: "0.8.1-8ef7ffa3"
- The current state of the game. The definition lists them in the order they occur.
- Whether the game is currently paused.
- The match configuration file currently loaded.
Example: "addons/sourcemod/configs/get5/match_config.json"
. - The current match ID. Empty string if not defined or
scrim
ormanual
if usingget5_scrim
orget5_creatematch
. - The current map number, starting at
0
. You can use this to determine the current map by looking at themaps
array. - The current round number, starting at
0
.-1
ifgamestate
is notlive
. - The number of milliseconds elapsed in the current round.
- Describes
team1
. - Describes
team2
. - The name of the team.
- The current series score; the number of maps won.
- The number of rounds won on the current map.
- The number of currently connected players.
- Whether the team is
!ready
. - The side the team is currently on.
- The maps to be played in the series, i.e.
["de_dust2", "de_mirage", "de_nuke"]
. Maps are played in the order they appear in this array.map_number
is the array index of the current map. Note:maps
is only present if the maps have been decided (i.e. afterveto
).
Example
{
"plugin_version": "0.9.4-8ef7ffa3",
"gamestate": "live",
"paused": false,
"loaded_config_file": "addons/sourcemod/configs/get5/match_config.json",
"matchid": "1743",
"map_number": 1,
"round_number": 14,
"round_time": 14234,
"team1": {
"name": "NaVi",
"series_score": 1,
"current_map_score": 4,
"connected_clients": 5,
"ready": true,
"side": "t"
},
"team2": {
"name": "Astralis",
"series_score": 0,
"current_map_score": 10,
"connected_clients": 5,
"ready": true,
"side": "ct"
},
"maps": [
"de_dust2",
"de_nuke",
"de_inferno"
]
}
get5_listbackups [matchid]
- Lists backup files for the current match or a given match ID if provided. If you define
get5_backup_path
, it will only list backups found under that prefix.
get5_ringer <player>
- Adds/removes a ringer to/from the home scrim team.
player
is the name of the player. Similar to!ringer
get5_debuginfo [file]
- Dumps debug info to a file (
addons/sourcemod/logs/get5_debuginfo.txt
if no file parameter is provided).
get5_dumpstats [file]
- Dumps player stats to a file (
addons/sourcemod/get5_matchstats.cfg
if no file parameter is provided).
get5_test
- Runs get5 tests. This should not be used on a live match server since it will reload a match config to test.
get5_web_available
- Indicates if the Get5 web panel has been installed.