复制程式
#include <fakemeta>
register_forward(FM_SetModel, "fw_SetModel")
public fw_SetModel(entity, const model[])
{
if (!pev_valid(entity)) return FMRES_IGNORED
if (strlen(model) < 8) return FMRES_IGNORED;
new ent_classname[32]
pev(entity, pev_classname, ent_classname, charsmax(ent_classname))
if (equal(ent_classname, "weaponbox"))
{
set_pev(entity, pev_nextthink, get_gametime() + 100.0)
return FMRES_IGNORED
}
return FMRES_IGNORED
}