PHP Code:
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)
{
// your code here
}
}
__________________