Gamestat.txt information
";
echo "Players: $players
";
echo "Mode: $mode
";
echo "Map: $map
";
echo "Timeleft: $timeleft
";
echo "Alpha: $alpha
";
echo "Bravo: $bravo
";
echo "
Players Online
";
echo "(Name / Points / Deaths / Ping)
";
for($i = 0; $i < $players; $i++) {
$pos = 10 + ($i * 5);
$name = htmlentities(trim($contents[$pos]));
$points = trim($contents[$pos+1]);
$deaths = trim($contents[$pos+2]);
$team = trim($contents[$pos+3]);
$ping = trim($contents[$pos+4]);
if($team == 1){
echo "";
}elseif($team == 2){
echo "";
}else{
echo "";
}
echo $name." / ".$points." / ".$deaths." / " .$ping. "
";
}
?>