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.
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.cfgfile in thecsgo/cfg/folder, which you can edit in the Files tab.
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:
| Folder | Contents |
|---|---|
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 parameter | Description |
|---|---|
| Server name | Your server's name in the server list and scoreboard. Default: ZAP Counter-Strike: Global Offensive |
| Server password | Password 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. players | The 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 map | The map your server starts with, using the full name without the file extension, e.g. de_dust2. Default: de_dust2 |
| Game type | Game type as a number. Together with the game mode, this determines the game mode. Default: 0 |
| Game mode | Game mode as a number, used together with the game type. Default: 0 |
| Tick rate | How often the server calculates the game world per second, e.g. 64 or 128. Default: 64 |
| RCON password | Password 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.
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.
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 mode | Game type | Game mode |
|---|---|---|
| Classic Casual | 0 | 0 |
| Classic Competitive | 0 | 1 |
| Wingman | 0 | 2 |
| Arms Race | 1 | 0 |
| Demolition | 1 | 1 |
| Deathmatch | 1 | 2 |
Your server always starts with the mg_active map group. You can't select a different map group.
A custom.cfg file might look like this:
mp_maxrounds 30
mp_roundtime 1.92
sv_allow_votes 0
Here's how your server loads the files:
- Every time a map starts,
server.cfgruns first. It contains the values from the startup parameters (server name, server password, and RCON password), and runs yourcustom.cfgat the end. - CS:GO then loads the game mode's config, such as
gamemode_competitive.cfg. This resets values such asmp_maxrounds,mp_roundtime, andmp_friendlyfireto the game mode's defaults. - Finally,
gamemode_<modus>_server.cfgruns, for example,gamemode_competitive_server.cfg. Your server creates these files so that yourcustom.cfgruns once more at this point. This means your settings also take effect after the game mode config.
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.
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.
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:
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.
You can add the following commands to custom.cfg or to a game mode config.
| Command | Description | Value |
|---|---|---|
bot_chatter | What the bots are allowed to say in-game | off, radio, minimal, or normal |
bot_difficulty | How difficult the bots are | 0 easy, 1 normal, 2 hard, 3 expert |
bot_quota | Number of bots on your server | Number |
bot_quota_mode | How 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 |
| Command | Description |
|---|---|
mp_startmoney | Money a player receives at the start of a half |
mp_maxmoney | Maximum amount of money a player can have |
mp_afterroundmoney | Money each player receives at the end of a round, regardless of whether they win or lose |
cash_player_bomb_defused | Money for defusing the bomb |
cash_player_bomb_planted | Money for planting the bomb |
cash_player_damage_hostage | Money deducted or earned when a hostage is injured |
cash_player_interact_with_hostage | Money for interacting with a hostage |
cash_player_killed_enemy_default | Money for killing an enemy with a standard weapon |
cash_player_killed_enemy_factor | Money for killing an enemy with one of the main weapons |
cash_player_killed_hostage | Money earned or lost for killing a hostage |
cash_player_killed_teammate | Money earned or lost for killing a teammate |
cash_player_rescued_hostage | Money for rescuing a hostage |
cash_team_elimination_bomb_map | Money for each team member when all opponents are eliminated on a bomb map |
cash_team_elimination_hostage_map_t | Money for each Terrorist when they win a round on a hostage map by eliminating the opposing team |
cash_team_elimination_hostage_map_ct | Money for each CT team member when all Terrorists are eliminated on a hostage map |
cash_team_hostage_alive | Money when a hostage survives the round |
cash_team_hostage_interaction | Money for the team when interacting with a hostage |
cash_team_loser_bonus | Money a team receives for losing a round |
cash_team_loser_bonus_consecutive_rounds | How much the loser bonus increases for each consecutive round lost |
cash_team_planted_bomb_but_defused | Money for the Terrorists when their planted bomb is defused, in addition to the loser bonus |
cash_team_rescued_hostage | Money for the whole team when a player rescues a hostage |
cash_team_terrorist_win_bomb | Money for each Terrorist when the round is won by detonating the bomb |
cash_team_win_by_defusing_bomb | Money for the CT team when it wins the round by defusing the bomb |
cash_team_win_by_hostage_rescue | Money for the team when it wins the round by rescuing a hostage |
cash_team_win_by_time_running_out_hostage | Money for the team guarding the hostages if none are rescued before time runs out |
cash_team_win_by_time_running_out_bomb | Money for the CTs if time runs out without the bomb exploding or all CTs being eliminated |
| Command | Description | Value |
|---|---|---|
mp_maxrounds | Maximum number of rounds | Number |
mp_roundtime | Maximum round duration in minutes. Enter seconds as a decimal, e.g. 1.92 = 1:55 minutes | Number |
mp_timelimit | Maximum game duration in minutes; 0 = disabled | Number |
mp_freezetime | How long players are frozen at the start of each round (seconds) | Number |
mp_buytime | Time in seconds after the round starts during which players can buy equipment | Number |
mp_buy_anywhere | Allow players to use the buy menu outside the buy zone (the buy time still applies) | 0 off, 1 on |
mp_warmuptime | Warmup duration in seconds | Number |
mp_halftime | Switch teams at halftime | 0 off, 1 on |
mp_friendlyfire | Players can damage teammates. Competitive enables this automatically; Casual doesn't. | 0 off, 1 on |
mp_solid_teammates | Collision with teammates | 0 off, 1 on |
mp_free_armor | Free armor and helmet at the start of a round | 0 off, 1 on |
mp_death_drop_defuser | Drop defuse kits on death | 0 off, 1 on |
mp_death_drop_gun | Which weapon to drop on death | 0 none, 1 best, 2 held weapon, otherwise the most valuable |
mp_death_drop_grenade | Whether to drop a grenade on death | 0 none, 1 most valuable |
mp_defuser_allocation | Whether and which players receive a free defuse kit at the start of a round (none, random players, or everyone) | Number |
mp_forcecamera | Who dead players can spectate | 0 all players, 1 own team only, 2 black screen until the next round |
mp_force_pick_time | Time in seconds to choose a team; a team is assigned automatically after this time | Number |
mp_win_panel_display_time | How long the scoreboard is shown between rounds (seconds) | Number |
mp_respawn_immunitytime | Seconds of protection after respawning, e.g. in Deathmatch | Number |
sv_allow_votes | Allow votes (e.g. timeout votes) | 0 off, 1 on |
sv_infinite_ammo | Infinite ammo (protected command; requires sv_cheats 1) | 1 no reload, 2 infinite magazines with reloading |
ammo_grenade_limit_flashbang | How many flashbangs a player can carry | Number |
ammo_grenade_limit_total | How many grenades a player can carry in total | Number |
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.
