AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] Join Sound (https://forums.alliedmods.net/showthread.php?t=194623)

tumtum 08-29-2012 19:08

[CS:GO] Join Sound
 
2 Attachment(s)
CS:GO Join Sound is a simple plugin with a welcome sound.
I found it in an old folder, so I adjusted a bit to cs:go.

Place joinsound.smx in Addons > Sourcemod > Plugins
You can place the sound map in the root directory CS:GO > Place here :)

Use sm_start_sound "music/map/sound.mp3"

Remember, CS:GO not support WAV or something Use only .mp3 Place your mp3 in Sound/music/yourfileormap
Use Audacity to convert your music to mp3 format if you dont know other options.

A little plugin, but it works :stupid:

Thanks!

hajmus 08-30-2012 01:39

Re: [CS:GO] Join Sound
 
nice, works great :)

TheKiwI 08-30-2012 03:54

Re: [CS:GO] Join Sound
 
I use a mp3 file but I have this error :
[Sound] S_StartSound(): Failed to load sound 'furaxx\intro_mg.mp3'. Can't create mixer.

tumtum 08-30-2012 04:01

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by TheKiwI (Post 1786739)
I use a mp3 file but I have this error :
[Sound] S_StartSound(): Failed to load sound 'furaxx\intro_mg.mp3'. Can't create mixer.

Thanks for your Reply.
See the instructions^^ place your sound in Sound > Music > furaxx > intro_mg.mp3

TheKiwI 08-30-2012 04:07

Re: [CS:GO] Join Sound
 
Already done. I downloaded the sound.
I have it in my csgo folder but nothing in game. Just the error above.

Quote:

Originally Posted by tumtum (Post 1786743)
Thanks for your Reply.
See the instructions^^ place your sound in Sound > Music > furaxx > intro_mg.mp3

Why "Music" ?
The sound is here : sound/furaxx/intro_mg.mp3

tumtum 08-30-2012 04:12

Re: [CS:GO] Join Sound
 
Place it here: csgo/sound/music/furaxx/intro_mg.mp3
All your customs sounds need to be placed in the sound/music directory

sm_start_sound "music/furaxx/intro_mg.mp3"

TumTum

TheKiwI 08-30-2012 04:22

Re: [CS:GO] Join Sound
 
it works,
I didn't know that the "music" folder was essential.
Thanks a lot.

tigerox 08-30-2012 04:28

Re: [CS:GO] Join Sound
 
This is the same as this: Welcome Sound

tumtum 08-30-2012 04:29

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by TheKiwI (Post 1786750)
it works,
I didn't know that the "music" folder was essential.
Thanks a lot.

No problem Enjoy :up:

tumtum 08-30-2012 04:30

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by tigerox (Post 1786755)
This is the same as this: Welcome Sound

A little yes, but this one is changed for cs:go!
Other people don't know how to place custom sounds in cs:go and this will help the people.

This plugin are very small.

TumTum

TheKiwI 08-30-2012 04:42

Re: [CS:GO] Join Sound
 
I noticed that the sound stops after the team selection.
It's possible to disable csgo base sounds ?

tumtum 08-30-2012 04:51

Re: [CS:GO] Join Sound
 
Yes, Everything is possible in cs:go but i dont know how :)

You need to search for the location files.

tigerox 08-30-2012 09:14

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by tumtum (Post 1786757)
A little yes, but this one is changed for cs:go!
Other people don't know how to place custom sounds in cs:go and this will help the people.

This plugin are very small.

TumTum

You changed one cvar.

tumtum 08-30-2012 09:17

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by tigerox (Post 1786939)
You changed one cvar.

If you don't like it, please search other topic.
Use it or not, your choice.

A lot of people dont know the MP3 problem.
It is not a big change but dont cry about it.

Jetlag 08-30-2012 11:52

Re: [CS:GO] Join Sound
 
[Sound] S_StartSound(): Failed to load sound 'music\welcome\secretforce.mp3'. Can't create mixer.


help please i used ur mp3

tigerox 08-30-2012 11:58

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by tumtum (Post 1786943)
If you don't like it, please search other topic.
Use it or not, your choice.

A lot of people dont know the MP3 problem.
It is not a big change but dont cry about it.

I am trying to help you, as I don't see how this plugin will ever be approved.

The proper thing to do would be to post the correct sound location for csgo in the original plugins thread.

tumtum 08-30-2012 12:01

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by Jetlag (Post 1787055)
[Sound] S_StartSound(): Failed to load sound 'music\welcome\secretforce.mp3'. Can't create mixer.


help please i used ur mp3

If you place it in Sound > Music > File it will always work.
If not i dont know what there is wrong. I have tested it on my server.

Jetlag 08-30-2012 12:25

Re: [CS:GO] Join Sound
 
csgo/sound/music/welcome/secretforce.mp3

I can download it i have it in my csgo folder

sm_start_sound "music/welcome/secretforce.mp3"
in the server cfg

but it wont start


[Sound] S_StartSound(): Failed to load sound 'music\welcome\secretforce.mp3'. Can't create mixer.

tumtum 08-30-2012 13:21

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by Jetlag (Post 1787086)
csgo/sound/music/welcome/secretforce.mp3

I can download it i have it in my csgo folder

sm_start_sound "music/welcome/secretforce.mp3"
in the server cfg

but it wont start


[Sound] S_StartSound(): Failed to load sound 'music\welcome\secretforce.mp3'. Can't create mixer.

It is very weird.
CS:GO can only play mp3 sounds in the music maps.
I think it is some configuration on your server.

exzi 08-30-2012 14:18

Re: [CS:GO] Join Sound
 
when i try original sound it works great, but when i add my own sound this shows up : S_StartSound: Invalid sample rate (48000) for sound 'music\welcome\tcstartmusic.mp3'.

what sample rate would work cause the original secretforce.mp3 rate is 22050 Hz

for cs:s the rate must be 48000 Hz

tumtum 08-31-2012 05:04

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by exzi (Post 1787155)
when i try original sound it works great, but when i add my own sound this shows up : S_StartSound: Invalid sample rate (48000) for sound 'music\welcome\tcstartmusic.mp3'.

what sample rate would work cause the original secretforce.mp3 rate is 22050 Hz

for cs:s the rate must be 48000 Hz


CSS / Day of Defeat and CS:GO had this error a lot of time.
It is a bug in cs:go, a reinstall can fix it on the gamer side. (not the server)
or use your mp3 on 44khz.

tumtum 08-31-2012 05:06

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by Jetlag (Post 1787086)
csgo/sound/music/welcome/secretforce.mp3

I can download it i have it in my csgo folder

sm_start_sound "music/welcome/secretforce.mp3"
in the server cfg

but it wont start


[Sound] S_StartSound(): Failed to load sound 'music\welcome\secretforce.mp3'. Can't create mixer.

If found this:
Convert you Mp3 to OGG and reconvert to Mp3 for remove all Mp3 Tag and Cover.

Maybe it helps.

Jackmaster 08-31-2012 05:46

Re: [CS:GO] Join Sound
 
Remove this shit guy, You copied the script omfg go away

tumtum 08-31-2012 06:16

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by Jackmaster (Post 1787644)
Remove this shit guy, You copied the script omfg go away

I will remove you,
Go away and search a life.

You see this topic? then you see a lot of people dont understand it.
With this changed "location" people understand it better and is easier to install.

Problems? Simply go away ;)

codeye 08-31-2012 15:10

Re: [CS:GO] Join Sound
 
well im also having issues, in console it says its downloading the sound in green then underneath in red error downloading sound? i have a fast download url that i use for my css server works fine but not for go? i also get this message in console:[Sound] S_StartSound(): Failed to load sound 'music\vz\welcome vz.mp3'. Can't create mixer. i have created a folder in sound/music/vz and my mp3 is in the vz folder here is the directory /csgo/csgo/sound/music/ vz, this is in my server.cfg: sm_start_sound "sound/music/vz/welcome vz.mp3" and this sv_downloadurl "http://velocity-zone.co.uk/csgo" any ideas plz thanks

copied from console.

Downloading http://velocity-zone.co.uk/csgo/soun...sic/vz/welcome vz.mp3.bz2.
Error downloading http://velocity-zone.co.uk/csgo/soun...sic/vz/welcome vz.mp3.bz2
Downloading http://velocity-zone.co.uk/csgo/soun...sic/vz/welcome vz.mp3.
Error downloading http://velocity-zone.co.uk/csgo/soun...sic/vz/welcome vz.mp3
No pure server whitelist. sv_pure = 0
★CoDEyE★ connected.
Receiving uncompressed update from server
[Sound] S_StartSound(): Failed to load sound 'sound\music\vz\welcome vz.mp3'. Can't create mixer.

tumtum 08-31-2012 18:59

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by codeye (Post 1788015)
well im also having issues, in console it says its downloading the sound in green then underneath in red error downloading sound? i have a fast download url that i use for my css server works fine but not for go? i also get this message in console:[Sound] S_StartSound(): Failed to load sound 'music\vz\welcome vz.mp3'. Can't create mixer. i have created a folder in sound/music/vz and my mp3 is in the vz folder here is the directory /csgo/csgo/sound/music/ vz, this is in my server.cfg: sm_start_sound "sound/music/vz/welcome vz.mp3" and this sv_downloadurl "http://velocity-zone.co.uk/csgo" any ideas plz thanks

copied from console.

Downloading http://velocity-zone.co.uk/csgo/soun...sic/vz/welcome vz.mp3.bz2.
Error downloading http://velocity-zone.co.uk/csgo/soun...sic/vz/welcome vz.mp3.bz2
Downloading http://velocity-zone.co.uk/csgo/soun...sic/vz/welcome vz.mp3.
Error downloading http://velocity-zone.co.uk/csgo/soun...sic/vz/welcome vz.mp3
No pure server whitelist. sv_pure = 0
★CoDEyE★ connected.
Receiving uncompressed update from server
[Sound] S_StartSound(): Failed to load sound 'sound\music\vz\welcome vz.mp3'. Can't create mixer.

Yes remove the s p a c e s and write
http://velocity-zone.co.uk/csgo/soun...ome_vz.mp3.bz2.
cant create mixer is this problem i think, if it is not look older messages on this topic.

Edit: do not add space add: _ this on space places.

codeye 08-31-2012 20:17

Re: [CS:GO] Join Sound
 
ok i have changed a few things now, my path is sound/music/welcome/vz.mp3 i am now downloading the mp3 i think one problem was bz2?? because when it was bz2 it wouldnt download but now i have it in my c:/steam/steamapps/common/sound but it dont play when joining the server any help appreciated

tumtum 09-01-2012 17:09

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by codeye (Post 1788202)
ok i have changed a few things now, my path is sound/music/welcome/vz.mp3 i am now downloading the mp3 i think one problem was bz2?? because when it was bz2 it wouldnt download but now i have it in my c:/steam/steamapps/common/sound but it dont play when joining the server any help appreciated

Place the music on the same location as your server.
fastdl url yoursite/csgo/sound/music/name.mp3.bz2

there are no problems with fastdl here :)

B475K3 09-09-2012 10:13

Re: [CS:GO] Join Sound
 
Thanks a bundle for this. Just going to use a simple 2 second sound that will make all the difference :D

Surreal. 09-09-2012 16:51

Re: [CS:GO] Join Sound
 
Downloading sound/join.mp3.
Download finished!
Got pure server whitelist: sv_pure = 1.
File 'downloads/882ab71a.dat' requested from server x.
SignalXWriteOpportunity(3)
Surreal. nimmt teil.
Receiving uncompressed update from server
[Sound] S_StartSound(): Failed to load sound 'join.mp3'. Can't create mixer.


:o

zyberis 11-15-2012 06:09

Re: [CS:GO] Join Sound
 
If you want to make sound louder, this will help you:

1. Do not put sounds to sound/music , but to sound/anyfolder.
2. Open plugin sp file, and threre find
Quote:

EmitSoundToClient(client,g_soundName);
3. Replace it with
Quote:

ClientCommand(client, "play *%s", g_soundName);
. Star(*), have to be there!
4. Also find:
Quote:

g_CvarSoundName = CreateConVar("sm_start_sound", "music/welcome/secretforce.mp3", "Welcome sound");
5. Replace with:
Quote:

g_CvarSoundName = CreateConVar("sm_start_sound", "welcome/secretforce.mp3", "Welcome sound");
6. Then save and compile.

So now whole joinsound.sp will be like this:

Quote:

#include <sourcemod>
#include <sdktools>
#include <sdktools_sound>

#pragma semicolon 1
#define MAX_FILE_LEN 80
new Handle:g_CvarSoundName = INVALID_HANDLE;
new String:g_soundName[MAX_FILE_LEN];

#define PLUGIN_VERSION "1.0"
public Plugin:myinfo =
{
name = "CS:GO Sound",
author = "Team-Secretforce.com",
description = "Join Sound on your CS:GO Server",
version = PLUGIN_VERSION,
url = "http://www.Team-Secretforce.com/"
};
public OnPluginStart()
{
// Create the rest of the cvar's
CreateConVar("sm_welcome_snd_version", PLUGIN_VERSION, "CS:GO Sound Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FC VAR_NOTIFY);
g_CvarSoundName = CreateConVar("sm_start_sound", "welcome/secretforce.mp3", "Welcome sound");
}
public OnConfigsExecuted()
{
GetConVarString(g_CvarSoundName, g_soundName, MAX_FILE_LEN);
decl String:buffer[MAX_FILE_LEN];
PrecacheSound(g_soundName, true);
Format(buffer, sizeof(buffer), "sound/%s", g_soundName);
AddFileToDownloadsTable(buffer);
}
public OnClientPostAdminCheck(client)
{
ClientCommand(client, "play *%s", g_soundName)
}

FightTillDeath 11-18-2012 10:58

Re: [CS:GO] Join Sound
 
Is there one like this for Css that dose not have to use event scripts?

Denov 11-27-2012 18:49

Re: [CS:GO] Join Sound
 
IMO, tumtum is a lier =/
He just changed this line
Quote:

author = "Team-Secretforce.com",
"Welcome Sound" nice worked before this topic.

Krillin 02-03-2013 04:43

Re: [CS:GO] Join Sound
 
Quote:

Originally Posted by Denov (Post 1844868)
IMO, tumtum is a lier =/
He just changed this line


"Welcome Sound" nice worked before this topic.

Indeed! But that is just the start! Doing a side by side compassion of the original "joinsnd.sp" and this "joinsound.sp". There are slightly more changes, but not very much. Nor do I see how any changes made any difference with CS:GO as read about for the 1/23/2013 update as there aren't any functions within this code to warrant a rewrite of this plugin for CS:GO. Below are only the sections which differ ever so slightly shown in red.

Joinsnd (the original)
Code:

#define PLUGIN_VERSION "0.0.1"
public Plugin:myinfo =
{
        name = "Welcome Sound",
        author = "R-Hehl",
        description = "Plays Welcome Sound to connecting Players",
        version = PLUGIN_VERSION,
        url = "http://www.compactaim.de/"
};
public OnPluginStart()
{
        // Create the rest of the cvar's
CreateConVar("sm_welcome_snd_version", PLUGIN_VERSION, "Welcome Sound Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
g_CvarSoundName = CreateConVar("sm_join_sound", "consnd/joinserver.mp3", "The sound to play");
}

JoinSound.sp (the so called remake)
Code:

#define PLUGIN_VERSION "1.0"
public Plugin:myinfo =
{
        name = "CS:GO Sound",
        author = "Team-Secretforce.com",
        description = "Join Sound on your CS:GO Server",
        version = PLUGIN_VERSION,
        url = "http://www.Team-Secretforce.com/"
};
public OnPluginStart()
{
        // Create the rest of the cvar's
CreateConVar("sm_welcome_snd_version", PLUGIN_VERSION, "CS:GO Sound Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
g_CvarSoundName = CreateConVar("sm_start_sound", "music/welcome/secretforce.mp3", "Welcome sound");
}

No recode changes behind the scenes in this plugin. The differences are clear. Only printable data / text was changed. Therefore, this plugin is plagiarized. Wouldn't be so bad if the original author was kept in the code and this author added his NEXT to R-Hehl's name.

Give credit where credit is due! Sorry to burst your bubble tumtum, but when we saw this, we were shocked what we found and it needed to be stated. We'll stick to the original version!

Best Regards,
Krillin

ger580 04-29-2013 09:53

Re: [CS:GO] Join Sound
 
@zyberis

Can you or anyone else fix few scripts for csgo?

EmitSoundToClient to ClientCommand.

My question is can you or anyone else rewrite few other scripts and change the EmitsoundToClient to ClientCommand?

DamageSound

QuakeSounds

RoundSound


It would be awesome if anyone can fix the script for me and Other Members.

m22b 10-10-2013 12:54

Re: [CS:GO] Join Sound
 
44 khz & sv_pure allow this file ? :)

AnG3ll 01-07-2014 05:58

Re: [CS:GO] Join Sound
 
Hello I have a problem I put the plugin and control everything is ok but no sound is played on the server

the sound is: intro_serv_T4F_2.mp3
the sound is in: / counterstrike_go / CSGO / sound / music / intro_serv /

The comande put into the console:

sm_start_sound "music / intro serv / Intro serv T4F.mp3"

I do not understand the problem or is the console absolutely say anything

sorry for English i m french


and here is what I have in the smx file:


#include <sourcemod>
#include <sdktools>
#include <sdktools_sound>


#pragma semicolon 1
#define MAX_FILE_LEN 80
new Handle:g_CvarSoundName = INVALID_HANDLE;
new String:g_soundName[MAX_FILE_LEN];
#define PLUGIN_VERSION "1.0"
public Plugin:myinfo =
{
name = "CS:GO Sound",
author = "Team-Secretforce.com",
description = "Join Sound on your CS:GO Server",
version = PLUGIN_VERSION,
url = "http://www.Team-Secretforce.com/"
};
public OnPluginStart()
{
// Create the rest of the cvar's
CreateConVar("sm_welcome_snd_version", PLUGIN_VERSION, "CS:GO Sound Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FC VAR_NOTIFY);
g_CvarSoundName = CreateConVar("sm_start_sound", "music/intro_serv/intro_serv_T4F_2.mp3", "Welcome sound");
}
public OnConfigsExecuted()
{
GetConVarString(g_CvarSoundName, g_soundName, MAX_FILE_LEN);
decl String:buffer[MAX_FILE_LEN];
PrecacheSound(g_soundName, true);
Format(buffer, sizeof(buffer), "sound/%s", g_soundName);
AddFileToDownloadsTable(buffer);
}
public OnClientPostAdminCheck(client)
{
EmitSoundToClient(client,g_soundName);
}

e6o1 01-11-2014 14:48

Re: [CS:GO] Join Sound
 
can u change it for working only with admin flags?


i know there is a bunch of plugins in here who provide to do this, but NONE of them works in CSGO

tz

m22b 01-12-2014 20:21

Re: [CS:GO] Join Sound
 
please make random sound's too :)

XLoad3d 04-03-2014 20:18

Re: [CS:GO] Join Sound
 
OMG.... your plug-in works, but I always have the CS:GO music turned all the way down. Thats why i couldn't hear it lol.

Great now I have to listen to the Valve Orchestra in order to hear the server join sound lol.

(is there a workaround for the game sound to not be affected by the join sound?)


All times are GMT -4. The time now is 17:49.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.