Raised This Month: $ Target: $400
 0% 

c4 model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vincentwind
Junior Member
Join Date: Apr 2006
Old 04-28-2006 , 11:51   c4 model
Reply With Quote #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 ??
vincentwind is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:10.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode