Raised This Month: $ Target: $400
 0% 

How to block a sound of a shot?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CLLlAgOB
Senior Member
Join Date: Oct 2007
Location: Russia
Old 06-25-2009 , 16:59   How to block a sound of a shot?
Reply With Quote #1

How to block a sound of a shot for associates?

This way blocks a shot sound only for the shoot player:

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

public	plugin_init()	
{	
	register_plugin("test",	"0.1",	"tester")	
	register_forward(FM_UpdateClientData, "fw_updateclientdata",1);	
}	


public fw_updateclientdata(id, sw, cd_handle)
{
	//this function overrides the client side sounds and stuff
	if (cd_handle)
	{

		set_cd(cd_handle, CD_ID, 1);
		//get_cd(cd_handle, CD_flNextAttack, nextattack[id]);
		
		return FMRES_HANDLED;

	}
	return FMRES_IGNORED;
}
CLLlAgOB is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-25-2009 , 19:51   Re: How to block a sound of a shot?
Reply With Quote #2

You can't block weapon sound except knife, since it's client-side. But you can fully block an attack.
__________________
Arkshine 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 15:41.


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