AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   can't block radio sound (https://forums.alliedmods.net/showthread.php?t=75614)

Spin7ion 08-09-2008 02:24

can't block radio sound
 
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?

IneedHelp 08-09-2008 03:12

Re: can't block radio sound
 
http://forums.alliedmods.net/showpos...76&postcount=6

That was i found, i tested it and it works perfect

Spin7ion 08-09-2008 03:37

Re: can't block radio sound
 
+karma thx


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

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