1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
<?php
//include('pages/match_info_killsmatrix.php');
include('includes/weaponstats.php');
weaponstats($mid, 0, 'Weapons Summary - '.$ass_att.' Attacking');
IF($mid2 != NULL) {
echo '<br>';
weaponstats($mid2, 0, 'Weapons Summary - '.$ass_att2.' Attacking');
}
echo'
<br>
<table class = "box" border="0" cellpadding="0" cellspacing="0" width="720">
<tbody><tr>
<td class="heading" colspan="7" align="center">Pickups Summary - '.$ass_att.' Attacking</td>
</tr>
<tr>
<td class="smheading" align="center">Player</td>
<td class="smheading" align="center" width="80">Pads</td>
<td class="smheading" align="center" width="80">Armour</td>
<td class="smheading" align="center" width="80">Keg</td>
<td class="smheading" align="center" width="80">Invisibility</td>
<td class="smheading" align="center" width="80">Shield Belt</td>
<td class="smheading" align="center" width="80">Damage Amp</td>
</tr>';
$sql_pickups = "SELECT p.pid, pi.name, p.country, SUM(p.pu_pads) AS pu_pads, SUM(p.pu_armour) AS pu_armour, SUM(p.pu_keg) AS pu_keg,
SUM(p.pu_invis) AS pu_invis, SUM(p.pu_belt) AS pu_belt, SUM(p.pu_amp) AS pu_amp
FROM uts_player as p, uts_pinfo AS pi WHERE p.pid = pi.id AND pi.banned <> 'Y' AND matchid = $mid GROUP BY pid ORDER BY name ASC";
$q_pickups = mysql_query($sql_pickups) or die(mysql_error());
$i = 0;
while ($r_pickups = zero_out(mysql_fetch_array($q_pickups))) {
$i++;
$class = ($i % 2) ? 'grey' : 'grey2';
$r_pname = $r_pickups[name];
$myurl = urlencode($r_pname);
echo'
<tr>
<td nowrap class="darkhuman" align="left"><a class="darkhuman" href="./?p=matchp&mid='.$mid.'&pid='.$r_pickups[pid].'">'.FormatPlayerName($r_pickups[country], $r_pickups[pid], $r_pname, $gid, $gamename).'</a></td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_pads].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_armour].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_keg].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_invis].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_belt].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_amp].'</td>
</tr>';
}
IF($mid2 == NULL) {
} else {
echo'</tbody></table>
<br>
<table class = "zebra box" border="0" cellpadding="0" cellspacing="0" width="720">
<tbody><tr>
<td class="heading" colspan="7" align="center">Pickups Summary - '.$ass_att2.' Attacking</td>
</tr>
<tr>
<td class="smheading" align="center">Player</td>
<td class="smheading" align="center" width="80">Pads</td>
<td class="smheading" align="center" width="80">Armour</td>
<td class="smheading" align="center" width="80">Keg</td>
<td class="smheading" align="center" width="80">Invisibility</td>
<td class="smheading" align="center" width="80">Shield Belt</td>
<td class="smheading" align="center" width="80">Damage Amp</td>
</tr>';
$sql_pickups = "SELECT p.pid, pi.name, p.country, SUM(p.pu_pads) AS pu_pads, SUM(p.pu_armour) AS pu_armour, SUM(p.pu_keg) AS pu_keg,
SUM(p.pu_invis) AS pu_invis, SUM(p.pu_belt) AS pu_belt, SUM(p.pu_amp) AS pu_amp
FROM uts_player as p, uts_pinfo AS pi WHERE p.pid = pi.id AND pi.banned <> 'Y' AND matchid = $mid2 GROUP BY pid ORDER BY name ASC";
$q_pickups = mysql_query($sql_pickups) or die(mysql_error());
$i = 0;
while ($r_pickups = zero_out(mysql_fetch_array($q_pickups))) {
$i++;
$class = ($i % 2) ? 'grey' : 'grey2';
$r_pname = $r_pickups[name];
$myurl = urlencode($r_pname);
echo'
<tr>
<td nowrap align="left"><a href="./?p=matchp&mid='.$mid.'&pid='.$r_pickups[pid].'">'.FormatPlayerName($r_pickups[country], $r_pickups[pid], $r_pname, $gid, $gamename).'</a></td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_pads].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_armour].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_keg].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_invis].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_belt].'</td>
<td class="'.$class.'" align="center">'.$r_pickups[pu_amp].'</td>
</tr>';
}
}
$sql_firstblood = small_query("SELECT pi.name, pi.country, m.firstblood FROM uts_match AS m, uts_pinfo AS pi WHERE m.firstblood = pi.id AND m.id = $mid");
if (!$sql_firstblood) $sql_firstblood = array('country' => '', 'name' => '(unknown)', 'firstblood' => NULL);
$sql_multis = small_query("SELECT SUM(spree_double) AS spree_double, SUM(spree_multi) AS spree_multi, SUM(spree_ultra) AS spree_ultra, SUM(spree_monster) AS spree_monster FROM uts_player WHERE matchid = $mid");
IF($mid2 == NULL) {
} else {
$sql_firstblood2 = small_query("SELECT pi.name, pi.country, m.firstblood FROM uts_match AS m, uts_pinfo AS pi WHERE m.firstblood = pi.id AND m.id = $mid2");
if (!$sql_firstblood2) $sql_firstblood2 = array('country' => '', 'name' => '(unknown)', 'firstblood' => NULL);
$sql_multis2 = small_query("SELECT SUM(spree_double) AS spree_double, SUM(spree_multi) AS spree_multi, SUM(spree_ultra) AS spree_ultra, SUM(spree_monster) AS spree_monster FROM uts_player WHERE matchid = $mid2");
}
echo'</tbody></table>
<br>
<table class = "zebra box" border="0" cellpadding="0" cellspacing="0" width="720">
<tbody><tr>
<th class="heading" colspan="2" align="center">Special Events - '.$ass_att.' Attacking</th>
<th class="heading" colspan="2" align="center">Special Events - '.$ass_att2.' Attacking</th>
</tr>
<tr>
<th align="center" width="150">First Blood</th>
<th align="center" width="150">'.FormatPlayerName($sql_firstblood[country], $sql_firstblood[firstblood], $sql_firstblood[name], $gid, $gamename).'</th>
<th align="center" width="150">First Blood</th>
<th align="center" width="150">'.FormatPlayerName($sql_firstblood2[country], $sql_firstblood[firstblood], $sql_firstblood2[name], $gid, $gamename).'</th>
</tr>
<tr>
<th align="center">Double Kills</th>
<th align="center">'.$sql_multis[spree_double].'</td>
<th align="center">Double Kills</td>
<th align="center">'.$sql_multis2[spree_double].'</td>
</tr>
<tr>
<td align="center">Multi Kills</td>
<td align="center">'.$sql_multis[spree_multi].'</td>
<td align="center">Multi Kills</td>
<td align="center">'.$sql_multis2[spree_multi].'</td>
</tr>
<tr>
<td align="center">Ultra Kills</td>
<td align="center">'.$sql_multis[spree_ultra].'</td>
<td class="dark" align="center">Ultra Kills</td>
<td class="grey2" align="center">'.$sql_multis2[spree_ultra].'</td>
</tr>
<tr>
<td class="dark" align="center">Monster Kills</td>
<td class="grey" align="center">'.$sql_multis[spree_monster].'</td>
<td class="dark" align="center">Monster Kills</td>
<td class="grey" align="center">'.$sql_multis2[spree_monster].'</td>
</tr>
</tbody></table>';
?>
|