Steam is one of the most popular gaming services. Valve, the creator of such well-known games as Counter Strike and Half Life, allows you to use its resources to create game servers yourself. You just need to use the software HLDS Update Tool.
Necessary
Windows HLDS Update Tool
Instructions
Step 1
To create a Counter Strike Source game server, download the Windows HLDS Update Tool archive from the official Steam website. Unzip the downloaded file and run the HldsUpdateTool.exe application.
Step 2
After the first launch, the utility will be updated and subsequently display a list of available commands and their syntax. Enter the following line to get the game distribution:
HldsUpdateTool.exe -command update -game "Counter-Strike Source" -dir c: / srcds
If you want the utility to be located in the same directory where the service will be installed, then remove the c: / srcds parameter. After the installation is complete, all server files will be downloaded.
Step 3
Create a startup script. To do this, right-click on the srcds.exe file in the server folder and click "Create shortcut". After that, right-click on this shortcut and click "Properties". Add to the line object:
-console -game cstrike + maxplayers 20 + map map_name
The maxplayers parameter is responsible for the maximum number of players on the server, and after the map you need to enter the name of the map for the game (for example, de_dust). Similarly, you can add the + sv_lan 1 or + sv_lan 0 parameter, which is responsible for determining the server type. If you specify the value 1, then the game will be available only for computers located in the local network. If you specify -insecure, Valve's anti-cheat, which runs by default, will be disabled. Click "OK" and move the edited shortcut to your desktop.
Step 4
Run the created file. If all configuration and installation was successful, the server console will appear on the monitor. To stop the game, you can type exit, to view the number of players and other statistics, use stats. Steam server has been created.