hey guys... i make this code..but one error...can you help me?
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "NihilanthBomb"
#define VERSION "1.0"
#define AUTHOR "tuty"
new const gC4Model[] = "models/nihilanth.mdl";
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
// Add your code here...
register_forward(FM_SetModel, "Bomb_Model");
register_forward(FM_Think, "c4place");
}
public plugin_precache()
{
precache_model(gC4Model);
}
public c4place(Ent)
{
if(!pev_valid(Ent))
return FMRES_IGNORED;
static sClassName[32];
pev(Ent, pev_classname, sClassName, sizeof sClassName -1);
if(!strcmp(sClassName, 1))
{
engfunc(EngFunc_RemoveEntity, Ent);
}
return FMRES_IGNORED;
}
public Bomb_Model(Ent, const szModel[])
{
if(!pev_valid(Ent))
return FMRES_IGNORED;
if(!strcmp(szModel, "models/w_c4.mdl"))
{
engfunc(EngFunc_SetModel, Ent, gC4Model);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
__________________