Menu
 

RCON Commands - Counter Strike 2 Wiki

Counter Strike 2: RCON Commands Reference

RCON (Remote Console) provides complete server administration capabilities without requiring you to be in-game. This comprehensive guide covers all essential RCON commands for player management, map control, and server monitoring in Counter Strike 2.

Setting Up RCON

Configuring RCON Password

Before using RCON, ensure you have set a password in your server.cfg:

rcon_password "your_secure_password"

Security Warning: Use strong passwords and never share your RCON password. RCON provides full server control.

Connecting to RCON

There are multiple ways to connect to your server via RCON:

In-Game Console

rcon_password "your_password"

Command Line (Linux/Mac)

rcon -a 192.168.1.100:27015 -p "your_password" "command"

External RCON Clients

  • Bruteforce RCON - Popular for CS servers
  • SourceRCON - Open-source alternative
  • RCON Commander - Web-based RCON interface

Essential RCON Commands

Server Information

status                  // Display server status and player list
stats                   // Show server performance statistics
version                 // Display server version
hostname                // Show server name

Map Management

changelevel de_dust2    // Change map immediately (no voting)
map de_dust2            // Restart server on specified map
mp_restartgame 1        // Restart game in 1 second
sv_pausable 1          // Allow pausing (requires sv_pausable 1 in cfg)
pause                   // Pause/unpause the game

Match Control

mp_startmatch           // Start competitive match
mp_endmatch             // End current match
mp_restartgame 3        // Restart match in 3 seconds
mp_timelimit 0         // Unlimited match time (0 = no limit)
mp_maxrounds 30        // Set maximum rounds
mp_halftime 1           // Enable halftime
mp_halftime_duration 15 // Halftime duration in seconds

Player Management Commands

Kicking Players

kick player_name        // Kick player by name
kickid player_id        // Kick player by ID
kick "player_name" "reason"  // Kick with reason message

Banning Players

banid 60 "STEAM_0:0:12345" "reason"  // Ban for 60 minutes
banid 0 "STEAM_0:0:12345"                // Permanent ban
banip 192.168.1.50        // Ban by IP address
writeid                 // Write bans to banned_user.cfg

Unbanning Players

removeid "STEAM_0:0:12345"  // Remove Steam ID ban
removeip 192.168.1.50        // Remove IP ban
writeid                   // Save changes

Team Management

mp_swapteams           // Swap CT and T teams
mp_scrambleteams       // Randomize team assignment
mp_autoteambalance 1   // Enable team balancing
mp_limitteams 2        // Allow 2 more players on larger team

Player ID Lookup

Use status command to find player IDs and Steam IDs. Copy exactly for ban commands.

Gameplay Configuration

Round Settings

mp_roundtime 1.92        // Round time in minutes (1.92 = 1:55)
mp_roundtime_defuse 1.92  // Bomb mode round time
mp_roundtime_hostage 2     // Hostage mode round time
mp_freezetime 15          // Buy time in seconds
mp_c4timer 40            // Bomb timer in seconds
mp_plant_c4_any 0        // CT can plant bomb (0 = disabled)

Economy Settings

mp_startmoney 800        // Starting money per player
mp_maxmoney 16000        // Maximum money cap
mp_playercashawards 1    // Enable cash awards
mp_teamcashawards 1      // Enable team cash rewards

Friendly Fire

mp_friendlyfire 1        // Enable friendly fire
mp_friendlyfire_delay 5   // Delay before FF is active
mp_tkpunish 0           // Punish team kills

Server Administration

Password Management

sv_password "secret"     // Set server password
sv_password ""           // Remove password (public server)
rcon_password "newpass"  // Change RCON password

Server Slots

sv_maxplayers 10         // Set maximum players (10 for 5v5)
sv_visiblemaxplayers -1  // Show actual player count (-1 = true)

Network Settings

sv_lan 0                // Set to internet mode (not LAN)
sv_region 255            // All regions (0-7 for specific regions)
sv_password ""           // Remove LAN restriction

Broadcast Messages

say "Server message"     // Send message to all players
say_team "Team message"   // Send message to both teams
echo "Log message"        // Write to server log

Advanced RCON Commands

Debugging & Logging

net_graph 1             // Enable network graph for all players
mp_logdetail 3           // Detailed damage logging
sv_logbans 1            // Log bans
sv_logecho 1            // Echo to log file

Performance Monitoring

sv_showfps 1            // Show server FPS
sv_fps 0                // Toggle FPS display
sv_stats 1              // Display detailed stats
sv_maxrate 0            // Unlimited bandwidth

Cheat & Testing

sv_cheats 1             // Enable cheats (for testing only!)
noclip                   // Fly mode
give weapon_ak47         // Give weapon
god                      // God mode
mp_restartgame 1         // Restart to apply changes

Important: Never use sv_cheats 1 on public or competitive servers. Use only for private testing.

Bot Management

bot_add                 // Add bot to CT team
bot_add_t               // Add bot to T team
bot_add_ct              // Add bot to CT team
bot_kick                // Kick all bots
bot_kick player_name     // Kick specific bot
bot_quota 10            // Set number of bots
bot_quota_mode "fill"   // Fill empty slots with bots
bot_difficulty 3        // 0=easy, 1=normal, 2=hard, 3=expert

Map Commands

Map Voting

sv_vote_level_change 1  // Allow map voting
sv_vote_issue_changelevel_allowed 1  // Enable map change votes
mp_nextlevel            // Get next map in rotation

Workshop Maps

host_workshop_map "mapid"    // Set workshop map
workshop_start_map ""            // Starting workshop map
host_workshop_collection "id"    // Set workshop collection

Team Management

mp_teamname_1 "Team A"    // Set CT team name
mp_teamname_2 "Team B"    // Set T team name
mp_teamflag_1 "US"        // Set CT team flag
mp_teamflag_2 "EU"        // Set T team flag
mp_teammatchstat_1 0      // Set CT team score
mp_teammatchstat_2 0      // Set T team score

Essential RCON Workflows

Scenario 1: Match Administration

// Start match
mp_restartgame 5
mp_startmatch

// Pause match (dispute/technical issue)
sv_pausable 1
pause

// Resume match
pause

// End match
mp_endmatch

Scenario 2: Toxic Player Management

// Check player info
status

// Warn player
say "PlayerName: Please stop toxic behavior"

// Kick player
kick "PlayerName" "Toxic behavior"

// If continues, ban
status
banid 1440 "STEAM_0:0:12345" "Toxic behavior"  // 24-hour ban
writeid

Scenario 3: Server Restart & Updates

// Announce restart
say "Server restarting in 5 minutes for updates"
say "Please save your progress"

// Restart in 5 minutes
mp_restartgame 300

// After maintenance
mp_restartgame 1
say "Server is back online!"

RCON Command Aliases

Create shortcuts for frequently used commands:

In autoexec.cfg or console:

alias match_start "mp_restartgame 5; mp_startmatch"
alias kick_all "kick all"
alias server_info "status; stats"
alias change_dust2 "changelevel de_dust2"

Troubleshooting with RCON

Issue RCON Command Explanation
High latency net_graph 1 Check network statistics on client side
Low server FPS sv_showfps 1 Display server-side FPS to diagnose performance
Players can't connect status Check if server is full or password protected
Map won't load mp_nextlevel Check next map and fix rotation

Best Practices

  • Use Strong Passwords: Never use weak RCON passwords
  • Log Everything: Enable comprehensive logging for server security
  • Document Actions: Keep records of bans and important decisions
  • Test Commands: Try commands on test server before production
  • Backup Configs: Always backup working configurations

Automated RCON Scripts

Ban on Team Kills (Auto-Exec)

// Auto-ban for excessive team kills
alias tk_ban "banid 30 %userid% 'Too many team kills'; writeid"
mp_tkpunish 0  // Disable default punish system

Take full control of your CS2 server. Host your CS2 server with Supercraft and get built-in RCON access with enterprise-grade administration tools.

Top