Counter-Strike is a first-person shooter GAME in which players join either the terrorist or counter-terrorist team (or become a spectator). Each team attempts to complete their mission objective and/or eliminate the opposing team. I created its first server back in 2006/2007 for my Ex-Cyber Cafe/Cable.Network system. Till date C.S is the most popular and famous networking Action Game for all ages.
I am writing this guide so anyone can create this server with very minimum knowledge required.
First you need to install Counter Strike 1.6 on any version of Windows . Either from CD or local installation file, Install it in
After installation, goto command prompt
Now use the following command to create CS dedicated server
hlds.exe -console -game cstrike -autoupdate +maxplayers 32 +map de_aztec +log on -nomaster +svlan 1
Or its better to create a new shortcut on your Desktop with the following code,
c:\cstrike\hlds.exe -console -game cstrike -autoupdate +maxplayers 32 +map de_aztec +log on -nomaster +svlan 1
This way you can always Start the server with this shortcut, or you can place it in your windows startup so it will automatically run when windows starts.
Now a Very basic counter strike dedicated server is ready to use. User can connect to this server and play game with each other.
Now We will add some extra functionalities in CS for enhancements and entertainment to give it fully professionaly look 🙂
For this purpose we have to add some MODs.
First we will ADMINMOd.
and downlaod halflife-admin-2.50.60-win.zip
After downloading, extract it in any folder.
Run install_admin.vbs , click OK to continue,
Now it will ask you to specify a full path where CS is installed, in our case its c:\cstrike , so type the full path like this
It will ask Modification Choice, Select 1
It will then install ADMIN MOD.
Now if you will start Counter strike server, you will see few more lines indicating that [META] and [ADMIN] tags which will indicate that ADMINMOD is installed correctly. you can use the following file to modify ADMINMOD settings at
For example you print your banner advertisement via this line
admin_connect_msg “Welcome to the AA Net CS Dedicated Server“
and many other cool things you can do with this like map voting etc etc.
Always RESTART the C.S after adding any addon to it, so changes can take effect properly.
Now we will add another ADDON name AMXMOD. Installing AMX MOD X for counter strike is quite easy, Just follow these easy steps to install it.
A step bys tep GUI guide is available at
Download AMXMOD 1.8.1 from
The version of AMX MOD X which I am using in this guide is V1.8.1. Install AMX MOD X like you do install any other app. Upon finish put check mark on “RUN AMX MOD X INSTALLER 1.8.1” and click on Finish.
Now a new window will apear,
Click on Next,
Accept the license agreement and click Next,
In Local Installation select “Select Mod directory” and click on Next,
Now it will ask you to choose directory, point it to c:\cstrike\cstrike\
and in Custom Game Addon, Select COUNTER-STRIKE from drop down menu, now click OK
It will then install the AMXMOD-X.
Now if you start the CS server, you will notice AMX MOD X tags in various lines.
Congrats You have install AMX Mod too 🙂 You can edit it according to your requirments.
Its config files locations are.
C:\cstrike\cstrike\addons\AMX Mod X\files\cstrike\configs
**** PSYCHOSTATS INSTALLATION TUTORIAL [FOR Ubuntu/LINUX] ****
What is PsychoStats ?
PsychoStats is open source software that creates comprehensive gaming statistics for players and clans. Allowing anyone with a webserver to have a website that shows detailed statistics and ranks for their single game server, or even multiple game servers! for examples Half.Life and Coutner.Strike
A sample ranking website can be viewed at
PsychoStats version 3.1 is very easy and quick to install on any system. It includes an online installation wizard that you run through your browser. Follow these simple steps and you’ll be up and running in few minutes.
- PHP v4.3 (or 5.0+) - MySQL v4.1.11 (or v5.0+) - Perl v5.8 - Required Perl modules - DBI - DBD::mysql
If you have fresh Linux, install PHP , Mysql and other using this article.
Step By Step Installation Process of Psychostats:
Login as root to your linux machine.
Create a new temp directory
mkdir /temp cd /temp
Now download Psychostats 3.1
tar zxvf psychostats3.1.tar.gz
Now create a new directory in your webserver name stats
Copy the psychostats Frontend Files to above folder so that you can start web base installation process. To do this, use the following command
cp -rf upload/* /var/www/stats/
Now its time to create MySQL Databas before start the installation.
Exectue the msyql program and create the following database.
mysql -u root -p123
create database stats; grant all privileges on stats.* to root@"localhost"; flush privileges; exit
Now its time to Start the installation wizard process 🙂 To start the installation point your browser to use a URL like this:
Now follow the below images to go complete the installation.
Now Edit the /var/www/stats/config.cfg with the proper database settings that you have create above , so PsychoStats can connect to your database.
root@linux:/var/www/stats# cat config.php <?php $dbtype = 'mysql'; $dbhost = 'localhost'; $dbport = ''; $dbname = 'stats'; $dbuser = 'root'; $dbpass = '123'; $dbtblprefix = 'ps_'; ?>
Now point your browser to http://192.168.2.9/stats and you will see Psychostats main screen.
At this point you have run the ‘Install Wizard‘ from your browser and the database is fully setup and you can view your empty player stats online. Now it’s time to finally generate some stats!
First copy the stats.pl, stats.cfg and lib/ directory to the /var/www/stats from the folder where you untar the psychostats installation file. in this case it it /temp/
cd /temp cp -R lib/ /var/www/stats/ cp stats.cfg /var/www/stats/ cp stats.pl /var/www/stats/ cd /var/www/stats
Now edit the stats.cfg and Enter the MYSQL DB details that we have entered before. Its necessary to run stats.pl correctly
Now execute the main stats.pl to generate your statistics.
Note the added command line option ‘-v’. This enables ‘verbose’ mode and will cause some extra feedback while the stats are processing. This is recommended the first time you run it so you can see what is happening
Automatic Scheduling of PsychoStats
Now that you’ve run the stats.pl at least once and have confirmed that you are getting statistics on your website you’ll most likely want to setup PsychoStats to run automatically. PsychoStats does not have built in functionality to run itself. So in order to do this you need to add it in Linux CRON.
Run crontab and it will open up your default
Simply enter the following line
0,30 * * * * /var/www/stats/stats.pl
Save the file and exit. This will run stats.pl every 30 minutes
HOWTO CREATE MRTG STATS FOR FORCOUNTER STRIKE USER USAGE
As I am obsessed with MRTG, I have also found a way to graph Counter strike users. To graphs cs users, we will need a script name kkcron.pl ,
you can download it from http://kkrcon.sourceforge.net/after untar it , Now set the rcon password on your cs server by using this command on CS Server console.
Now test the kkcron.pl by following command to make sure its giving us the required data before going furhter.
/temp/kk/kkrcon.pl -a 192.168.2.5 -p 27015 -t new 12345678 status |grep players | cut -c12
(For some reason, you may have to adjust the cut -c12 integer to match yours, use some common sense in this matter) Result woule be some thing like below 17 (Which means 17 usesr are connected with your CS Server) Now everything is ready, use the Use the following cs.cfg example , that you can use to graph the C.S users with the help of kkcron.pl
#cs.cfg # Total CS Users Target[cs.users]: '/temp/kk/kkrcon.pl -a 192.168.2.5 -p 27015 -t new 12345678 status |grep players | cut -c12' Title[cs.users]: CS Logged in Users PageTop[cs.users]: <H1> CS Logged in Users </H1> MaxBytes[cs.users]: 300 Colours[cs.users]: B#8888ff,B#8888ff,B#5398ff,B#5398ff Options[cs.users]: gauge,nopercent,noo,integer,growright LegendI[cs.users]: CS Logged in Users LegendO[cs.users]: YLegend[cs.users]: CS Logged in Users Legend1[cs.users]: CS Logged in Users Legend2[cs.users]: Unscaled[cs.users]: ymwd
~!~ ALL DONE ~!~
Congratulations, You’re all done. You should have a fully functional Counter Strike 1.6 Dedicated Server for LAN with PsychoStats User Ranking System with MRTG installation and all will automatically update themselves.