PHP Code:
#include < amxmodx >
#include < fun >
#define HEALTH_BONUS 15
#define HEALTH_MAX 100
public plugin_init()
register_event("DeathMsg", "DeathMsg", "a", "1>0");
public DeathMsg()
{
new Killer = read_data( 1 );
new Victim = read_data( 2 );
if( Killer != Victim)
{
new Health = get_user_health(Killer);
if (1 <= Health < HEALTH_MAX)
{
set_user_health( Killer, min( Health + HEALTH_BONUS, HEALTH_MAX ) );
}
}
}