Friday 9 November 2012

How to add music on a cs server by rudeboyz


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.
The roundsound plug-in (that can be downloaded here) can be used as it is, without any other modification.

0 comments :

Post a Comment

 

WALEED RAJPUT . Copyright 2008 All Rights Reserved by WALEED RAJPUT Converted into Blogger Template by WALEED RAJPUT