I figured I'd start a new topic for this, since I have a specific goal in mind for a specific mod. I want to change the player's model in The Specialists Teamplay without changing their team.
Quote:
Originally Posted by XxAvalanchexX
Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_forward(FM_PlayerPostThink,"fw_think");
}
public fw_think(id)
{
new info = engfunc(EngFunc_GetInfoKeyBuffer,id);
engfunc(EngFunc_SetClientKeyValue,id,info,"model","aswat");
return FMRES_IGNORED;
}
|
So I tested this code on a server with The Specialists Teamplay, and its nuts. The hud doesn't display, the 3, 2, 1 numbers before spawn appear randomly after spawn, the models aren't set to the model specified in the code, and you can only kill teammates. Oh, and you can't view your own model from third-person view. It's nuts.
So XxAvalanchexX, as I hope you're reading this, could you help me out with this? I'd love to come up with a method myself, but I don't know where to begin. I'd really appreciate some advice.
There are some events that might be useful:
Code:
Game registered user msgs: msgid size
TeamInfo 84 -1
TeamScore 85 -1
I just don't have the time right now to play around with it and I'm convinced there are methods I am completely unaware of.
Thanks for your time.