Raised This Month: $ Target: $400
 0% 

Unprecaching radio sounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-25-2013 , 07:37   Re: Unprecaching radio sounds
Reply With Quote #2

PHP Code:
#include <amxmodx>
#include <fakemeta>

new FwPrecacheSound

public plugin_precache()
{
    
FwPrecacheSound register_forward(FM_PrecacheSound"OnFwPrecacheSound")
}

public 
plugin_init()
{
    
unregister_forward(FM_PrecacheSoundFwPrecacheSound)
    
register_plugin("No Radio""0.0.1""wbyokomo")
    
register_clcmd("radio1""CmdBlocked")
    
register_clcmd("radio2""CmdBlocked")
    
register_clcmd("radio3""CmdBlocked")
    
register_clcmd("radio4""CmdBlocked"//For custom radio
}

public 
OnFwPrecacheSound(const sound[])
{
    if(
equal(sound"radio"5)) return FMRES_SUPERCEDE;
    
    return 
FMRES_IGNORED;
}

public 
CmdBlocked(id) return PLUGIN_HANDLED
Should work fine.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
 



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 21:43.


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