Thursday, June 27, 2013

How to install sound on counter strike server Windows or Linux

How to add music on a Counter Strike 1.6 server
Methods of adding sounds in the Counter Strike server

Inserting musical sounds in the game can be done in different ways. One of them is to install the plug-in “roundsound” in case the server runs on AmxModX. This plug-in introduces some familiar sounds in the game, which I am sure you know. These ones are played at the end of the round. I am sure you get bored of them - half of them are rock, and the other half are arabesque sounds, the same sounds for years which I am bored of. You will learn now how to change that.
Another method would be to modify an already installed plug-in in the AmxModX. “Miscstats” is the plug-in I am talking about, which is very easy to modify. This way, you can introduce new tracks and sound than the ones pre-established, as long as they can be withstood by the Counter Strike client that you use. The sound files that can be used are the wav files.

Adding sounds by modifying miscstats plug-in

The steps that you have to take to introduce the musical sounds (and not only musical):
1. Search on the internet (or wherever you think) for wav files that match your desires. These are small sound files that will be played in the game. These files should be small - about 100Kb - in order to be withstood by the CS client, and in order to be easily downloaded by the player that connects to the server. You can try the wav files used for phone ring tones. You copy these files in HLDS\cstrike\sound\misc.
2. Modify the “miscstates” plug-in.
3. Install the “precache” plug-in. Very important!!! Without this plug-in, the sounds are impossible to be heard by the players. You will be the only one that hears these sounds because the others will not have them installed in the cstrike\sound\misc.
The most simple method of adding musical sound in the Counter Strike 1.6 server is to get the plug-in from here and to install it as it is. So, download it, unzipp it wherever on the disk and:
a. Copy the miscstats.amxx file in HLDS\cstrike\addons\amxmodx\plugins over the one that is already there.
b. Copy the files from the sound folder in HLDS\cstrike\sound\misc.
c. Install the precache plug-in in any other amxmodx plug-in (the amxx file should be copied in amxmodx\plugins, then the plug-in should be edited in amxmodx\configs\plugins.ini).
d. Copy the precache.txt text file in HLDS\cstrike\addons\amxmodx\configs. If you have correctly installed everything, then you should hear during the ga,e the following sounds:
- a short piece of Parazitii track at the beginning of the round
- you will hear the “impressive” sound for the last alive player of the team
- during the round, at some frags you will hear a piece of the track “dinpacate”
In order to install any piece of track that you desire (between the limits that are withstood by the CS client), you will have to know what it should be modified in the miscstats plug-in. After you have downloaded and unzipped miscstats.zip, open the folder, and you will find the miscstats.sma file, that you should copy in HLDS\cstrike\addons\amxmodx\scriptings.
Open the sma and search for the line marked with (1) in the help page. (search carefully scrolling down; the plug-in is big enough and you should search carefully). Here you have the “firstblood” sound, that can be heard at the first frag of the round. If you want to replace it, write the name of a wav file that you desire.

Ex: from play_sound("misc/firstblood") - you can do
play_sound("misc/maneanasoala")- replace only the name of the wav file.

If you replace it, the “firstblood” sound would not hear anymore, in stead you will hear the sound that you put there.
Then, search for the line marked with (2) in the help page. Here you replace the “impressive” sound with the name of the wav file that you want to add. This will be the sound that will be heard in case of “ last man” - the last player standing.
Now, search for the line marked with (3) in the help page. Here you have the sound “dinpacate” that you can replace with whatever sound you want. This will be again a sound heard in the “last man” situation, a sound that will alternate with the other (impressive).
Then, search for the line marked with (4) in the help page. Here you have the sound that is heard at the beginning of the round “prepare to fight”, and under it you have a “parazitii” sound that you can replace with whatever sound you want - erase “parazitii” and write “mariaciobanu” or whatever wav you want. Do not replace the “prepare” sound.
For every added sound you should edit in the “precache” text file a line like this: sound\misc\sunet.wav.
When you finished done all the adding that you wanted, compile the sma (if you do not know, learn here how) and install the amxx file in the amxmodx\plugins, then edit it in amxmodx\configs\plugins.ini.
Copy the wav sounds in HLDS\cstrike\sound\misc - where HLDS is the main directory of the server.

Attention!!!!
Do not forget the b,c,d points up here!!
Important!!! The wav files should be smaller as possible to be heard. It is useless to add a whole track because it will not work.

Adding sound with the roundsound plug-in
Modifying the plug-in

If you want to use the roundsound plug-in, I will show you how it can be modified for you to be able to add whatever sound you want, and to avoid using the default sounds, that are old and boring. It is very simple, you do not have big deal to do. The plug-in has 6 pre-established wav sounds that can be replaced if you want. The sounds are:
-for the rounds won by ct: ctwinar2, ctwinar3, ctwinar4
-for the rounds won by tero: twinar, twinar2, twinar3
To replace them, you have to be careful to:


1.Copy the new wav sounds in HLDS\cstrike\sound\misc

They should be 6 in number and named as simple as it is possible. Three of them will be for the rounds won by ct, and the other three for those won by tero.


2.Download here the plug-in, and unzipp it.

In the main folder you will find the sma file. Open it and there you have some lines that should be modified like this:
switch(line)
{
case 0: client_cmd(0,"spk misc/twinnar")
case 1: client_cmd(0,"spk misc/twinnar2")
case 2: client_cmd(0,"spk misc/twinnar3")
and
switch(line)
{
case 0: client_cmd(0,"spk misc/ctwinnar2")
case 1: client_cmd(0,"spk misc/ctwinnar3")
case 2: client_cmd(0,"spk misc/ctwinnar4")
Here, you have to modify the names of the wav file. For example, for the rounds won by tero you want to put the sounds -manea1, house2 and lautareasca 3. You will change twinar, twinar2, and twinar3 with the sounds that you want, so you will have:
case 0: client_cmd(0,"spk misc/manea1")
case 1: client_cmd(0,"spk misc/house2")
case 2: client_cmd(0,"spk misc/lautareasca3")
The same with the sound corresponding to winning the round by the counters.
Down you will have some precache lines:
public plugin_precache()
{
precache_sound("misc/ctwinnar2.wav")
precache_sound("misc/ctwinnar3.wav")
precache_sound("misc/ctwinnar4.wav")
precache_sound("misc/twinnar.wav")
precache_sound("misc/twinnar2.wav")
precache_sound("misc/twinnar3.wav")
The same, you will change here the pre-established sounds with the ones you want. This step is very important. If you do not write here the names of the wav files, you will be the only one that hears them during the game.

3.Compile the sma and install the plug-in.

You won’t have to install another precache plug-in for the roundsound plug-in, this being included!!!
I remind you: the wav files should be as small as possible!!!! It is advisable that they are under 100Kb, but it can be a little larger as well. Try the wav files used as phone ring tones (you will find thousands on the internet). The mp3 files are not supported by these two plug-ins.
Download here some wav files that can be used.
The roundsound plug-in (that can be downloaded here) can be used as it is, without any other modification.

Addon Maker

How to automatichaly create an addon

Addon Maker
The easiest way to make addons

This is the easiest way to make addons for your Counter Strike 1.6 server because it`s an automatic method of installation using the Counter Strike 1.6 Simple Addon Creator.
Download here the installer then unzipp it anywhere on disk. Double click the yellow icon (the exe file) and choose the installation folder wich will be HLDS (the main directory of your server). A blue window will be displayed presenting the options. There you choose wathever you want : AMX ModX, AdminMod, AMX ModX+AdminMod+Statsme, etc. So you check one of the options typing the coresponding case (the case should be minor) and then hit ENTER.

In order to add bots to your Counter Strike 1.6 dedicated server you will have to do this :

1. Download here the podbot arhive and unzippe it.
2. Copy the podbot folder into HLDS\cstrike\addons - HLDS is the main directory of your server .
3. Open HLDS\cstrike\addons\metamod\plugins.ini and add this line under those who already are there :
win 32 addons\podbot\podbot_mm.dll
If you want to change bots number open HLDS\cstrike\addons\podbot\podbot.cfg and edit the lines:
pb_minbots 3
pb_maxbots 12
One of the Podbot problems is the lack of bot waypoints for new, custom maps. So, we provide you a little help on that. Is an colection of more then 2000 map waypoints for CS 1.6 Podbot. Download Counter Strike 1.6 Podbot waypoints here. Double click the exe and chose the server`s main directory as installation folder.
Optional, you can download and install Amx Podbotmenu if your server is running Amx Mod X. This plugin will add a menu for bots and some commands. Commands for this plugin:
amx_pbmenu - invokes the main menu for podbot mm - do anything to your bots from it (most important command)
amx_pbaddbot - just add a randome bot to your server
amx_pbcmmenu - choose model of the bot your adding
amx_pbcpmenu - choose personality of the bot your adding
amx_pbcsmenu - choose skill of the bot your adding
amx_pbctmenu - choose team of the bot your adding
amx_pbkbmenu - menu to kick the bots
amx_pbwmmenu - weapon mode menu for all bots

Anti CS Dos Tutorial

Anti CS Dos Tutorial

Anti crush solution for Counter Strike 1.6 servers

I`m sure it happened to you many times. Suddenly the server is blocking and in the top right corner of your screen a message displayes :
WARNING Connection Problems
You are asking yourserf : what was that? it`s got to be the internet connection !...No, it has nothing to do with the internet connection. You`ve just been the victim of a little "attack". There is a program that can crush your server from the distance. The program is available on the internet, anyone can download it and when someone gets angry with you on your server (he gets kicked or banned or something like this) he just exit your server and crushes it. This program is called CSDos. But as every issue has a solution the anti CSDos was developed. It is a program called AntiCSDos and makes the CSDos inefficient if it is used proprely.
Download here AntiCSDos.rar, unzipp it anywhere on disk and install it like any other program by double clicking the executable, etc...Usage:
1. Start your CS 1.6 dedicated server.
2. Start the AntiCSDos by double clicking the executable.
3. This is the most important step : press Patch HLDS ! Without this step yor server is not protected.
After you patched HLDS you can turn off the AntiCSDos. The protection is still active if you patchedv HLDS !
The dynamic ip users will have to patche HLDS on every ip change. Otherwise your server won`t be protected. Start the AntiCSDos and patche HLDS once a day and your server will not be blocked.

How to make clients to download your server`s files faster

Fast download tutorial
How to make clients to download your server`s files faster

It frequently happens that your clients have no patience to download the files of your server (sounds, maps, models and others) and they disconnect. As a result your server is always empty. Now we have a solution to this problem.
You will have to install a web server. First, download WampServer2 here and install it. Double click the executable and follow the installation steps. You will be asked if you want to make a desktop shortcut and a quick lunch icon. Chose both of them. The installer will install the server in your C partition in a directory called wamp.
Start the web server using the Shortcut and then look for a small icon in your Taskbar. Click on it and chose Start all services and then Put Online (if it gives you an error when you click Put Online, it means that your server already is online).

Now you can acces your web server in browser ( Mozilla, Internet Explorer, Opera, Netscape) typing http://your ip (ex: http://85.123.123.45 – no port).
If your ip is dynamic, the solution is to create a DNS address on www.no-ip.com ad to keep it updated.
In this case you will access the web server using : http://server.no-ip.org .

Steps to set up the fast download

1. Start the server
2. Click Start all Services and Put Online ( if the server is not already online).
3. In the Taskbar menu click www.directory and the www folder will open. This is the main directory of your web server.
Create in this directory a new folder ( you can call it csfiles, or cs or anyhow).
4. Go to HLDS\cstrike folder of your counter strike server and copy from there the folders : sound, maps, models, sprites, gfx (you can copy the other ones too).
5. Paste those folders in the csfiles folder of your web server.
6. Open HLDS\cstrike\server.cfg and edit a line like this :
sv_downloadurl "http://your ip/csfiles/ 
or
sv_downloadurl "http://your dns/csfiles (make sure that the dns address is upadated)
Now you can open the Counter Strike server. Your clients will download the sounds, the maps or the models in a matter of seconds and you won`t be losing any client because of that.
Warning ! Run the web server when your counter strike server is online.
Update the DNS address if your ip changes.

16 steps How to reduce the lag on the server!

- Step 1 - The firs step is that the server has "Realtime" priority.
Start the server, press CTRl + Alt + Del, click Processes, find hlds.exe in the list, and right click on it, Set Priority - Realtime.
- Step 2 - The second step is:
- Go o the hlds.exe folder (from where you have opened the server), make a shortcut to the hlds.exe, then you will find in the same folder another file "Shortcut to hlds". Right click on this one, press Proprieties, and in the first raw you have Target, and there yo have something like HDD:\location\hlds.exe .
Now add -console -game cstrike -pingboost 3 +sys_ticrate 1000 +heapsize 250000 +maxplayers 20 +map de_nuke.
- Step 3 - the third step is to install HL Booster


- Step 4 - Step 4 is for more quick change of the map:
- Enter the cstrike folder, where you have the installed the server , find the custom.hpk file and remove it for good.
- Step 5 - Can be used as a script for rates:
Code:
alias "dslow" "sv_minrate 2500;sv_maxrate 2500;sv_minupdaterate 5;sv_maxupdaterate 5;echo dead slow"
alias "vslow" "sv_minrate 3500;sv_maxrate 3500;sv_minupdaterate 13;sv_maxupdaterate 13;echo very slow"
alias "slow" "sv_minrate 3500;sv_maxrate 5000;sv_minupdaterate 14;sv_maxupdaterate 14;echo slow"
alias "norm" "sv_minrate 3500;sv_maxrate 7500;sv_minupdaterate 15;sv_maxupdaterate 15;echo normal"
alias "fast" "sv_minrate 3500;sv_maxrate 9999;sv_minupdaterate 20;sv_maxupdaterate 20;echo fast"
alias "vfast" "sv_minrate 3500;sv_maxrate 20000;sv_minupdaterate 20;sv_maxupdaterate 60;echo LAN fast"
alias "rates" "sv_minrate;sv_maxrate;sv_minupdaterate;sv_maxupdaterate"
Add the file server.cfg to the script, in the cstrike folder where you have installed the server.
Usage: After you have started the server, write in the console what setting you want, considering the type of internet connexion you have, and also considering the type of computer that you keep the server on. For exemple, if you have a server on lan, write in the console vfast, or if you have a server where you have players in the same network you can use fast or norm. You can acces this script by "rcon" considering the variation of the lag on the server. you should not have any setting about the rate in server.cfg, listenserver.cfg, game.cfg, settings.cfg, amx.cfg etc.
- Step 6 - It refers to some setings that you should add on the server.
- You have the following settings:
Code:
log off
sv_logbans 0
sv_logecho 0
sv_logfile 0
sv_log_onefile 0
mp_logmessages 0
mp_logdetail 0
sv_unlag 1
sv_maxunlag .1
fps_max 600
You shoul add these settings in server.cfg .
- Step 7 - It refers to some settings that you should use considering the type of internet connexion you have.
Code:
// Modem 56k //
rate 5000
sv_rate 5500
sv_cmdrate 40
sv_cmdbackup 2
sv_updaterate 45
mp_resend 2
sv_dlmax 40
mp_decals 50
Code:
// 128k //
rate 10000
sv_rate 10000
sv_cmdrate 60
sv_cmdbackup 3
mp_updaterate 60
sv_resend 2
sv_dlmax 100
mp_decals 100
Code:
// 256k //
rate 12000
sv_rate 12000
sv_cmdrate 101
sv_cmdbackup 4
sv_updaterate 101
sv_resend 3
mp_dlmax 256
mp_decals 100
Code:
// 512k //
rate 15000
sv_rate 15000
sv_cmdrate 80
sv_cmdbackup 4
mp_updaterate 45
sv_resend 3
mp_dlmax 400
mp_decals 100
Code:
// 1024k //
rate 20000
sv_rate 20000
sv_cmdrate 80
sv_cmdbackup 6
mp_updaterate 80
sv_resend 6
mp_dlmax 800
mp_decals 300
Code:
// 2048K //
rate 25000
sv_rate 25000
sv_cmdrate 101
sv_cmdbackup 6
sv_updaterate 101
sv_resend 6
Code:
// DSL High //
rate "12001.000521"
sv_rate "9999"
sv_latency "-21.000521"
sv_updaterate "160"
sv_cmdrate "40"
mp_resend "2"
mp_cmdbackup "2"
sv_dlmax "768"
ex_interp "0.01"
ex_extrapmax "10"
Code:
// DSL Low //
rate "9001.000521"
sv_rate "9999"
mp_latency "-51.000521"
mp_updaterate "67"
sv_cmdrate "40"
sv_resend "2.5"
mp_cmdbackup "51"
mp_dlmax "512"
ex_interp "0.05"
ex_extrapmax "4"
cl_dlmax 800
mp_decals 300
Code:
// qDSL //
rate "15001.000521"
cl_rate "9999"
cl_latency "-16.000521"
cl_updaterate "101"
cl_cmdrate "400"
cl_resend "1.5"
cl_cmdbackup "2"
cl_dlmax "1024"
ex_interp "0.01"
ex_extrapmax "10"
You should add these settings in server.cfg, but not all of them. Add only the ones you think you need!!!
- Step 8.
In step 8 you will learn some Windows settngs:
- Right click on My Computer, press Properties, click up on the Advanced, and in Performance, click Settings and do like in the image below:
- Step 9 - About the optimization of some processes, and how to disable the unuseful ones.
- Press the Start button, click Run... and write regedit, then press [+] from HKEY_LOCAL_MACHINE, than press [+] from SYSTEM, then press [+] from CurrentControlSet, then [+] from Control, than press [+] from Session Manager and then press on Memory Management. In the right you will have a list with some registers.
Double click DisablePagingExecutive and at Value data change the 0 with 1.
- In order to stop the unusefull processes:
Press Start, clik Run and write msconfig. A window will apear, click on Services and click the ones you do not need. Also, press Startup and click on those you think you do not need.

- Step 10 -
- Click on Start, press Run... and then write gpedit.msc. Under Computer Configuration press the [+] from Network, and then press QoS Packet Scheduler and you will have a lst in the right, where you can make some settings. Double click on Liit reservable bandwith, then mark Enabled and change rom 20% to 0% at the Bandwith limit. Then click Apply and OK.
- Step 11-
- Right click on the Desktop - Properties - Apperance - Effects. In this window, only the raw Hide underlined letters... should be marked.
-Step 12 -
- Click Start - Run and write Sigverifexe. Then press Start.
- Stept 13 - 
- Go to Control Panel and then Administrative Tools - Services. Right click - stop on the following:
Application Management
Clipbook
Error Reporting
Distributed Link Tracking Client
Help and Support
Indexing
IPSEC
Messenger
Remote Registry Service
Telnet
Windows Time
WMI Performance Adapter
- Step 14 -
- Go to Start - Run and write regedit. Then go to HKEY_LOCAL_MACHINE\SYSTEM -> CurrentControlSet -> Control -> Session Manager -> Memory Management -> PrefetchParameters. Then enter the EnabePrefetcher and set the value 3. 
-Step 15 -
- Enter Start - Run and write regedit. Then go to HKEY_LOCAL_MACHINE -> SYSTEM -> CurrentControlSet -> Control -> PriorityControl. In the right press New - DWORD Value. Write IRQ8Priority. Then press Modify and put the value 1. 
- Step 16 -
- Use the "TCP Optimizer" software in order to optimize the internet. It is a good software that I tested.
CAUTION! It is not mandatory to follow all the steps, follow only the ones you think you need.
I do not assume any risk in case you damage your pc or your server, even though I know that nothing can happen. But you can modify by mistake other things an you can blame me.
I will keep you informed with the new changes and I will add new steps. If you want to upload this guide to your own web site, first send me an email to check if I agree.

How to make an image motd for your Counter Strike 1.6 server

You can set up an image MOTD (the picture that shows before connecting to a server) using one of the following methods:
  • Writing the text directly to the picture, uploading it on a file hosting server and inserting the URL into one piece of html code.
  • Inserting the text into the html code.

First method – writing on a picture

Chose a picture here or any other. If you chose to use your own picture you will have to resize it first. Download here, Paint Net photo editor. Install it , open it and in the upper left corner you will find File -> Open . Chose the picture from your computer and open it. In order to resize it click Image -> Resize . Check “By absolute size”, uncheck "Maintain aspect ratio" and write the following sizes :
    • widith : 766
    • height: 383
    You have your picture sized and ready for your motd. Now you`ll have to write the text. In order to do that open the Tools and Colors (if they are not already opened, click Windows menu and open it there). In the Tools menu you`ll find the writing tool represented by the letter “A”. Chose the color of your text in Colors menu and write the text on your picture. Save the image when you are done ( File -> Save , name it and save it as gif, jpg, png or bmp).


Uploading the picture on a file hosting server and inserting the url into the html code

In order to do that follow this link and make an account there. Upload the picture to your account, click Files -> Main folder (see the image) . You`ll see a small thumbnail of your picture. Click on it and the picture will open. In the upper left corner of it you`ll see the needed URL address wich you`ll have to copy (see the image).
Copy that URL into this piece of html code :
What you need to change in this code is : http://tutorialecstrike.com/clienti/guns84.jpg
This code you`ll have to copy into HLDS\cstrike\motd.txt after you deleted the code that is already there. Save and close motd.txt.
If you chose to use one of our pictures you will not have to upload it to a file hosting site. The pictures are hosted by us. Just copy into the code above this url :
http://www.tutorialecstrike.com/clienti/image.jpg
Replace “image.jpg” with the name of the picture you have chosen.
Warning ! Never forget to write the pictures extension (jpg, gif), otherwise the image won`t show.
The picture will fit exactly into the game window !