下面是引用 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)
}
}