Raised This Month: $ Target: $400
 0% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-13-2009 , 11:32   Re: [HELP] How to get a player was attacked at leg ?
Reply With Quote #11

Code:
register_event( "DeathMsg", "Event_PlayerKilled", "a", "1>0", "3=1" );

Code:
public Event_PlayerKilled () {     // Killed by Headshot. }
__________________
Arkshine is offline
Magici3n
BANNED
Join Date: Oct 2009
Location: Beautiful Beach
Old 10-13-2009 , 13:10   Re: [HELP] How to get a player was attacked at leg ?
Reply With Quote #12

Quote:
Originally Posted by Arkshine View Post
Code:
register_event( "DeathMsg", "Event_PlayerKilled", "a", "1>0", "3=1" );


Code:
public Event_PlayerKilled () { // Killed by Headshot. }
Thanks 4 that....will edit my plugin and tell if it works or not
how to store headshot counter in some variable
Magici3n is offline
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-13-2009 , 14:38   Re: [HELP] How to get a player was attacked at leg ?
Reply With Quote #13

Are you freaking kidding me?
vitorrd is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-13-2009 , 15:09   Re: [HELP] How to get a player was attacked at leg ?
Reply With Quote #14

You are talking to me ?
__________________
Arkshine is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-13-2009 , 15:14   Re: [HELP] How to get a player was attacked at leg ?
Reply With Quote #15

I think he was talking about this
Quote:
Originally Posted by Magici3n View Post
how to store headshot counter in some variable
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
vitorrd
Senior Member
Join Date: Jul 2009
Old 10-13-2009 , 15:20   Re: [HELP] How to get a player was attacked at leg ?
Reply With Quote #16

Quote:
Originally Posted by Exolent[jNr] View Post
I think he was talking about this
Precisely.
vitorrd is offline
deadman909
Veteran Member
Join Date: Oct 2008
Old 02-18-2013 , 05:02   Re: [HELP] How to get a player was attacked at leg ?
Reply With Quote #17

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_LEFTLEG || get_tr2(ptrTR_iHitgroup) == HIT_RIGHTLEG)
 {
  
client_print(victimprint_chat"SHOT IN FOOT!")
 }
 return 
HAM_IGNORED

Would this work to detect if you died from a LEG SHOT?
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
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 22:36.


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