c4 model
#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 ?? |
could you please post all of the inside of [ small ] (no spaces) so that it is easier to read?
|
Quote:
Code:
|
Code:
Code:
|
Yes it should but I don't even want to respond till the person who posts it fixes there post to even be presentable... put in a [small] tag and use indentation so its at least readable to an extent.
|
Quote:
But in here Code:
|
Example of how to use allowcstring
Code:
|
then it should be like
Code:
|
yup suicide is right on the money
|
No, you shouldn't convert it to integer because SetModel requires a string. :|
|
| All times are GMT -4. The time now is 05:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.