SHAD Posted December 25, 2010 Posted December 25, 2010 Hey all, One thing i really like and have seen on games is the color change as the user stats increase. does anyone know how this is done as can be applied to mccodes v2? Say for example you start off with 10.0000 stat, n this case it's red but as the stat increases the color slowly changes n to another. Many thanks Quote
BoGFx Posted December 26, 2010 Posted December 26, 2010 It COULD be done with a bunch of if statements. Quote
Danny696 Posted December 26, 2010 Posted December 26, 2010 could do something like; function colour_name($name) { //function return $output; } Near the end of globals: $ir['username'] = colour_name($ir['username']); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.