Ok, sry. I take this second post
hex-triple to back decimal-triple (explain later)
PHP Code:
new my_color = 0x05C8FF;
new r,g,b;
r = ((my_color >> 16) & 0xFF);
g = ((my_color >> 8) & 0xFF);
b = ((my_color >> 0) & 0xFF);
PrintToChatAll("Hex %06X = R %i, G %i, B %i", my_color, r, g, b);