Raised This Month: $ Target: $400
 0% 

headshot sound when doing headshot


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 07-30-2010 , 17:08   Re: headshot sound when doing headshot
Reply With Quote #1

Guys he wants headshot, just register then normal death even and do read_data(3)
__________________
I am out of order!
grimvh2 is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 07-30-2010 , 18:39   Re: headshot sound when doing headshot
Reply With Quote #2

Fixed, thank you, I forgot
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-30-2010 , 21:52   Re: headshot sound when doing headshot
Reply With Quote #3

Search the forums prior to requesting code.

Untested.
PHP Code:
public plugin_init()
{
    
register_event"DeathMsg" "EvDeathMsg" "a" "3=1" "4&knife" );    
}

public 
EvDeathMsg()
{
    static 
szKiller33 ] , szVictim33 ];
    new 
iKiller read_data);
    new 
iVictim read_data);

    
get_user_nameiKiller szKiller charsmaxszKiller ) );
    
get_user_nameiVictim szVictim charsmaxszVictim ) );
    
    
client_cmd"spk misc/headshot" );
    
client_printprint_chat "* %s killed %s with knife headshot!" szKiller szVictim );

__________________

Last edited by Bugsy; 07-30-2010 at 22:28.
Bugsy is offline
Reply



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 00:08.


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