Raised This Month: $ Target: $400
 0% 

[RESOLVED] Replacing player models using FAKEMETA


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
slmclarengt
Veteran Member
Join Date: Jul 2004
Location: The Cookie Jar... or Pul
Old 12-08-2006 , 19:55   [RESOLVED] Replacing player models using FAKEMETA
Reply With Quote #1

Please check this code - to me, it looks fine, but my server will not start. Looking to replace the default CS models with Christmas models.

Code:
 #include <amxmodx>  #include <fakemeta>  #define TREE "models/c14-cristmastree.mdl"  #define ARCTIC "models/player/arctic/arctic.mdl"  #define GUERILLA "models/player/guerilla/guerilla.mdl"  #define LEET "models/player/leet/leet.mdl"  #define MILITIA "models/player/militia/militia.mdl"  #define TERROR "models/player/terror/terror.mdl"  public plugin_init()  {     register_plugin("Model replacement (christmas)","0.10","Avalanche");     register_forward(FM_SetModel,"fw_setmodel");  }  public plugin_precache()  {     precache_model(TREE);     precache_model(ARCTIC);     precache_model(GUERILLA);     precache_model(LEET);     precache_model(MILITIA);     precache_model(TERROR);  }  public fw_setmodel(ent,model[])  {     if(equali(model,"models/w_c4.mdl"))     {         engfunc(EngFunc_SetModel,ent,TREE);         return FMRES_SUPERCEDE;     }     if(equali(model,"models/player/arctic/arctic.mdl"))     {         engfunc(EngFunc_SetModel,ent,ARCTIC);         return FMRES_SUPERCEDE;     }     if(equali(model,"models/player/guerilla/guerilla.mdl"))     {         engfunc(EngFunc_SetModel,ent,GUERILLA);         return FMRES_SUPERCEDE;     }     if(equali(model,"models/player/leet/leet.mdl"))     {         engfunc(EngFunc_SetModel,ent,LEET);         return FMRES_SUPERCEDE;     }     if(equali(model,"models/player/militia/militia.mdl"))     {         engfunc(EngFunc_SetModel,ent,MILITIA);         return FMRES_SUPERCEDE;     }     if(equali(model,"models/player/terror/terror.mdl"))     {         engfunc(EngFunc_SetModel,ent,TERROR);         return FMRES_SUPERCEDE;     }     return FMRES_IGNORED;  }

it's from avalanche but I modified it to do more than one model.

Slmclarengt
__________________
But we don’t beat the Reaper by living longer. We beat the Reaper by living well. -Dr. Randy Pausch, R.I.P.

Come play WC3:FT on BnD Clan Server! You know you want to: Connect to WC3:FT BnD - go ahead click me!

Last edited by slmclarengt; 12-12-2006 at 01:12.
slmclarengt 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 07:00.


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