|
Author
|
Message
|
|
Junior Member
|

04-28-2006
, 11:51
c4 model
|
#1
|
#include <amxmodx>
#include <fakemeta>
static const MODEL_C4[] = "models/blah/w_c4.mdl"; // edit this
public plugin_init()
{
register_plugin("test" , "0.1" , "v3x");
register_forward(FM_SetModel , "forward_setmodel");
}
public plugin_precache()
precache_model(MODEL_C4);
public forward_setmodel(entid)
{
if(!pev_valid(entid))
return FMRES_IGNORED;
new model[64];
pev(entid , pev_model , model , 63);
if(equal(model , "models/w_c4.mdl"))
{
engfunc(EngFunc_SetModel , entid , MODEL_C4);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
I can't see other design..........
And I want to change w_backpack.mdl
How to change ??
|
|
|
|