Raised This Month: $ Target: $400
 0% 

How to check if player has killed somebody


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-11-2011 , 16:22   Re: How to check if player has killed somebody
Reply With Quote #8

Because it's how gt_user_attacker is done, it checks inflictor, if inflictor is a player it returns the player index, if it's a nade it returns the owner of that nade, if it's another entity type, it returns the owner of that entity if it is a player, else the entity itself.

http://www.amxmodx.org/funcwiki.php?...cker&go=search

Quote:
As of 1.75, get_user_attacker can return a non-player index if the player was attacked by a non-player entity.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 09:11.


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