Code:
#include <amxmodx>
#include <fun>
new const VERSION[] = "1.0"
#define VIP_FLAG ADMIN_IMMUNITY
new cvar_health
public plugin_init()
{
register_plugin("VIP Bouns HP" , VERSION , "LearninG")
cvar_health = register_cvar("amx_bouns_hp" , "50")
register_event("DeathMsg","event_death","a")
}
public event_death()
{
static killer
killer = read_data(1)
if(get_user_flags(killer) & VIP_FLAG)
{
set_user_health(killer , get_user_health(killer) + get_pcvar_num(cvar_health))
}
}