All regard
People help to analyse with code but that I wanted to put(deliver) their own sounds for this class zombie that that I напутал there help correct error
Here is source Code
Code:
/*================================================================================
-----------------------------------
-*- [ZP] Class : L4d_Witch -*-
-----------------------------------
================================================================================*/
#include <amxmodx>
#include <zombieplague>
#include <fakemeta>
new g_zclass_fozombie
new const zclass_name[] = { "L4d_Witch" }
new const zclass_info[] = { "Quick and Strong" }
new const zclass_model[] = { "l4d_witch.mdl" }
new const zclass_clawmodel[] = { "v_ubcs_l4d_witch_hands.mdl" }
const zclass_health = 3700
const zclass_speed = 350
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 1.0
new const g_sound_pain[2] = {"l4d/pain1_female.wav","l4d/pain2_female.wav" }
new const g_sound_die[2]= {"l4d/die1_female.wav","l4d/die2_female.wav" }
public plugin_init()
{
register_plugin("[ZP] Class : L4d_Witch", "1.0", "XpaHuTeJIb)
}
public plugin_precache()
{
engfunc(EngFunc_PrecacheSound, sound_player_die)
engfunc(EngFunc_PrecacheSound, sound_player_pain)
g_zclass_fozombie = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}
public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie_class(id) == g_zclass_fozombie)
{
}
}