Raised This Month: $ Target: $400
 0% 

Kreedz_Soundblocker_V0.1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 02-26-2008 , 23:20   Re: Kreedz_Soundblocker_V0.1
Reply With Quote #13

Code:
			if(contain(sound, "player/pl_pain2.wav")!=-1)
			{
				return FMRES_SUPERCEDE;
			}
			if(contain(sound, "player/pl_pain3.wav")!=-1)
			{
				return FMRES_SUPERCEDE;
			}
			if(contain(sound, "player/pl_pain4.wav")!=-1)
			{
				return FMRES_SUPERCEDE;
			}
don't use contain, equal should work fine.

also you could do a check in the begining
Code:
if( !equal(sound, "player/", 7) )
   return FMRES_IGNORE;
PM me when you have done this for Approval.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



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 20:38.


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