How to Use Admin Commands on Your CS2 Server
Accessing Admin Commands
- Join your CS2 server
- Press ~ to open console
- Type admin commands (you need admin privileges)
Basic Admin Commands
Player Management
kick [player]
- Kick player from serverban [player] [minutes]
- Ban player temporarilybanid [minutes] [steamid]
- Ban by Steam ID
Server Management
changelevel [mapname]
- Change maprestart
- Restart current roundmp_restartgame 1
- Restart match
Game Settings
mp_roundtime 2
- Set round time (minutes)mp_maxrounds 30
- Set max roundsmp_timelimit 0
- Set time limit (0 = no limit)
Getting Admin Access
Method 1: RCON
- Login to the game control panel
- Find RCON password in server settings
- In CS2 console, type:
rcon_password [password]
- Use commands with
rcon
prefix:rcon kick player
Method 2: Admin Plugin
- Install admin plugin (like SourceMod)
- Add your Steam ID to admin list
- Use commands directly without rcon prefix
Useful Server Commands
status
- Show connected playersmaps *
- List available mapsexec [config]
- Execute config filesay [message]
- Send message to all players