Raised This Month: $ Target: $400
 0% 

c4 model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 05-10-2006 , 12:39  
Reply With Quote #3

Quote:
Originally Posted by SubStream
could you please post all of the inside of [ small ] (no spaces) so that it is easier to read?
Code:
#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; }
__________________
- Bye bye!
nightscreem is offline
 



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