Raised This Month: $ Target: $400
 0% 

Unprecaching radio sounds


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 02-25-2013 , 07:26   Unprecaching radio sounds
Reply With Quote #1

hey guys i want to unprecache radio sounds as no 1 uses them and it uses lots of precaches and any way to block showing radio command list after pressing z,x,c ?
__________________
<3<3
being noob is offline
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
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 02-25-2013 , 07:49   Re: Unprecaching radio sounds
Reply With Quote #3

will it unprecache the sound filesin sound/radio folder?
__________________
<3<3
being noob is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 02-25-2013 , 07:54   Re: Unprecaching radio sounds
Reply With Quote #4

It unprecache all files from "sound/radio".
__________________
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
being noob
Senior Member
Join Date: Jan 2012
Location: Hindustan!!
Old 02-25-2013 , 08:03   Re: Unprecaching radio sounds
Reply With Quote #5

oooOOhyeah XD thanX
__________________
<3<3
being noob is offline
Reply


Thread Tools
Display Modes

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