2hours.gg

CS2 servers by the hour. Pay only when you play.

CS2 server commands reference (MatchZy, RCON, spectator, demos)

Every command useful on a 2hours.gg CS2 server, grouped by where you run it. Chat commands go in the in-game chat (T or Y by default). Console commands go in the developer console (~ key). RCON commands run from the web console on your dashboard or any RCON client.

MatchZy chat commands (during a match)

Type these in the in-game team chat. Any player can use them unless noted otherwise.

.ready
Mark yourself as ready. Match starts when everyone is ready.
.unready
Cancel your ready status.
.stay
After winning the knife round: stay on your current side.
.switch
After winning the knife round: switch sides.
.pause
Request a tactical pause at the end of the current round.
.unpause
Vote to resume play. Both teams must agree before the match resumes.
.tac
Call a tactical timeout (~30s). Limited per team per half.
.stop
Vote to stop the match. Requires majority.
.forcepause
Admin only, force a pause without a vote.
.forceunpause
Admin only, force resume without a vote.
.restart
Admin only, restart the current match from round 1.

Server & map management (RCON or in-game console)

Run these from the web RCON console on your dashboard, or in-game if you have RCON access via rcon_password.

status
List all connected players, their Steam IDs, ping, and the server hostname.
changelevel <map>
Change to the given official map (e.g. changelevel de_mirage). Use the map dropdown in the dashboard for a friendlier UI.
host_workshop_map <id>
Load a Steam Workshop map by its numeric ID. The server downloads missing files automatically.
bot_add
Add one bot to whichever team has fewer players.
bot_add_t
Add a bot to the T side specifically.
bot_add_ct
Add a bot to the CT side specifically.
bot_kick
Remove all bots from the server.
sv_password "<pwd>"
Set the server join password. Use empty string "" to remove. Prefer the Edit password button on the dashboard.
mp_warmup_end
End the warmup phase immediately. MatchZy normally handles this when everyone is .ready.
mp_restartgame 1
Restart the current map after 1 second. Loses match state, usually you want MatchZy .restart instead.

Spectator controls (when watching via GOTV)

Run these in your CS2 console after connecting to the GOTV port (see how to spectate with GOTV).

spec_next
Switch to the next player.
spec_prev
Switch to the previous player.
spec_mode
Cycle through spectator views: first-person, chase, free-look (no-clip).
spec_player <name>
Jump directly to a named player.
disconnect
Leave the GOTV broadcast.

Demo playback (watching .dem files)

Use these when playing back a recorded match, see downloading and watching demos.

playdemo <file>
Start playback of a .dem file from your CS2 replays folder.
demoui
Open the demo playback controls (play/pause/scrub/speed).
demo_pause
Pause the demo at the current tick.
demo_resume
Resume after demo_pause.
demo_gototick <tick>
Jump to a specific server tick. Useful for clipping highlights.
demo_timescale <n>
Set playback speed (1.0 = normal, 0.25 = slow-mo, 4 = fast-forward).
stopdemo
Stop playback and return to the main menu.

Useful client console commands

Handy commands every player can run in their own CS2 console.

connect <ip>:<port>
Connect to a server. Player port is 27015, GOTV is 27020.
connect <ip>:27015; password "<pwd>"
Connect with a server password.
retry
Reconnect to the last server. Useful after a momentary disconnect.
clear_decals
Clear bullet holes and blood from your view. Bind to a key for clutch moments.
jpeg
Save a screenshot to your CS2 screenshots folder.
net_graph 1
Show realtime net stats (ping, loss, choke, framerate). Set to 0 to hide.
cl_showfps 1
Display FPS counter in the corner.

See also

← Back to all guides