PHP Code:
public fwd_setmodel(ent, const model[])
{
if(!pev_valid(ent) || !equal(model[9], "smokegrenade.mdl"))
return FMRES_IGNORED
static classname[32]; pev(ent, pev_classname, classname, 31)
if(equal(classname, "grenade") )
{
engfunc(EngFunc_SetModel, ent, g_flare_model)
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}