Thread: Health Bonus!
View Single Post
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-12-2010 , 15:12   Re: Health Bonus!
Reply With Quote #4

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);
    new 
Victim read_data);
        
    if( 
Killer != Victim)
    {
        new 
Health get_user_health(Killer);
 
        if (
<= Health HEALTH_MAX)
        {
            
set_user_healthKillerminHealth HEALTH_BONUSHEALTH_MAX ) );
        }
    }

lazarev is offline