With the right configuration, you can make your Counter-Strike: Source server exactly the way you want it: its own name, a password, your favorite starting map, and rules such as round time, starting money, friendly fire, or bots. In this guide, we'll show you which settings are available, where to find them in ZapX, and what you can customize in your own configuration file.
Your Counter-Strike: Source server reads its settings from two sources:
- Startup parameters: Set the server name, server password, player count, starting map, tick rate, Steam Game Server Login Token, and RCON password in ZapX under the Configuration tab, in Startup parameters.
- Configuration files: Add all other server commands (Cvars), such as round time, starting money, or bots, to the
custom.cfgfile in thecstrike/cfgfolder. Open the file in the Files tab.
Your server rewrites the cstrike/cfg/server.cfg file every time it starts. It contains the values from the startup parameters and then runs your custom.cfg. Therefore:
Don't edit server.cfg manually; your changes will be lost the next time the server starts. Always put your custom settings in custom.cfg. If the file doesn't exist yet, simply create it in the cstrike/cfg folder.
Because custom.cfg runs last, its settings take precedence, even over the startup parameters. So only enter the server name (hostname), server password (sv_password), and RCON password (rcon_password) in the startup parameters. If you also add them to custom.cfg, the value in the file will be used instead of the one in the panel.
After you save the startup parameters, ZapX will prompt you to restart the server. Changes to custom.cfg also take effect only after a restart.
| Startup parameter | Description |
|---|---|
| Server name | Your server's name in the server list. Default: ZAP Counter-Strike |
| Server password | Password required to join. Leave blank for an open server. |
| Max. players | The number of players who can play on your server at the same time, up to 64 |
| Starting map | The map your server starts with, for example de_dust2 (default), de_inferno, de_nuke, or cs_office |
| Tick rate | Counter-Strike: Source always runs at 66 ticks and ignores this value. Other values only work with a tick-rate enabler plugin for Metamod:Source, which you must install yourself in the cstrike/addons folder. Default: 66 |
| Steam server token (GSLT) | A Game Server Login Token from Steam, which allows your server to appear in the server list. See Create a GSLT |
| RCON Password | Password for the remote console. ZapX generates one for your server automatically. You can change it here, but don't leave it blank. |
For map names, tick rate, and GSLT, your server accepts only letters, numbers, and _, ., /, and -. It removes other characters, such as spaces, when it starts. It removes quotation marks from server names and passwords.
Counter-Strike: Source doesn't have a separate setting for the game mode. The mode is determined by the map's prefix:
| Prefix | Game mode | Example |
|---|---|---|
de_ | Plant and defuse the bomb | de_dust2, de_inferno, de_nuke, de_train |
cs_ | Hostage rescue | cs_office, cs_italy |
Enter the map name without a file extension under Starting map, save, and restart your server. Set which maps follow the starting map in the map rotation: this is the mapcycle.txt file in the cstrike/cfg folder, with one map per line.
Use the changelevel <mapname> command in the Console tab to change the map immediately without restarting the server. The maps * command shows you which maps are available on your server.
Put each server command on its own line in custom.cfg, and enclose text in quotation marks. For example:
mp_timelimit 30
mp_maxrounds 0
mp_roundtime 3
mp_freezetime 6
mp_startmoney 800
mp_friendlyfire 0
mp_autoteambalance 1
bot_quota 0
These settings are the most commonly adjusted:
| Command | Description |
|---|---|
mp_timelimit | Minutes per map before the rotation moves to the next map. 0 = no time limit |
mp_maxrounds | Rounds per map before the map changes. 0 = no round limit |
mp_winlimit | Round wins by a team before the map changes. 0 = no limit |
mp_roundtime | Round duration in minutes |
mp_freezetime | Seconds at the start of a round during which players can't move |
mp_buytime | How long players can buy equipment after a round starts, in minutes (1.5 = 90 seconds) |
mp_startmoney | Starting money for players, from 800 to 16000 |
mp_c4timer | Seconds until the bomb explodes after it has been planted |
mp_friendlyfire | 1 allows damage to teammates |
mp_autoteambalance | 1 automatically balances teams of unequal size |
mp_limitteams | How many more players one team can have than the other. 0 = no limit |
mp_autokick | 1 automatically kicks players for team kills or extended inactivity |
sv_alltalk | 1 allows all players to hear each other in voice chat, including the opposing team |
bot_quota | Number of bots on your server. 0 = no bots |
bot_difficulty | Bot difficulty: 0 easy, 1 normal, 2 hard, 3 expert |
sv_cheats | 1 allows cheat commands; useful only for testing |
Don't set sv_lan to 1. Your server will then only be visible on the local network and won't be accessible over the internet.
You can also enter many of these commands while the server is running in the Console tab, for example mp_roundtime 2. However, they only apply until the next restart. Put any settings you want to keep permanently in custom.cfg.
Anything you add to your server is stored in the cstrike folder and remains there through updates and restarts:
| Folder | Contents |
|---|---|
cstrike/addons | Extensions such as Metamod:Source and SourceMod |
cstrike/cfg | Configuration files such as custom.cfg and mapcycle.txt |
cstrike/maps, cstrike/sound, cstrike/materials, cstrike/models | Custom maps, sounds, textures, and models |
cstrike/custom | Custom content packages, one subfolder per package |
cstrike/demos | Recorded SourceTV demos |
Your server loads custom files into the game every time it starts. If a file has the same name as an original game file, the server skips it, leaving the original file intact. To help players download custom maps and sounds quickly, we recommend setting up FastDL.
SourceTV is always enabled on your server and uses its own port. You can find it on the Overview page under More ports as GOTV. If you record games with tv_record <name> or automatically with tv_autorecord 1, your server moves completed demos to the cstrike/demos folder. You can download them from there in the Files tab.
The RCON password is set in the startup parameters and applied every time the server starts. Counter-Strike: Source uses your server's game port for RCON. You can also run commands directly in the Console tab without RCON. Learn more about RCON in RCON.
To get admin privileges in-game, an admin menu, and additional features, you need SourceMod and Metamod:Source. The extensions and their settings are located in the cstrike/addons folder:
Your Counter-Strike: Source server is now set up just the way you want it. Find out how to connect to your server in Connect to the server. If something isn't working as expected, our Common issues guide can help. If you have any other questions, our support team is available every day! 🙂
