Raised This Month: $ Target: $400
 0% 

Change model but not team in The Specialists Teamplay.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 12-18-2006 , 22:58   Re: Change model but not team in The Specialists Teamplay.
Reply With Quote #2

Let me know how this works out.

Code:
 #include <amxmodx>  #include <fakemeta>  public plugin_init()  {     register_plugin("Model Test","0.10","Avalanche");     register_forward(FM_ClientUserInfoChanged,"fw_info");     register_forward(FM_PlayerPostThink,"fw_think");  }  public fw_info(id,buffer)  {     return FMRES_SUPERCEDE;  }  public fw_think(id)  {     new info = engfunc(EngFunc_GetInfoKeyBuffer,id);     engfunc(EngFunc_SetClientKeyValue,id,info,"model","gordon");     return FMRES_IGNORED;  }

Obviously I can't test it fully without a real server. It should make everyone look like gordon... players might not be able to change their name, I'm not sure. I'm still not sure how to detect whether or not the info change is called on model change.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 22:24.


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