Raised This Month: $51 Target: $400
 12% 

(REQ) Replace radio sounds?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 03-16-2012 , 13:09   (REQ) Replace radio sounds?
Reply With Quote #1

Any plugin that can replace default radio sounds?

"sound/radio/blow.wav" "sound/radio/servername/blow.wav"
_____________________________________________ _______

if no, any way to block default radio sounds, and play new?

Last edited by bazhenov93; 03-16-2012 at 13:10.
bazhenov93 is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 03-16-2012 , 13:22   Re: (REQ) Replace radio sounds?
Reply With Quote #2

Umm you can check out the code in this and see if it helps:
http://forums.alliedmods.net/showthr...highlight=FITH

Here Connor's code for how to block the radio:
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 

__________________

Last edited by joshknifer; 03-16-2012 at 13:27. Reason: Found the blocking code
joshknifer is offline
Send a message via Skype™ to joshknifer
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 22:34.


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