public zp_user_infected_pre(id)
{
if (zp_get_user_next_class(id) == g_zclass_china)
{
if(is_user_alive(id) && zp_get_user_zombie(id) && (zp_get_user_zombie_class(id) == g_zclass_china) && !zp_get_user_nemesis(id))
{
if (zp_level(id) < LVL_COUNT)
{
zp_class_zombie_get_current(id) == 0
zp_colored_print(id, "^x01[^x04ZP^x01] Вы не достигли ^x04%d ^x01уровня!", LVL_COUNT)
}
else
{
zp_set_user_zombie_class(id, g_zclass_china)
Action(id)
}
}
}
}
public zp_user_infected_post(id)
{
if ((zp_get_user_zombie_class(id) == g_zclass_china) && !zp_get_user_nemesis(id))
{
emit_sound(id, CHAN_VOICE, g_china_Infect_Sound[random(sizeof g_china_Infect_Sound)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
new text[100]
new note_cooldown = floatround(g_abilonecooldown)
format(text,99,"^x04[ZP] ^x01Способность^x04 [Разгон] ^x01 | Время:^x04 %d ^x01сек.",note_cooldown)
message_begin(MSG_ONE,MsgSayText,{0,0,0},id)
write_byte(id)
write_string(text)
message_end()
i_cooldown_time[id] = floatround(g_abilonecooldown)
remove_task(id)
g_speeded[id] = 0
g_abil_one_used[id] = 0
}
}