instead of using a new case for every single color, you could use:
PHP Code:
#define MaxColors 9
new const iColors[MaxColors][] = {
"Red Glow",
"Blue Glow",
"White Glow",
"Green Glow",
"Yellow Glow",
"Purple Glow",
"Purple Glow (Weird)",
"Cyan Glow",
"Blue Glow (Weird)"
}
new iColorCodes[MaxColors] = {
{255, 0, 0},
{0, 0, 255},
{255, 255, 255},
{0, 255, 0},
{255, 255, 0},
{255, 0, 180},
{173, 054, 255},
{0, 255, 255},
{0, 131, 255}
}
PHP Code:
case 1..9: {
set_user_rendering(Player[iPlayer], kRenderFxGlowShell, iColorCodes[key][0], iColorCodes[key][1], iColorCodes[key][2], kRenderNormal, 255)
ColorChat(0, GREY, "%s %s now has a ^4%s!", prefix, Name, iColor[iPlayer] )
}
Also, add an option to remove the glow.
For more information, take a look at my code.
http://forums.alliedmods.net/showthread.php?t=170660
__________________