Skip to content

Counter-Strike: Source: Server Configuration

Learn how to configure your Counter-Strike: Source game server’s name, password, starting map, tick rate, bots, and other settings.

27 November 20265 min read5 Views0 helpful

Don't have your own server yet? Host your Counter-Strike: Source server with ZAP-Hosting from €4.49 / month.Or try 3 days from €0.81

Introduction

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.

How the configuration works

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.cfg file in the cstrike/cfg folder. 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:

Important

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 parameters at a glance

Startup parameterDescription
Server nameYour server's name in the server list. Default: ZAP Counter-Strike
Server passwordPassword required to join. Leave blank for an open server.
Max. playersThe number of players who can play on your server at the same time, up to 64
Starting mapThe map your server starts with, for example de_dust2 (default), de_inferno, de_nuke, or cs_office
Tick rateCounter-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 PasswordPassword for the remote console. ZapX generates one for your server automatically. You can change it here, but don't leave it blank.
Info

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.

Starting map and map rotation

Counter-Strike: Source doesn't have a separate setting for the game mode. The mode is determined by the map's prefix:

PrefixGame modeExample
de_Plant and defuse the bombde_dust2, de_inferno, de_nuke, de_train
cs_Hostage rescuecs_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.

Tip

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.

Additional settings in custom.cfg

Put each server command on its own line in custom.cfg, and enclose text in quotation marks. For example:

cfg
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:

CommandDescription
mp_timelimitMinutes per map before the rotation moves to the next map. 0 = no time limit
mp_maxroundsRounds per map before the map changes. 0 = no round limit
mp_winlimitRound wins by a team before the map changes. 0 = no limit
mp_roundtimeRound duration in minutes
mp_freezetimeSeconds at the start of a round during which players can't move
mp_buytimeHow long players can buy equipment after a round starts, in minutes (1.5 = 90 seconds)
mp_startmoneyStarting money for players, from 800 to 16000
mp_c4timerSeconds until the bomb explodes after it has been planted
mp_friendlyfire1 allows damage to teammates
mp_autoteambalance1 automatically balances teams of unequal size
mp_limitteamsHow many more players one team can have than the other. 0 = no limit
mp_autokick1 automatically kicks players for team kills or extended inactivity
sv_alltalk1 allows all players to hear each other in voice chat, including the opposing team
bot_quotaNumber of bots on your server. 0 = no bots
bot_difficultyBot difficulty: 0 easy, 1 normal, 2 hard, 3 expert
sv_cheats1 allows cheat commands; useful only for testing
Warning

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.

Custom content, SourceTV, and demos

Anything you add to your server is stored in the cstrike folder and remains there through updates and restarts:

FolderContents
cstrike/addonsExtensions such as Metamod:Source and SourceMod
cstrike/cfgConfiguration files such as custom.cfg and mapcycle.txt
cstrike/maps, cstrike/sound, cstrike/materials, cstrike/modelsCustom maps, sounds, textures, and models
cstrike/customCustom content packages, one subfolder per package
cstrike/demosRecorded 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.

RCON, admins, and plugins

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:

Conclusion

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! 🙂

Free tools

CS:Source Tools

View all

FAQ

Frequently asked questions

Your Counter-Strike: Source server rewrites the cstrike/cfg/server.cfg file every time it starts. Add your custom settings to cstrike/cfg/custom.cfg instead. It runs after server.cfg and is preserved.
Go to the Configuration tab and open Startup parameters. Don’t also add hostname, sv_password, or rcon_password to custom.cfg, or the file’s value will override the setting in the panel.
Counter-Strike: Source doesn’t have a separate setting for the game mode. The map prefix determines it: de_ for bomb defusal and cs_ for hostage rescue. Choose the appropriate starting map.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.