Raised This Month: $ Target: $400
 0% 

How to block a sound of a shot?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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:42.


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