Quote:
Originally Posted by Jon
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)
}
}
|
thanks, but where i need to put it ?
i can't find the right place. to much get_color
. i putted some where, i have errors. i'm not a good scripter , so can u fix it for me ?