Call function on players death?!
Hi all!
I need some help in code for: Call a function for player who was dead. So if player "MegaKiller" was dead, call a function to update some data for him f.e his deaths. I found that: http://www.amxmodx.org/funcwiki.php?go=func&id=898 but don't get how to bring it to work for me... How to read only the Victim name??? If i set it like public client_death(id) it reads only Killername.. Thanx for any help! |
Re: Call function on players death?!
Here's some functions :
PHP Code:
PHP Code:
PHP Code:
|
Re: Call function on players death?!
Small error, atomen :
Code:
Also, CSX or DoDX or TFCX module is required with this forward. About 'DeathMsg', see more informations here :http://wiki.amxmodx.org/Half-Life_1_...vents#DeathMsg About 'Ham_Killed', it requires Hamsandwich. Params for this forward : ( id_victim, id_attacker, shouldgib) |
Re: Call function on players death?!
In this case : public client_death ( killer, victim, wpnindex, hitplace, TK )
can it be used as layer ID ?! |
Re: Call function on players death?!
Is called when a player kills another player (not suicide)
Example: PHP Code:
|
Re: Call function on players death?!
Does using DeathMsg have any advantage\difference over client_death? (besides calling on worldspawn\suicide)
I currently have a plugin that count's each players kills\deaths and I am using DeathMsg and am now wondering if I should just use client_death. |
Re: Call function on players death?!
Quote:
|
Re: Call function on players death?!
Any benefits for using hamsandwich?
|
Re: Call function on players death?!
Quote:
|
Re: Call function on players death?!
Where can i read a bit more about Ham coding and it's events?!
Is it ok if i will use it like this: PHP Code:
|
| All times are GMT -4. The time now is 05:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.