This guide covers setting up admin access, RCON, admin commands, and competitive match configuration for your Counter-Strike 2 server on Legion Hosting. For initial server setup including GSLT, game modes, and connecting, see CS2 Server Setup Guide.
RCON (Remote Console) Setup
RCON lets you run server commands remotely from the in-game console or from GPanel without restarting. It is configured via the rcon_password cvar in your server.cfg.
Setting the RCON Password
Open game/csgo/cfg/server.cfg through the File Manager in GPanel or via SFTP and add or edit:
rcon_password "YourStrongPassword"
Using RCON In-Game
Open the developer console with the ` (tilde) key. First authenticate, then issue commands:
rcon_password YourStrongPassword
rcon changelevel de_mirage
rcon mp_maxrounds 30
rcon status
Once authenticated, prefix every command with rcon for it to execute on the server.
Using RCON from GPanel
You can also run commands directly from the Console tab in GPanel without needing the rcon prefix. This is the easiest method for server management.
Essential Admin Commands
The following commands can be run via RCON or the GPanel console.
Player Management
| Command | Description |
|---|---|
status |
List all connected players with their Steam IDs and ping |
kick <name> |
Kick a player by name |
kickid <userid> |
Kick a player by user ID (from status output) |
banid <minutes> <steamid> |
Ban a player by Steam ID (0 = permanent) |
removeid <steamid> |
Remove a Steam ID from the ban list |
users |
List authenticated RCON users |
Server Control
| Command | Description |
|---|---|
changelevel <map> |
Change the current map (e.g. de_inferno) |
mp_restartgame 1 |
Restart the current game after 1 second |
mp_warmup_end |
End warmup immediately |
mp_pause_match |
Pause the current match |
mp_unpause_match |
Unpause the current match |
bot_add_t / bot_add_ct |
Add a bot to the specified team |
bot_kick |
Kick all bots from the server |
exec <filename> |
Execute a config file (e.g. exec competitive.cfg) |
Competitive Match Configuration
For competitive play, create or edit game/csgo/cfg/autoexec.cfg (executed automatically on every map load) to apply competitive tuning on top of the game mode defaults:
// -----------------------------------------------
// Competitive / match settings
// -----------------------------------------------
mp_overtime_enable 1 // Enable overtime if scores are tied
mp_overtime_maxrounds 6 // Rounds per overtime half (3+3)
mp_overtime_halftime_pausetimer 0
mp_halftime 1 // Enable halftime side switch
mp_maxrounds 24 // Standard 12 per half
mp_freezetime 15 // Seconds players are frozen at round start
mp_roundtime 1.92 // Round time in minutes (1:55 approx)
mp_roundtime_defuse 1.92
mp_buytime 20 // Seconds players can buy after round start
mp_buy_anywhere 0 // Players must be in buy zone
mp_startmoney 800 // Starting money
mp_friendlyfire 1 // Team damage on (standard competitive)
mp_warmup_pausetimer 0
mp_warmuptime 30
// -----------------------------------------------
// Anti-cheat and security
// -----------------------------------------------
sv_pure 1 // Only allow official files (1) or workshop (0)
sv_pure_kick_clients 1
// -----------------------------------------------
// Bot behaviour (remove bots for real matches)
// -----------------------------------------------
bot_quota 0
bot_join_after_player 0
practice.cfg, match.cfg, warmup.cfg) and load them with exec practice.cfg via RCON or the GPanel console.
GOTV (Spectating and Demo Recording)
GOTV lets spectators watch your match with a configurable delay, and allows you to record demos for review. Add these settings to your server.cfg:
tv_enable 1 // Enable GOTV
tv_name "GOTV" // Name shown to spectators
tv_delay 30 // Delay in seconds before GOTV shows action
tv_maxclients 10 // Maximum GOTV spectators
connect YOUR.SERVER.IP:GOTV_PORT.
To record a demo manually via RCON:
tv_record mydemoclip
// ... match plays ...
tv_stoprecord
The demo file is saved in your server's game/csgo/ directory and can be downloaded via SFTP.
Related Articles
- CS2 Server Setup Guide — GSLT, server.cfg, game modes, connecting
- CS2 Troubleshooting — Common errors and fixes
- How to Find Your Server IP and Port
- How to Upload Files via SFTP