Skip to content
🧮 Is Lifetime with ZapX Pass worth it? Work it out for your own servers in 30 seconds. Open the Lifetime calculator →

CS:GO: Server Configuration

Here's how to configure your CS:GO server: startup parameters for the name, passwords, game mode, and starting map, plus custom commands in custom.cfg.

3 December 20267 min read67 Views0 helpful

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

Introduction

Counter-Strike: Global Offensive can be configured in many ways, from the server name, game mode, and starting map to round time, money, and bots. In this guide, we'll show you which settings to configure in ZapX under Startup Parameters, where to add your own server commands, and how the game mode configs work together.

How configuration works

CS:GO has two types of settings:

  • Server settings such as the server name, passwords, game mode, starting map, and tick rate: you can find these in ZapX under Configuration in the Startup Parameters tab.
  • Custom server commands such as the number of rounds, round time, money, or bots: add these to the custom.cfg file in the csgo/cfg/ folder, which you can edit in the Files tab.
Important

Your server rewrites server.cfg every time it starts, so any custom changes you make to it will be lost. Always add your commands to custom.cfg instead. If the file doesn't exist yet, create it in the csgo/cfg/ folder.

Other server folders in the Files tab:

FolderContents
csgo/cfg/Configuration files: custom.cfg, game mode configs
csgo/maps/Custom maps
csgo/addons/MetaMod:Source and SourceMod with your plugins; see Installing plugins
csgo/materials/, csgo/models/, csgo/sound/Custom content such as textures, models, and sounds

Startup parameters at a glance

Startup parameterDescription
Server nameYour server's name in the server list and scoreboard. Default: ZAP Counter-Strike: Global Offensive
Server passwordPassword required to join. Leave this blank for a public server.
Steam Game Server Login Token (GSLT)Game Server Login Token from Steam. Your server won't start without a token. See Creating a GSLT to learn how to create one.
Max. playersThe maximum number of players who can be on your server at the same time. This setting applies to every game mode, including Competitive and Wingman. Default: 16
Starting mapThe map your server starts with, using the full name without the file extension, e.g. de_dust2. Default: de_dust2
Game typeGame type as a number. Together with the game mode, this determines the game mode. Default: 0
Game modeGame mode as a number, used together with the game type. Default: 0
Tick rateHow often the server calculates the game world per second, e.g. 64 or 128. Default: 64
RCON passwordPassword for the remote console (RCON). ZapX creates one automatically when you create your server, but you can change it here.

After saving the startup parameters, restart your server for the changes to take effect.

Info

ZapX assigns the ports (game, client, and GOTV) automatically and passes them to the server every time it starts. You can find them on your server's Overview page.

Set the game mode

CS:GO sets the game mode using two numbers. Under Startup Parameters, enter the values for the game mode you want in Game type and Game mode:

Game modeGame typeGame mode
Classic Casual00
Classic Competitive01
Wingman02
Arms Race10
Demolition11
Deathmatch12

Your server always starts with the mg_active map group. You can't select a different map group.

Custom commands in custom.cfg

A custom.cfg file might look like this:

Code
mp_maxrounds 30
mp_roundtime 1.92
sv_allow_votes 0

Here's how your server loads the files:

  1. Every time a map starts, server.cfg runs first. It contains the values from the startup parameters (server name, server password, and RCON password), and runs your custom.cfg at the end.
  2. CS:GO then loads the game mode's config, such as gamemode_competitive.cfg. This resets values such as mp_maxrounds, mp_roundtime, and mp_friendlyfire to the game mode's defaults.
  3. Finally, gamemode_<modus>_server.cfg runs, for example, gamemode_competitive_server.cfg. Your server creates these files so that your custom.cfg runs once more at this point. This means your settings also take effect after the game mode config.
Tip

Since your custom.cfg runs last, its settings also override the startup parameters. For example, if you set hostname or sv_password in it, that value is used instead of the one in the Configuration tab. So only set the server name and passwords under Startup Parameters.

If you want a setting to apply only to a specific game mode, add it only to that game's mode config (e.g. gamemode_casual.cfg), not to custom.cfg as well. Otherwise, the setting in custom.cfg will take precedence.

If you upload a custom server.cfg, for example when moving your server, it will be renamed to custom.cfg the next time your server starts. If a custom.cfg already exists, it will then be renamed to server_legacy.cfg and run before your custom.cfg. This way, your settings are preserved.

sv_cheats

Some commands are protected and only work when cheats are enabled. Add sv_cheats 1 to custom.cfg to enable them, or sv_cheats 0 to disable them. Protected commands include god, sv_infinite_ammo, noclip, r_drawothermodels 2, mat_wireframe 2, enable_skeleton_draw 1, and mat_fullbright 3.

Using RCON

Use the RCON password to run server commands in-game or with RCON tools such as HLSW. To do this in-game, enter the following in the console:

Code
rcon_password 12345
rcon changelevel de_dust2

Replace 12345 with your RCON password. Then run a command on the server by entering rcon before it. In this example, the map changes to de_dust2.

Important commands for custom.cfg

You can add the following commands to custom.cfg or to a game mode config.

Bots

CommandDescriptionValue
bot_chatterWhat the bots are allowed to say in-gameoff, radio, minimal, or normal
bot_difficultyHow difficult the bots are0 easy, 1 normal, 2 hard, 3 expert
bot_quotaNumber of bots on your serverNumber
bot_quota_modeHow the number of bots is controlled. With fill, the server adds bots until the total number of players and bots equals bot_quota.normal, fill, or match

Money

CommandDescription
mp_startmoneyMoney a player receives at the start of a half
mp_maxmoneyMaximum amount of money a player can have
mp_afterroundmoneyMoney each player receives at the end of a round, regardless of whether they win or lose
cash_player_bomb_defusedMoney for defusing the bomb
cash_player_bomb_plantedMoney for planting the bomb
cash_player_damage_hostageMoney deducted or earned when a hostage is injured
cash_player_interact_with_hostageMoney for interacting with a hostage
cash_player_killed_enemy_defaultMoney for killing an enemy with a standard weapon
cash_player_killed_enemy_factorMoney for killing an enemy with one of the main weapons
cash_player_killed_hostageMoney earned or lost for killing a hostage
cash_player_killed_teammateMoney earned or lost for killing a teammate
cash_player_rescued_hostageMoney for rescuing a hostage
cash_team_elimination_bomb_mapMoney for each team member when all opponents are eliminated on a bomb map
cash_team_elimination_hostage_map_tMoney for each Terrorist when they win a round on a hostage map by eliminating the opposing team
cash_team_elimination_hostage_map_ctMoney for each CT team member when all Terrorists are eliminated on a hostage map
cash_team_hostage_aliveMoney when a hostage survives the round
cash_team_hostage_interactionMoney for the team when interacting with a hostage
cash_team_loser_bonusMoney a team receives for losing a round
cash_team_loser_bonus_consecutive_roundsHow much the loser bonus increases for each consecutive round lost
cash_team_planted_bomb_but_defusedMoney for the Terrorists when their planted bomb is defused, in addition to the loser bonus
cash_team_rescued_hostageMoney for the whole team when a player rescues a hostage
cash_team_terrorist_win_bombMoney for each Terrorist when the round is won by detonating the bomb
cash_team_win_by_defusing_bombMoney for the CT team when it wins the round by defusing the bomb
cash_team_win_by_hostage_rescueMoney for the team when it wins the round by rescuing a hostage
cash_team_win_by_time_running_out_hostageMoney for the team guarding the hostages if none are rescued before time runs out
cash_team_win_by_time_running_out_bombMoney for the CTs if time runs out without the bomb exploding or all CTs being eliminated

Gameplay

CommandDescriptionValue
mp_maxroundsMaximum number of roundsNumber
mp_roundtimeMaximum round duration in minutes. Enter seconds as a decimal, e.g. 1.92 = 1:55 minutesNumber
mp_timelimitMaximum game duration in minutes; 0 = disabledNumber
mp_freezetimeHow long players are frozen at the start of each round (seconds)Number
mp_buytimeTime in seconds after the round starts during which players can buy equipmentNumber
mp_buy_anywhereAllow players to use the buy menu outside the buy zone (the buy time still applies)0 off, 1 on
mp_warmuptimeWarmup duration in secondsNumber
mp_halftimeSwitch teams at halftime0 off, 1 on
mp_friendlyfirePlayers can damage teammates. Competitive enables this automatically; Casual doesn't.0 off, 1 on
mp_solid_teammatesCollision with teammates0 off, 1 on
mp_free_armorFree armor and helmet at the start of a round0 off, 1 on
mp_death_drop_defuserDrop defuse kits on death0 off, 1 on
mp_death_drop_gunWhich weapon to drop on death0 none, 1 best, 2 held weapon, otherwise the most valuable
mp_death_drop_grenadeWhether to drop a grenade on death0 none, 1 most valuable
mp_defuser_allocationWhether and which players receive a free defuse kit at the start of a round (none, random players, or everyone)Number
mp_forcecameraWho dead players can spectate0 all players, 1 own team only, 2 black screen until the next round
mp_force_pick_timeTime in seconds to choose a team; a team is assigned automatically after this timeNumber
mp_win_panel_display_timeHow long the scoreboard is shown between rounds (seconds)Number
mp_respawn_immunitytimeSeconds of protection after respawning, e.g. in DeathmatchNumber
sv_allow_votesAllow votes (e.g. timeout votes)0 off, 1 on
sv_infinite_ammoInfinite ammo (protected command; requires sv_cheats 1)1 no reload, 2 infinite magazines with reloading
ammo_grenade_limit_flashbangHow many flashbangs a player can carryNumber
ammo_grenade_limit_totalHow many grenades a player can carry in totalNumber

Conclusion

You now know how your CS:GO server's configuration is structured: set the server name, passwords, game mode, and starting map under Startup Parameters, and add custom commands to custom.cfg in the csgo/cfg/ folder. Your server ensures they also take effect after the game mode config. If you have any questions, our support team is always here to help.

Free tools

CS:GO Tools

View all

FAQ

Frequently asked questions

Set the server name, passwords, game mode, starting map, and tick rate in the Configuration tab under Startup Parameters. Add custom server commands to custom.cfg in the csgo/cfg/ folder.
Use the Game type and Game mode startup parameters. For example, use 0 and 0 for Classic Casual, 0 and 1 for Classic Competitive, 0 and 2 for Wingman, or 1 and 2 for Deathmatch.
Your server rewrites server.cfg every time it starts. Add custom commands to custom.cfg in the csgo/cfg/ folder. It runs at every map start and runs again after the game mode config.

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.