Raised This Month: $ Target: $400
 0% 

Please Help, New Plugin for headshot sounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
organizedKaoS
Senior Member
Join Date: Feb 2006
Old 11-15-2006 , 23:14   Re: Please Help, New Plugin for headshot sounds
Reply With Quote #9

Quote:
Originally Posted by jim_yang View Post
register the event like this
Code:
register_event("DeathMsg","head_shot","a","3=1")
then you don't need to read_data(3) to see if it was a headshot.
I prefer

Code:
public  client_death ( killer, victim, wpnindex, hitplace, TK ) 

//Called when a player dies.

new headshot = (hitplace == HIT_HEAD) ? 1 : 0
No need to register...it's called automatically
organizedKaoS 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 06:55.


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