Raised This Month: $ Target: $400
 0% 

[HELP] How to get a player was attacked at leg ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Magici3n
BANNED
Join Date: Oct 2009
Location: Beautiful Beach
Old 10-13-2009 , 08:20   Re: [HELP] How to get a player was attacked at leg ?
Reply With Quote #6

Quote:
Originally Posted by ot_207 View Post
PHP Code:
// plugin_init() 
RegisterHam(Ham_TraceAttack"player""fw_trace"

public 
fw_trace(victimattackerFloat:damageFloat:dir[3], ptrbits

 if (
get_tr2(ptrTR_iHitgroup) == HIT_HEAD
 { 
  
client_print(victimprint_chat"HEAD HURTS!!!"
 } 
 return 
HAM_IGNORED 


It Should only show when there is Headshot.but it is showing when head is hit 1 time.not headshot
Magici3n 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 22:36.


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