Raised This Month: $ Target: $400
 0% 

some engfunc help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Rolnaaba
Veteran Member
Join Date: May 2006
Old 12-01-2006 , 10:59   Re: some engfunc help
Reply With Quote #4

omg I am so retarded I am sry, what are max/min values of Float:vol?

[EDIT] think this will work...
Code:
#include <amxmodx> #include <fakemeta> new rep_Planted[] = "sounds/JingleBell.mp3" new rep_Defused[] = "sounds/Laugh.mp3" new game_Planted[5][] = {       "weapons/c4_beep1.wav",     "weapons/c4_beep2.wav",     "weapons/c4_beep3.wav",     "weapons/c4_beep4.wav",     "weapons/c4_beep5.wav" } new game_Defused[] = "weapons/c4_disarm.wav" public plugin_init() {     register_forward(FM_EmitSound, "fw_replace_sound"); } public fw_replace_sound(ent, channel, const sound[], Float:volume,Float:attenuation, flags, pitch) {     if(equali(sound, game_Defused)) {         engfunc(EngFunc_EmitSound,ent,channel,rep_Defused,volume,attenuation,flags,pitch);         return FMRES_SUPERCEDE;     }     else {         new listsize = sizeof game_Planted                 for(new i; i<listsize; i++) {             if(equali(sound, game_Planted[i])) {                 engfunc(EngFunc_EmitSound,ent,channel,rep_Planted,volume,attenuation,flags,pitch);                 return FMRES_SUPERCEDE;             }         }     }     return FMRES_IGNORED }
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 12-01-2006 at 11:18.
Rolnaaba 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 11:13.


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