Raised This Month: $ Target: $400
 0% 

block Go Go Go sound on round start.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-20-2009 , 12:03   block Go Go Go sound on round start.
Reply With Quote #1

Tittle...
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-20-2009 , 12:37   Re: block Go Go Go sound on round start.
Reply With Quote #2

use FM_EmitSound
__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Dr.G
Senior Member
Join Date: Nov 2008
Old 03-20-2009 , 13:06   Re: block Go Go Go sound on round start.
Reply With Quote #3

search and you may find something usefull like this
__________________
Dr.G is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-20-2009 , 13:28   Re: block Go Go Go sound on round start.
Reply With Quote #4

Well, it's easy to block a sound. It's harder to check if the sound was auto-played by the game.
__________________
hleV is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-20-2009 , 13:56   Re: block Go Go Go sound on round start.
Reply With Quote #5

The problem is, its the autoplay sound. when the round starts, u hear this sound & nobody plays any radio sounds.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Dr.G
Senior Member
Join Date: Nov 2008
Old 03-20-2009 , 15:13   Re: block Go Go Go sound on round start.
Reply With Quote #6

then fire stopsound to ppl on round start. thats a simple solution might not be the best, but possible
__________________
Dr.G is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-20-2009 , 19:02   Re: block Go Go Go sound on round start.
Reply With Quote #7

Try this and tell if it works.
Code:
#include <amxmodx> #include <fakemeta>   new const g_StartRadioSounds[][] = {         "radio/com_go.wav",         "radio/go.wav",         "radio/letsgo.wav",         "radio/locknload.wav",         "radio/moveout.wav" };   new bool:g_RoundStart;   public plugin_init() {         register_plugin("Block Round Start Sound", "1.0", "hleV");           register_logevent("RoundStart", 2, "1=Round_Start");           register_forward(FM_EmitSound, "EmitSound"); }   public RoundStart() {         g_RoundStart = true;           set_task(0.5, "RoundStartOver"); }   public RoundStartOver()         g_RoundStart = false;   public EmitSound(ClientID, ChannelID, Sample[]) {         if (!g_RoundStart)                 return FMRES_IGNORED;           for (new Sound = 0; Sound < sizeof(g_StartRadioSounds) - 1; Sound++)                 if (equal(Sample, g_StartRadioSounds[Sound]))                         return FMRES_SUPERCEDE;           return FMRES_IGNORED; }
__________________
hleV is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 03-21-2009 , 04:54   Re: block Go Go Go sound on round start.
Reply With Quote #8

If FM_EmitSound doesn't work, hook the SendAudio event.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 03-21-2009 , 04:59   Re: block Go Go Go sound on round start.
Reply With Quote #9

Anyone tested hlev's scipt?
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-21-2009 , 05:05   Re: block Go Go Go sound on round start.
Reply With Quote #10

Won't work, i've already posted the code somewhere one the forum, with SendAudio message + filter if it's a start round message or a regular radio message.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 08:56.


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