Raised This Month: $ Target: $400
 0% 

How to check if player has killed somebody


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-12-2011 , 20:41   Re: How to check if player has killed somebody
Reply With Quote #11

Quote:
Originally Posted by Napoleon_be View Post
at least check if the player is alive then.
And what if they are dead?

You only need to check if they are connected.
__________________
fysiks is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 09-14-2011 , 08:53   Re: How to check if player has killed somebody
Reply With Quote #12

Quote:
Originally Posted by fysiks View Post
And what if they are dead?

You only need to check if they are connected.
As i know, you can only make a headshot if you're alive, right?
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 09-14-2011 , 09:34   Re: How to check if player has killed somebody
Reply With Quote #13

No, that's wrong. Some plugins may execute Ham_TraceAttack to fake the headshot (for example War3FT mod, there is a chance that you will headshot-kill with a grenade) and things like that. It may also return false results if the user is not connected.

Last edited by Backstabnoob; 09-15-2011 at 12:43.
Backstabnoob is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-14-2011 , 18:52   Re: How to check if player has killed somebody
Reply With Quote #14

Quote:
Originally Posted by Napoleon_be View Post
As i know, you can only make a headshot if you're alive, right?
1. That's not really the point.
2. Can grenade damage not hit you in the head? Is it only reserved for bullets? (Seriously, I don't know ).
__________________
fysiks is offline
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 09-15-2011 , 12:42   Re: How to check if player has killed somebody
Reply With Quote #15

Normally no, but it can be done the way I posted (executing traceattack and setting hitbox to head).
Backstabnoob 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 09:11.


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