Friday, October 30, 2009

How to Create Counter Strike Source dedicated server on Windows Vista or XP

What do you need ?

1 GB of free space on disk.
Recomanded OS: XP Service Pack 2 (but it runs just fine on Vista too)
1 GB of RAM Memory

1. Create a folder named SRCDS anywhere you pleased
2. Download CS Source Server Creator
3. Click on the CS-Source-Server-Creator.exe and choose SRCDS for installation
4. you will see
command prompter black window , Just wait until the installer downloads the server . After finished download the file the black window will be gone.

Attention : Some antivirus softwares will get a false virus detection when you run the installer. Don`t worry ! The installer is 100 % safe ! It is just HLDS Update Tool , a little bit simplified for you not to complicate yourselves with command lines.

How to configure the server

Go to folder Go to SRCDS\cstrike\cfg , check if you have there a file named server.cfg
If it is not there, create it with Notepad or Wordpad and save it with cfg extension. Then open it and copy this:


// server name
hostname "Server Name"

// rcon passsword
rcon_password "password"

// server cvars
mp_friendlyfire 0
mp_footsteps 1
mp_autoteambalance 1
mp_autokick 0
mp_flashlight 1
mp_tkpunish 1
mp_forcecamera 0
sv_alltalk 0
sv_pausable 0
sv_cheats 0
sv_consistency 1
sv_allowupload 1
sv_allowdownload 1
sv_maxspeed 320
mp_limitteams 2
mp_hostagepenalty 5
sv_voiceenable 1
mp_allowspectators 1
mp_timelimit 25
mp_chattime 10
sv_timeout 65

// bots
bot_quota 0
bot_quota_mode fill
bot_difficulty 2
bot_chatter off
bot_auto_follow 1
bot_auto_vacate 1
bot_join_after_player 0
bot_defer_to_human 1
bot_allow_rogues 0
bot_walk 0
bot_join_team any
bot_eco_limit 2000
bot_allow_grenades 1
bot_all_weapons
bot_allow_grenades 1
bot_allow_pistols 1
bot_allow_sub_machine_guns 1
bot_allow_shotguns 1
bot_allow_rifles 1
bot_allow_snipers 1
bot_allow_machine_guns

// round specific cvars
mp_freezetime 6
mp_roundtime 5
mp_startmoney 800
mp_c4timer 45
mp_fraglimit 0
mp_maxrounds 0
mp_winlimit 0
mp_playerid 0
mp_spawnprotectiontime 5

// bandwidth rates/settings
sv_minrate 0
sv_maxrate 0
decalfrequency 10
sv_maxupdaterate 60
sv_minupdaterate 10

// server logging
log off
sv_logbans 0
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

// operation
sv_lan 0
sv_region 0

// execute ban files
exec banned_user.cfg
exec banned_ip.cfg


Change the Server Name and RCON password as you like.
If you want to enable bots, set the bot quota in this line: bot_quota 0 (put the number here).

Opening the server


There is only one way to open the server so pay attention !

Go to SRCDS directory an look for srcds.exe. Right click on it and select "Create Shortcut" or “Send to -> Desktop” (if you want a shortcut on your Desktop) .
Right click thr shortcut and select "Proprieties".
In the Target field leave a space after the last character and copy this:


-console -game cstrike -secure +maxplayers 22 +map de_dust2

You can costumize it :
"-console" – is for the ingame console (the one that opens with `)
"-game cstrike" – is for the counter strike game
"-secure" – is for your VAC anti cheat. If you want it disabled just type insecure instead of secure
"+maxplayers 22 – is the maximal number of slots on your server (you can change it)
"+map de_dust2 - the starting map (you can olso change it)

Patching the server

If you want your server to be Steam Only, skip this step !
But if you want it to accept non steam users, download this patch, unzipp it and copy the following files to SRCDS directory:

-rev.ini and

-Steam.dll

Don`t copy the other files from archive, just these two !

Now you have a Counter Strike Source dedicated server that accepts Steam and Non Steam users.

Now we will make sure that you can administrate your server.
In order to do this you will have to install Source Metamod and Sourcemod or Mani Admin Plugin.