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