Code:
#include <amxmodx>
#include <fun>
public plugin_init()
{
register_clcmd("say /invis", "cmdInvis")
register_clcmd("say /seeinvis", "cmdSeeInvis")
}
public cmdInvis(id)
{
set_user_rendering(id,kRenderFxGlowShell,0,0, 0,kRenderTransAlpha, 20);
}
public cmdSeeInvis(id)
{
//what do I need to put here to make it so only the person who does the command can see someone who's invis?
}
I think that it should be obvious what I want but if not then I'll clarify.
I want it so that the person who types /seeinvis will be able to see invis people as if they had the alpha of something that I can set.
I know that this is possible because I've seen it somewhere else, I've no idea how it's done, though.
And please, forgive me for my horrible scripting skills. I'm not much of a scriptor, I'm more of a Server Manager.
__________________