AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ignore All Cs Radio Sound [HELP] (https://forums.alliedmods.net/showthread.php?t=134044)

Freedom 07-31-2010 06:32

Ignore All Cs Radio Sound [HELP]
 
!!SOLVED!!
Hi guys..
How can I ignore all of the radio sound?
for example: new round sound.. radio1 radio2 radio3 sounds
I'll write a new mod. I need to ingore them :/

ConnorMcLeod 07-31-2010 07:33

Re: Ignore All Cs Radio Sound [HELP]
 
PHP Code:

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#define VERSION "0.0.1"

#define XO_PLAYER        5
#define m_iRadiosLeft    192

public plugin_init()
{
    
register_plugin("No Radio"VERSION"ConnorMcLeod")

    
RegisterHam(Ham_Spawn"player""Ham_CBasePlayer_Spawn_Post"1)

    
register_clcmd("radio1""ClientCommand_RadioMenu")
    
register_clcmd("radio2""ClientCommand_RadioMenu")
    
register_clcmd("radio3""ClientCommand_RadioMenu")
}

public 
Ham_CBasePlayer_Spawn_Postid )
{
    if( 
is_user_alive(id) )
    {
        
set_pdata_int(idm_iRadiosLeft0XO_PLAYER)
    }
}

public 
ClientCommand_RadioMenuid )
{
    return 
PLUGIN_HANDLED_MAIN



Freedom 07-31-2010 09:57

Re: Ignore All Cs Radio Sound [HELP]
 
thx Connor.
so how can I change new round sound and end round sound?

5c0r-|3i0 07-31-2010 10:14

Re: Ignore All Cs Radio Sound [HELP]
 
Hook SendAudio ...check if sound is ctwin or twin...:D.

Freedom 07-31-2010 10:37

Re: Ignore All Cs Radio Sound [HELP]
 
ok. I'll try =)

5c0r-|3i0 07-31-2010 10:42

Re: Ignore All Cs Radio Sound [HELP]
 
Take a look at Alternative End Round Sound .
About new round Sound....Try to hook HLTV , then emit sound to a CT/T , or spk....:D

ConnorMcLeod 07-31-2010 12:27

Re: Ignore All Cs Radio Sound [HELP]
 
http://forums.alliedmods.net/showthr...386#post858386

Instead of blocking those radio sounds (round start sounds), change the sounds.

Freedom 08-31-2010 07:57

Re: Ignore All Cs Radio Sound [HELP]
 
thx for help =)


All times are GMT -4. The time now is 00:15.

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