How to detect a player suicide, like a fall?
I'm trying to create an event when the user commits a suicide, like HE explosion, falls, etc.
Changing the client_death function (miscstats.sma), I have already detected when he dies of a HE explosion, with this code: Code:
|
Re: How to detect a player suicide, like a fall?
Death by "worldspawn".
Code:
|
Re: How to detect a player suicide, like a fall?
Code:
or using event : Code:
|
Re: How to detect a player suicide, like a fall?
Thanks a lot, both of you.
It's working! |
Re: How to detect a player suicide, like a fall?
I'm not sure if you also wanted to detect when a player types 'kill' in console..
Code:
|
| All times are GMT -4. The time now is 11:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.