Hi, i have problems with plugin wich i want to edit
I am such a noob in these things! Can you help me?
Code:
// Leech Zombie Attributes
new const zclass5_name[] = { "Leech Zombie" }
new const zclass5_info[] = { "HP- Knockback+ Leech++" }
new const zclass5_model[] = { "zombie_source" }
new const zclass5_clawmodel[] = { "v_knife_zombie.mdl" }
const zclass5_health = 2000
const zclass5_speed = 400
const Float:zclass5_gravity = 0.9
const Float:zclass5_knockback = 1.00
const zclass5_infecthp = 1500 // extra hp for infections
/*============================================================================*/
// Class IDs
new g_zclass_leech
g_zclass_leech = zp_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass5_speed, zclass5_gravity, zclass5_knockback)
}
// User Infected forward
public zp_user_infected_post(id, infector)
{
// If attacker is a leech zombie, gets extra hp
if (zp_get_user_zombie_class(infector) == g_zclass_leech)
set_pev(infector, pev_health, float(pev(infector, pev_health) * zclass5_infecthp))
const user_kill = (infector) = zclass5_infecthp * zclass5_health
}
When i I test it, i infect a human and i fall down and i won't die, but i have 0 hp and i cannot do anything!
And i want to make zombie with given infection bomb when infect.
My english