#include #include #include new g_time, g_amount new const zclass8_name[] = { "TEST" } new const zclass8_info[] = { "REGEN XP" } new const zclass8_model[] = { "zombie_source" } new const zclass8_clawmodel[] = { "v_knife_zombie.mdl" } const zclass8_health = 9999 const zclass8_speed = 340 const Float:zclass8_gravity = 0.540 const Float:zclass8_knockback = 1.25 new g_zclass_Regen public plugin_init() { g_time = register_cvar("zp_regen_time", "5") g_amount = register_cvar("zp_regen_amount", "100") } public plugin_precache() { register_plugin("[ZP]ZM Class: Regen Zombie", "0.1", "pRoxxx") g_zclass_Regen = zp_register_zombie_class(zclass8_name, zclass8_info, zclass8_model, zclass8_clawmodel, zclass8_health, zclass8_speed, zclass8_gravity, zclass8_knockback) } public plugin_cfg() { set_task(get_pcvar_float(g_time), "RegenHP",_ ,_,_,"b") } public RegenHP() { for(new id = 0; id < 33; id++) { if(is_user_alive(id) && zp_get_user_zombie_class(id) == g_zclass_Regen) { new zmhp = zp_get_zombie_maxhealth(id) new curhp = get_user_health(id) if(curhp < zmhp) { set_user_health(id, curhp + get_pcvar_num(g_amount)) } } } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par } */