How to check if player has killed somebody
So I was wondering how can I check does a specific player killed somebody in the round. I mean in round one Player from the CTs has killed 1, 2, 3... etc Ts(there is FriendlyFire On so i want only kills to the opposite team to be checked) and if he has killed somebody(without teammates) to do a function. But lets guess that in round two he hasn't killed nobody. Well he hasn't killed nobody so I don't want any function to be done. I hope you've understood me right. I'll be waiting for responces :)
|
Re: How to check if player has killed somebody
PHP Code:
|
Re: How to check if player has killed somebody
Just another way
PHP Code:
PHP Code:
|
Re: How to check if player has killed somebody
Quote:
|
Re: How to check if player has killed somebody
can be attacker not connected ?
|
Re: How to check if player has killed somebody
Quote:
|
Re: How to check if player has killed somebody
Quote:
After all, this is not possible :):) |
Re: How to check if player has killed somebody
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:
|
Re: How to check if player has killed somebody
Also it can be worldspawn (0) if for example you die by falling.
|
Re: How to check if player has killed somebody
at least check if the player is alive then.
|
| All times are GMT -4. The time now is 09:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.