Quote:
Originally Posted by ingmar13
Can the frostnade color be random?
|
Change get_color func to this (untested):
Code:
get_color(&red, &grn, &blu, cvarid)
{
new color[16], r[4], g[4], b[4];
if(cvarid == 1)
get_pcvar_string(cvar_hudcolor, color, 15)
else if(cvarid == 2)
get_pcvar_string(cvar_fadecolor, color, 15)
if(cvarid != 3)
{
parse(color, r, 3, g, 3, b, 3)
red = str_to_num(r);
grn = str_to_num(g);
blu = str_to_num(b);
}
else
{
red = random(256)
grn = random(256)
blu = random(256)
}
}