你 試試 把 public fw_PlayerPreThink(id) 內的
複製程式
if (!is_user_alive(id))
return FMRES_IGNORED;
改成
複製程式
if (!is_user_alive(id))
{
if (has_m79[id]) has_m79[id] = false
return FMRES_IGNORED;
}
if (zp_get_user_zombie(id))
{
if (has_m79[id]) has_m79[id] = false
return FMRES_IGNORED;
}
另外 把 public fw_setmodel(ent, const model[]) 內的
複製程式
if (user_drop[id] == ent)
{
if (has_m79[id] && equal(model[7], "w_deagle.mdl"))
{
fm_kill_entity(ent)
if (!is_user_alive(id))
drop_newweapon(id, "weapon_m79", m79_w, 1, 0)
else
drop_newweapon(id, "weapon_m79", m79_w, 0, 1)
drop_time[id] = get_gametime()
has_m79[id] = false
user_drop[id] = -1
return FMRES_IGNORED;
}
}
user_drop[id] = -1
return FMRES_IGNORED;
改成
複製程式
if (user_drop[id] == ent)
{
if (has_m79[id] && equal(model[7], "w_deagle.mdl"))
{
fm_kill_entity(ent)
if (!is_user_alive(id) || zp_get_user_zombie(id))
drop_newweapon(id, "weapon_m79", m79_w, 1, 0)
else
drop_newweapon(id, "weapon_m79", m79_w, 0, 1)
drop_time[id] = get_gametime()
has_m79[id] = false
}
}
user_drop[id] = -1
return FMRES_IGNORED;
看看效果 ^^''