Showing posts with label Tools. Show all posts
Showing posts with label Tools. Show all posts

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.