How to check if player killed a hostage?
How to check if player killed a hostage?
|
Re: How to check if player killed a hostage?
Hook Ham_Killed with "hostage_entity" as entity classname or register TextMsg with "2&#Killed_Hostage" as a condition.
|
Re: How to check if player killed a hostage?
Mhm something like this should work?
PHP Code:
|
Re: How to check if player killed a hostage?
PHP Code:
|
Re: How to check if player killed a hostage?
Thank you!
|
Re: How to check if player killed a hostage?
You should check if attacker is a player too, because hostages can be killed by other means aswell and when that does you'll wonder wtf is printing errors.
|
Re: How to check if player killed a hostage?
PHP Code:
|
Re: How to check if player killed a hostage?
A bot is a player for your information. All you need is to check if attacker's index is between 1 and max server slots. (get_maxplayers)
|
Re: How to check if player killed a hostage?
PHP Code:
|
Re: How to check if player killed a hostage?
is_user_connected is pointless and get_maxplayers() should be cached.
|
| All times are GMT -4. The time now is 19:41. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.