To create a server Half-life 2 is a very simple process. Just follow these simple steps and you'll be fragging in half-life 2 sooner than Lamarr can hump head.
- Step 1Navigate to the directory containing Steam.exe
- Step 2Then goto SteamApps/YourUserNameXXX/half-life 2/cfg
- Step 3Create a new text file and name it servermode.cfg
- Step 4In the file and the following net_start
sv_lan 0
deathmatch 1
maxplayers (whatever you want)- Step 5Save the file and load up Half-life 2
- Step 6Open the console and type exec servermode.cfg
- Step 7Now in the console type map <mapname of your choice>
- Step 8When it loads up open console up and type restart
Source: www.hl2world.com