maybe with this enough o.o
PHP Code:
public void SetupGlow(int entity, int client)
{
char netclass[128];
GetEntityNetClass(entity, netclass, sizeof netclass);
int offset = FindSendPropInfo(netclass, "m_iGlowType");
if (offset < 1)
{
LogError("Unable to find property offset: \"m_iGlowType\"!");
return;
}
SetEntProp(entity, Prop_Send, "m_iGlowType", g_CVAR_GlowColor_Style.IntValue);
SetEntProp(entity, Prop_Send, "m_nGlowRange", 100);
SetEntProp(entity, Prop_Send, "m_nGlowRangeMin", 100);
int colors[3];
g_GlowColor.GetArray(GlowIndex[client], colors);
SetEntProp(entity, Prop_Send, "m_glowColorOverride", colors[0] + (colors[1] * 256) + (colors[2] * 65536));
}
g_CVAR_GlowColor_Style = CreateConVar("sm_glowmenu_style", "3", "Type of Style that you want to the glow (3 gives WALLHACKS to everyone)", _, true, 0.0, true, 3.0);
this has changed now
0 = None
1 = Use
2 = Look At
3 = Constant