query($query); list($total_kills, $total_headshots) = $db->fetch_row($result); $query= " SELECT serverId, name, IF(publicaddress != '', publicaddress, concat(address, ':', port) ) AS addr, statusurl, kills, players, rounds, suicides, headshots, bombs_planted, bombs_defused, ct_wins, ts_wins, ct_shots, ct_hits, ts_shots, ts_hits, act_players, max_players, act_map, map_started, map_ct_wins, map_ts_wins, game FROM hlstats_Servers WHERE serverId='$server_id' "; $result = $db->query($query); $servers = array(); $servers[] = $db->fetch_array($result); ?>
# | Player | Kills | Hs | HS:K | Acc | Lat | Time | +/- | Skill | ||
50) { $thisplayer['name'] = substr($thisplayer['name'], 0, 50); } if ($g_options['countrydata'] == 1) { echo ' '; } echo ''; echo htmlspecialchars($thisplayer['name'], ENT_COMPAT).''; } else { echo ' '; } ?> | 0) { $hpk = sprintf('%.2f', $thisplayer['headshots']/$thisplayer['kills']); } echo $hpk; } else { echo ' '; } ?> | 0) { $acc = sprintf('%.0f', ($thisplayer['hits']/$thisplayer['shots'])*100); } echo "$acc%"; } else { echo ' '; } ?> | 0) { $stamp = time()-$thisplayer['connected']; $hours = sprintf('%02d', floor($stamp / 3600)); $min = sprintf('%02d', floor(($stamp % 3600) / 60)); $sec = sprintf('%02d', floor($stamp % 60)); echo $hours.':'.$min.':'.$sec; } else { echo 'Unknown'; } } else { echo ' '; } ?> | ||||||||
$team_display_name"; if (($map_teama_wins > 0) || ($map_teamb_wins > 0)) { echo ' ('.$map_teama_wins.' wins)'; } ?> | 0) { echo $teamdata[$curteam]['teamkills']; } else { echo ' '; } ?> | 0) { echo ':'; } else { echo ' '; } ?> | 0) { echo $teamdata[$curteam]['teamdeaths']; } else { echo ' '; } ?> | 0) { echo $teamdata[$curteam]['teamheadshots']; } else { echo ' '; } ?> | 0) { $hpk = sprintf('%.2f', 0); if ($teama_kills > 0) { $hpk = sprintf('%.2f', $teamdata[$curteam]['headshots']/$teamdata[$curteam]['kills']); } echo $hpk; } else { echo ' '; } ?> | 0) { $acc = sprintf('%.0f', 0); if ($teama_shots > 0) { $acc = sprintf('%.0f', ($teamdata[$curteam]['teamhits']/$teamdata[$curteam]['teamshots'])*100); } echo "$acc%"; } else { echo ' '; } ?> | 0) { echo sprintf('%.0f', $teamdata[$curteam]['teamping'] / count($teamdata[$curteam])); } else { echo ' '; } ?> | 0) { if ($teamdata[$curteam]['teamjointime'] > 0) { $stamp = $teamdata[$curteam]['teamjointime']; $hours = sprintf('%02d', floor($stamp / 3600)); $min = sprintf('%02d', floor(($stamp % 3600) / 60)); $sec = sprintf('%02d', floor($stamp % 60)); echo $hours.':'.$min.':'.$sec; } else { echo 'Unknown'; } } else { echo ' '; } ?> | - | 0) { echo number_format(sprintf('%.0f', $teamdata[$curteam]['teamskill'])); } else { echo ' '; } ?> | |