下面是引用 freeze02468 于 2014-01-19 15:12 发表的 :
谢谢大大的回答~
Dias 大大的插件看来问题不少阿
小弟修改好了! 不过...控制台的指令还是显示 Player killed Blackorange with worldspawn ...
呃…你该不会直接改成「find_ent_by_owner(-1, weapon_plasma, id)」这样吧…?
我的意思是
复制程式
public Damage_Plasma(Ent, Id)
{
static Owner; Owner = pev(Ent, pev_iuser1)
static Attacker;
if(!is_user_alive(Owner))
{
Attacker = 0
return
} else Attacker = Owner
if(is_user_alive(Id) && zp_get_user_zombie(Id))
ExecuteHamB(Ham_TakeDamage, Id, find_ent_by_owner(-1, weapon_plasma, Attacker), Attacker, float(DAMAGE), DMG_ACID)
for(new i = 0; i < g_MaxPlayers; i++)
{
if(!is_user_alive(i))
continue
if(entity_range(i, Ent) > PLASMA_RADIUS)
continue
if(!zp_get_user_zombie(i))
continue
ExecuteHamB(Ham_TakeDamage, i, find_ent_by_owner(-1, weapon_plasma, Attacker), Attacker, float(DAMAGE) / random_float(1.25, 1.5), DMG_ACID)
}
}