CS 1.6 Server CFG Explained: Key Commands & File Location
In this article
This article explains the Counter-Strike 1.6 server configuration file (server.cfg), where to find it, and the essential commands you need to set up a custom dedicated server. You'll learn the file's location, how to edit it, and see concrete examples of key commands for gameplay, admin, and performance settings.
What Is a Server CFG and Why Does It Matter?
The server.cfg file is the main configuration file for a Counter-Strike 1.6 dedicated server. When the server starts, it reads this file and applies all the settings defined within it. This includes the server name, password, game mode, round timers, player limits, and many other gameplay and network options. Without a properly configured server.cfg, your server will run with default or inconsistent settings, which can lead to a poor player experience or even make the server inaccessible. The file is plain text, so you can edit it with any text editor like Notepad or VS Code.
File Location and How to Create It
The default location for server.cfg is inside the cstrike folder of your dedicated server installation. For a typical Steam-based dedicated server, the path looks like this:
Steam/steamapps/common/Half-Life/cstrike/server.cfg
If you're using a third-party hosting provider, the file is usually in a similar cstrike directory within your server's root folder. If the file doesn't exist, you can create it manually. Open a text editor, save an empty file as server.cfg (make sure the extension is .cfg, not .txt), and place it in the cstrike folder. The server will automatically read it on startup. You can also specify a different config file when launching the server using the +exec command, for example: +exec myserver.cfg.
Key Commands: The Core of Your Configuration
Here are the most important commands you'll use in your server.cfg. Each command is followed by a brief explanation of what it does.
- hostname – Sets the server name that appears in the server browser. Example:
hostname "My CS 1.6 Server" - sv_password – Sets a password for players to join. Leave empty for a public server. Example:
sv_password "secret" - mp_maxrounds – Limits the number of rounds before a map change. Set to 0 for unlimited. Example:
mp_maxrounds 30 - mp_timelimit – Sets the time limit in minutes for a map. Set to 0 for no limit. Example:
mp_timelimit 30 - mp_roundtime – Sets the round duration in minutes. Typical values are 1.5, 2, or 3. Example:
mp_roundtime 2 - mp_startmoney – The starting money for each player at the beginning of a half. Example:
mp_startmoney 800 - mp_buytime – Time in seconds after the round starts that players can buy weapons. Example:
mp_buytime 30 - mp_freezetime – Time in seconds at the start of a round when players are frozen. Example:
mp_freezetime 5 - mp_c4timer – Time in seconds for the C4 bomb to explode. Example:
mp_c4timer 35 - mp_friendlyfire – Set to 1 to enable friendly fire, 0 to disable. Example:
mp_friendlyfire 1 - mp_autoteambalance – Set to 1 to force team balancing, 0 to disable. Example:
mp_autoteambalance 1 - sv_maxrate – Maximum data rate in bytes/second for players. Common values are 10000 or 25000. Example:
sv_maxrate 25000 - sv_minrate – Minimum data rate. Example:
sv_minrate 1000 - sv_pausable – Set to 0 to prevent players from pausing the game. Example:
sv_pausable 0 - sv_cheats – Must be 0 for normal play; set to 1 only for testing. Example:
sv_cheats 0
These commands cover the essentials. Many more exist, but these are the ones you'll use most often.
Example server.cfg File
Below is a complete example of a typical public server configuration. You can copy this as a starting point and adjust the values to your preference.
hostname "My CS 1.6 Server" // Public server, no password sv_password "" // Gameplay settings mp_maxrounds 0 mp_timelimit 30 mp_roundtime 2 mp_startmoney 800 mp_buytime 30 mp_freezetime 5 mp_c4timer 35 mp_friendlyfire 1 mp_autoteambalance 1 mp_limitteams 2 // Network settings sv_maxrate 25000 sv_minrate 1000 sv_maxupdaterate 101 sv_minupdaterate 20 // Server settings sv_pausable 0 sv_cheats 0 sv_lan 0
Note that lines starting with // are comments and are ignored by the server. This example sets up a standard public server with friendly fire enabled and a 30-minute map time limit.
How to Choose the Right Values
The values you choose depend on the type of server you want to run. For a casual public server, you might want a longer round time (like 3 minutes) and more starting money (like 800 or 1000). For a competitive or match server, you'd use shorter round times (1 minute 45 seconds is common), lower starting money (800), and enable friendly fire. Consider your player base: if they are new, you might disable friendly fire to avoid frustration. If you're running a clan server, you might want stricter team balancing. Always test your settings with a few players to see how they feel.
Common Mistakes and Troubleshooting
Here are some frequent issues and how to fix them:
- Server doesn't read the config – Make sure the file is named exactly
server.cfgand is in the correct folder (cstrike). Also check that your server launch parameters don't override it with another config. - Settings not applying – Some commands need to be set in the command line or in a different config file (like
listenserver.cfgfor listen servers). For dedicated servers, server.cfg is the right place, but ensure you're not using+execto load a different file. - Players get high ping – This is often due to network settings like
sv_maxratebeing too high for your server's upload bandwidth. Lower it to 10000 or 15000 if needed. - Round timers not working – Check that you haven't set
mp_maxroundsto 1 or something too low, and thatmp_timelimitis not 0 if you want a time limit. - Friendly fire on but not working – Some mods or plugins might override this. If you're using AMX Mod X or similar, check their configuration files.
Frequently Asked Questions
Where is the server.cfg file located in CS 1.6?
For a dedicated server, it's in the cstrike folder inside your server's root directory. For a listen server (playing and hosting at the same time), it's in your local Half-Life/cstrike folder in your Steam installation.
How do I change the server name?
Edit the hostname command in your server.cfg. For example: hostname "My Awesome Server". Save the file and restart the server or use the console command exec server.cfg to apply changes without restarting.
What is the difference between mp_maxrounds and mp_timelimit?
mp_maxrounds limits the number of rounds played on a map, while mp_timelimit limits the total time spent on a map. Whichever limit is reached first ends the map. Set both to 0 for no limit.
Can I use a different config file for different maps?
Yes, you can create separate config files (e.g., de_dust2.cfg) and place them in the cstrike folder. The server will automatically execute a config file with the same name as the map when that map loads, if it exists.
How do I set an admin password?
Admin passwords are typically handled by admin plugins like AMX Mod X, not by the base server.cfg. For AMX Mod X, you'd edit amxx.cfg or the users.ini file. For the built-in RCON, you set rcon_password in server.cfg.
Why does my server not appear in the server browser?
Check that sv_lan is set to 0 (for internet servers) and that your router/firewall allows incoming connections on the server port (default 27015). Also ensure the server is fully started and not using a password if you want public visibility.