Can't find any info about the colourstuff and all I seem to get is greenish, pinkish or black. Also server ends up crashing client on connection. I guess that's cause the hud is broken.
I would love to know the default values of red and blue so I can pass them along.
Code: Select all
/**
* Set Team names and colors. Only available to Admin.
* @param string $teamName1
* @param float $teamColor1
* @param string $team1Country
* @param string $teamName2
* @param float $teamColor2
* @param string $team2Country
* @param bool $multicall
* @return bool
* @throws InvalidArgumentException
*/
function setTeamInfo($teamName1, $teamColor1, $team1Country, $teamName2, $teamColor2, $team2Country, $multicall = false)
{
if(!is_float($teamColor1))
{
throw new InvalidArgumentException('teamColor1 = '.print_r($teamColor1, true));
}
if(!is_float($teamColor2))
{
throw new InvalidArgumentException('teamColor2 = '.print_r($teamColor2, true));
}
if(!is_string($teamName1))
{
throw new InvalidArgumentException('teamName1 = '.print_r($teamName1, true));
}
if(!is_string($teamName2))
{
throw new InvalidArgumentException('teamName2 = '.print_r($teamName2, true));
}
return $this->execute(ucfirst(__FUNCTION__),
array('unused', 0., 'World', $teamName1, $teamColor1, $team1Country, $teamName2, $teamColor2, $team2Country),
$multicall);
}