I'm busy altering gameserver stats and it's going pretty good because i've just began to learn php.
I want to display the colors of the tags that players use in the game. now I have only one color and want to change it.
I've found a piece of the script on the page but everything i do result in no display of playertags at all. I was wondering if someone could help me out how to display the right colors from our players.
This is the script i found on the php page:
I found it twice in one scipt. Ive tried the remove the piece below //remove player colortags but that resulted in nothing.
the link of the stats i'm working on can be found here
// Resolve the player info
$i = 0;
while($i <= $this->pcount-1)
{
$this->playerinfo[$i]["index"] = "$i";
$temparray = explode ("\"", $tempplayers[$i]);
$this->playerinfo[$i]["name"] = $temparray[1];
/
$this->playerinfo[$i]["namecolored"] = $temparray[1];
//Remove colortags
$result = "";
$b = 0;
while($b <= strlen($temparray[1]))
{
$str = substr($temparray[1], $b, 1);
if ($str == "")
{
$b++;
}
else
{
$result .= $str;
}
$b++;
}
$this->playerinfo[$i]["name"] = $result;
/
$temparray2 = explode (" ", $temparray[0]);
$this->playerinfo[$i]["frags"] = $temparray2[0];
$this->playerinfo[$i]["ping"] = $temparray2[1];
$i++;
}