Match Stats

"; foreach ($players['clanMembers'] as $player) { echo ""; } echo "
"; $selected_player = $_GET['selected_player'] ?? $players[0]; echo "

"; $mapNames = array( "Baltic_Main" => "Erangel", "Chimera_Main" => "Paramo", "Desert_Main" => "Miramar", "DihorOtok_Main" => "Vikendi", "Erangel_Main" => "Erangel", "Heaven_Main" => "Haven", "Kiki_Main" => "Deston", "Range_Main" => "Camp Jackal", "Savage_Main" => "Sanhok", "Summerland_Main" => "Karakin", "Tiger_Main" => "Taego" ); // Display the player's match stats echo "

Recent Matches for $selected_player

"; echo ""; echo ""; foreach ($players_matches as $match) { if ($match['stats']['name'] === $selected_player) { if (isset($_GET['filter_by_match_type'])) { if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) { continue; } } $date = new DateTime($match['createdAt']); $date->modify('+1 hours'); $formattedDate = $date->format('m-d H:i:s'); $matchType = $match['matchType']; $gameMode = $match['gameMode']; $mapName = isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']; $kills = $match['stats']['kills']; $damage = number_format($match['stats']['damageDealt'], 0, '.', ''); $timeSurvived = $match['stats']['timeSurvived']; $winPlace = $match['stats']['winPlace']; echo ""; } } echo "
Match DateGame ModeMatch TypeMapKillsDamage DealtTime Survivedwin Place
" . $formattedDate . " " . $gameMode . " " . $matchType . " " . $mapName . " " . $kills . " " . $damage . " " . $timeSurvived . " " . $winPlace . "

"; ?>