Raised This Month: $ Target: $400
 0% 

USP Weapon, replace shots-sound.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wentix
Junior Member
Join Date: Jan 2009
Old 02-27-2009 , 02:39   Re: USP Weapon, replace shots-sound.
Reply With Quote #3

Thanks.

I try this:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

new g_soundlist[64] = "items/flashlight1.wav";

public plugin_init()
{
	register_forward(FM_EmitSound, "block_sound");
}

public block_sound(entity, channel, const sound[])
{
	if(equali(sound, g_soundlist)){
			return FMRES_SUPERCEDE;
	}
	return FMRES_IGNORED;
}
It works.

But when I replace flashlight.wav to weapons/usp_unsil-1.wav, its not working...
Maybe cs use another sound-file?

Last edited by Wentix; 02-27-2009 at 02:46.
Wentix 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 17:08.


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