Here's my attempt, I don't know if it will work.
Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "stupok69"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_forward(FM_SetModel, "forward_FM_SetModel")
}
public forward_FM_SetModel(ent, model[]) // I don't know what parameters are sent here.
{
if(contain(model, "snark.mdl") != -1)
{
engfunc(EngFunc_SetModel, ent, "chick.mdl")
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
I'm actually considering starting a new topic to see if anyone can list the parameters for all of the FakeMeta constants. It's really odd that only some of them have a list of parameters...