View Single Post
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 11-29-2019 , 09:03   Re: [Req] Cs 1.6 Get VIP Kill Health
Reply With Quote #2

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))     } }

Last edited by LearninG; 11-29-2019 at 09:04.
LearninG is offline