PHP Code:
#include <amxmodx>
#include <colorchat>
#define PLUGIN "Death Message"
#define VERSION "1.0"
#define AUTHOR "NapoleoN#"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "eDeath", "a", "1>0", "2>0", "2!1")
}
public eDeath() {
new iKiller = read_data(1)
new iVictim = read_data(2)
new iHealth = get_user_health(iKiller)
new szName[32]
get_user_name(iKiller, szName, charsmax(szName))
ColorChat(iVictim, RED, "[AMXX DIE PLUGIN] Dead | %s HP: %i", szName, iHealth)
ColorChat(iKiller, BLUE, "[AMXX DIE PLUGIN] Kill")
}
__________________