Raised This Month: $230 Target: $400
 57% 

EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-19)


Post New Thread Reply   
 
Thread Tools Display Modes
Kailo
Senior Member
Join Date: Sep 2014
Location: Moscow, Russia
Old 03-10-2017 , 04:06   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #61

Quote:
Originally Posted by DeagLe.Studio View Post
I tested with EmitSoundToClientAny and it didnt work :/
Tested in CS:GO. Working well.
PHP Code:
//  Maxim "Kailo" Telezhenko, 2017

#pragma semicolon 1
#pragma newdecls required

#include <emitsoundany>

stock const char g_sound[] = "ui/csgo_ui_crate_open.wav";

public 
void OnPluginStart()
{
    
RegConsoleCmd("sm_emit"Cmd_Emit);
}

public 
void OnMapStart()
{
    
PrecacheSoundAny(g_sound);
}

// Usage: sm_emit <0|1|2|3>
public Action Cmd_Emit(int clientint args)
{
    if (!
args)
        return 
Plugin_Handled;

    
char arg[4];
    
GetCmdArg(1argsizeof(arg));
    switch (
StringToInt(arg)) {
        case 
0:
            
EmitSoundToClientAny(clientg_sound);
        case 
1:
            
EmitSoundToAllAny(g_sound);
        case 
2: {
            
float origin[3];
            
GetClientAbsOrigin(clientorigin);
            
EmitAmbientSoundAny(g_soundorigin);
        }
        case 
3:
            
StopSoundAny(clientSNDCHAN_AUTOg_sound);
    }

    return 
Plugin_Handled;


Last edited by Kailo; 03-10-2017 at 04:09.
Kailo is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-14-2017 , 14:42   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #62

Well, I forgot that I was testing in a Listen Server, maybe thats the reason its not working?
TheDS1337 is offline
iBradleyy
AlliedModders Donor
Join Date: Jan 2013
Old 03-18-2017 , 13:13   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #63

I am guessing it doesn't support .wav files.
iBradleyy is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-18-2017 , 14:55   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #64

Quote:
Originally Posted by iBradleyy View Post
I am guessing it doesn't support .wav files.
They are mp3, I converted them from wav to mp3.
TheDS1337 is offline
usla
Senior Member
Join Date: Jul 2009
Old 05-31-2017 , 07:21   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #65

did something changed in csgo with all new updates none of my sounds would precache anymore...
usla is offline
dyxL
Senior Member
Join Date: Jul 2010
Old 06-24-2017 , 10:02   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #66

i uploaded emitsoundany.inc to include folder but still getting cant create mixer am i should to make different thing ?
dyxL is offline
Kalle801
Member
Join Date: May 2016
Old 06-26-2017 , 09:37   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #67

Quote:
Originally Posted by dyxL View Post
i uploaded emitsoundany.inc to include folder but still getting cant create mixer am i should to make different thing ?
Same here
Kalle801 is offline
ZASTRELIS
Veteran Member
Join Date: Nov 2010
Location: Siberia, Irkutsk
Old 09-02-2017 , 06:14   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #68

how works sound dir?

Last edited by ZASTRELIS; 09-02-2017 at 06:38.
ZASTRELIS is offline
doroemon
Senior Member
Join Date: Dec 2009
Location: TF2 AFK Server
Old 11-05-2017 , 05:19   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #69

Does anyone work fine with this?
I using this inc to complie plugins but still getting cant create mixer.....
doroemon is offline
_GamerX
AlliedModders Donor
Join Date: Jun 2011
Location: Fun Server
Old 01-20-2018 , 07:18   Re: EmitSoundAny - Cross-game sound emitting (aka CS:GO compatible) (1.0.2, 2014-03-1
Reply With Quote #70

How to stop sound from EmitAmbientSoundAny?
__________________
_GamerX is offline
Send a message via ICQ to _GamerX Send a message via Skype™ to _GamerX
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:36.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode