把这段
复制程式
if (enemy == find_ent_by_class(-1, "zombie"))
{
if (!evolutioned[enemy])
format(zombie_status, 64, "种类 : 丧尸 - 血量 : %d - 未变种", get_health(enemy))
else
format(zombie_status, 64, "种类 : 猎人 - 血量 : %d - 已变种", get_health(enemy))
}
改成
复制程式
new classname[32]
pev(enemy, pev_classname, classname, 31)
if (equal(classname, "zombie"))
{
if (!evolutioned[enemy])
format(zombie_status, 64, "种类 : 丧尸 - 血量 : %d - 未变种", get_health(enemy))
else
format(zombie_status, 64, "种类 : 猎人 - 血量 : %d - 已变种", get_health(enemy))
}
应该就没问题了
