Raised This Month: $ Target: $400
 0% 

can't block radio sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spin7ion
Junior Member
Join Date: Dec 2007
Old 08-09-2008 , 02:24   can't block radio sound
Reply With Quote #1

I have trouble with blocking fire in the hole sound
here is a code
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <engine>
#include <cstrike>
#include <fakemeta>
//global name
new g_soundFIH[] = "radio/ct_fireinhole.wav"

public plugin_init() {
//some code here
register_forward(FM_EmitSound, "block_sound")
//some code here
}
public block_sound(entity, channel, const sound[]) {
    // Use equali to check strings against each other because 
    // they are technically arrays
    if ( equali(sound, g_soundFIH) )
     {
        return FMRES_SUPERCEDE
     }
    //else
        return FMRES_IGNORED
}
when a throw granate i here sound 'fire in the hole'

Here is a question: How block that anoyed sound and how block chat message?

Last edited by Spin7ion; 08-09-2008 at 02:25. Reason: includes
Spin7ion is offline
IneedHelp
Veteran Member
Join Date: Mar 2007
Location: Argentina
Old 08-09-2008 , 03:12   Re: can't block radio sound
Reply With Quote #2

http://forums.alliedmods.net/showpos...76&postcount=6

That was i found, i tested it and it works perfect
__________________
IneedHelp is offline
Spin7ion
Junior Member
Join Date: Dec 2007
Old 08-09-2008 , 03:37   Re: can't block radio sound
Reply With Quote #3

+karma thx
Spin7ion 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 09:51.


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