Counter-Strike: Source reads its settings from cstrike/cfg/server.cfg, which runs every time the server starts a map.
1. Open the file
- Stop the server in the Game Panel.
- Open the Files tab and browse to
cstrike/cfg. - Open
server.cfg, or create it if it is not there.
2. The settings you will change
| Command | What it does |
|---|---|
hostname | The name in the server browser. |
sv_password | Password to join. An empty value means open. |
rcon_password | Password for remote admin commands. |
sv_lan | Must be 0 for an internet server. |
mp_friendlyfire | Friendly fire on or off. |
mp_timelimit | Minutes per map. |
mp_roundtime | Minutes per round. |
mp_maxrounds | Rounds before the map changes. |
mp_autoteambalance | Keeps the teams even. |
sv_alltalk | Lets both teams hear each other. |
Values with spaces go in quotation marks:
hostname "Friday Night Source"
sv_password ""
rcon_password "a-long-secret"
3. Changing the map
- To change map now, type
map de_dust2in the Console tab in the Game Panel. Everyone reconnects to the new map. - To change the map the server starts on, set it on the Startup page of your server. That page is not linked in the sidebar, so add
/startupto the end of your server's panel address. - The rotation is the list in
cstrike/mapcycle.txt, one map per line.
4. Player slots
The slot count is set when the server launches, so it lives on the same Startup page rather than in server.cfg.
5. Apply the changes
- Save the file.
- Start the server, or run
exec server.cfgin the console to reload it without a restart. - Check
statusin the console to confirm the hostname.
If a setting is ignored, check for a typo in the command name. Source silently skips commands it does not recognise, and the console prints the reason when you run exec server.cfg by hand.





