Every Counter-Strike 2 server owner needs a core set of console commands to configure the game mode, manage players, and keep the server running smoothly. This article covers the essential commands, what they do, and how to use them in your server.cfg or console.
Background: From Source to CS2
Counter-Strike 2 (CS2) launched in September 2023, replacing CS:GO. It runs on the Source 2 engine, which changed how servers are hosted and configured. Many classic CS:GO commands still work, but some have been deprecated or renamed. Server owners must know the current command set to avoid errors and ensure their server behaves as intended.
CS2 servers are typically hosted via the SteamCMD tool, which downloads the dedicated server files. Configuration is done through a server.cfg file and console commands. Understanding the difference between sv_ (server variables), mp_ (multiplayer/match), and bot_ (bot control) commands is the first step.
Essential Server Commands
Below are the most important commands every CS2 server owner should know. They are grouped by function.
Game Mode and Map Commands
map– Changes the current map immediately. Example:map de_dust2mp_restartgame 1– Restarts the match after 1 second. Useful after changing settings.mp_maxrounds 30– Sets the number of rounds in a competitive match (default is 30, 15 per half).mp_roundtime 1.92– Sets round length in minutes (1.92 = 1:55, the competitive default).mp_freezetime 6– Sets the freeze time at the start of each round (default 6 seconds in competitive).mp_buy_anywhere 1– Allows players to buy weapons anywhere on the map (1 = enabled, 0 = disabled).
Player and Admin Commands
sv_cheats 1– Enables cheat commands (must be 0 for normal play).kick– Kicks a player by name. Example:kick "PlayerName"banid– Bans a player by Steam ID for a specified time (0 = permanent).sv_password "secret"– Sets a password for the server.mp_autoteambalance 1– Forces teams to be balanced (1 = on, 0 = off).mp_limitteams 1– Prevents teams from having more than 1 player difference.
Server Configuration Commands
hostname "My Server"– Sets the server name shown in the browser.sv_region 3– Sets the server region (3 = Europe, 0 = US East, 1 = US West, etc.).sv_lan 0– 0 = internet server, 1 = LAN only.exec server.cfg– Runs the server configuration file.mp_disable_autokick 1– Prevents the server from auto-kicking idle players.
How to Use the Commands
You can enter commands directly in the server console (if you have access) or add them to your server.cfg file. The server.cfg is located in the csgo/cfg folder of your server directory. Commands in the file are executed automatically when the server starts.
For most commands, you can also use the in-game console if you have admin rights (via RCON). To use RCON, set an rcon_password and then type rcon_password in your client console, followed by rcon .
Common Problems and Fixes
Even with the right commands, issues arise. Here are common pitfalls and how to solve them.
- Command not recognized: Some CS:GO commands were removed in CS2. Check the CS2 developer wiki or use
findin the console to search for valid commands. - Server not showing in browser: Ensure
sv_lan 0is set and that your ports (default 27015) are forwarded correctly. - Players can’t connect: Check your firewall and that
sv_passwordis not set unless intended. - Cheats not working: Set
sv_cheats 1before using any cheat command. Note that cheats are disabled in official matchmaking servers.
Comparisons: CS2 vs CS:GO Commands
While most commands carry over, some notable changes exist. For example, mp_startmoney still works, but mp_weapons_allow_map_placed is new. The game_mode and game_type commands remain, but the values changed slightly. Always test commands on a test server before applying to a live one.
Safety and Best Practices
Running a server involves security considerations.
- Set a strong
rcon_passwordto prevent unauthorized control. - Keep your server software updated via SteamCMD.
- Use
sv_allow_upload 0andsv_allow_download 0to prevent custom file uploads that could contain malicious content (unless you need custom maps). - Regularly back up your
server.cfgand other config files.
Frequently Asked Questions
How do I set up a CS2 server?
Download the dedicated server via SteamCMD by running steamcmd +login anonymous +app_update 730 +quit. Then configure your server.cfg and start the server executable.
What is the command to give players money?
Use mp_startmoney to set the starting money for each round. For example, mp_startmoney 16000 gives full buy money.
How do I make my server public?
Set sv_lan 0 and ensure your ports are open. You may also need to set sv_region to your region for better visibility.
Can I use CS:GO commands in CS2?
Most commands work, but some are deprecated. Check the console output for errors and consult the CS2 developer documentation for a full list.
How do I ban a player permanently?
Use banid 0 in the console. This adds a permanent ban to the server’s ban list.
Why is my server not appearing in the community browser?
Check that sv_lan is 0, your ports are forwarded, and that your server is fully updated. Sometimes it takes a few minutes for the server to register.
Related
Formula used
in t | Max players | players | 10 | 1 | 64 in r | Rounds per half | rounds | 15 | 1 | 30 in m | Max money | $ | 16000 | 0 | 16000 out s | Server start money | $ | m | 0
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More cards in this drawer
- Delete Picture Kik? How to Remove Photos
- Are Networked Implants Safe? What If One Fails?
- How to Stop WordPress Comment Spam: A Layered Guide
- What Happens to X Replies, DMs, and Followers After Deletion?
- Data Breaches That Shook the World
- Disable Google Assistant: Turn It Off on Android & Home