<table align=left border=0 cellspacing=1 width=800px class=style1>
<tr align=left>
<th>#</th>
<th>Player</th>
<th>Score</th>
<th>Skill</th>
<th>Kills</th>
<th>Deaths</th>
<th>Suicides</th>
<th>Team<br>Kills</th>
<th>Time<br>Played</th>
<th>Main Weapon</th>
</tr>
$$if ((teamtype EQUALS "win") OR (teamtype EQUALS "loss"))$$
	$$restriction="and playerinround.playerindex in (select playerindex from team%%teamtype%%data where roundindex='%%round.roundidx%%')"$$
$$else$$
	$$restriction="and playerinround.playerindex not in (select playerindex from teamwindata where roundindex='%%round.roundidx%%') AND playerinround.playerindex not in (select playerindex from teamlossdata where roundindex='%%round.roundidx%%')"$$
$$endif$$

$$loop row as playerinround index as playerinroundindex select player.dropped as dropped,playerinround.score as score,playerinround.skill as skill,playerinround.playerindex as playerindex,playerinround.kills as kills,playerinround.deaths as deaths,playerinround.suicides as suicides, playerinround.teamkills as teamkills,playerinround.duration as duration,player.name as playername from playerinround,player where playerinround.playerindex = player.playerindex and roundindex='%%round.roundidx%%' %%restriction%% order by playerinround.score desc$$
	$$topweaponname=""$$
	$$topweaponimage=""$$
	$$loop row as playerkilldata index as playerkilldataindex select * from killdata where playerindex='%%playerinround.playerindex%%' and roundindex='%%round.roundidx%%' group by playerweapon order by count(*) desc limit 1$$
		$$topweaponid=weapon_%%playerkilldata.playerweapon%%_id$$
		$$topweaponname=weapon_%%playerkilldata.playerweapon%%_realname$$
		$$topweaponimage=weapon_%%playerkilldata.playerweapon%%_image$$
	$$endloop playerkilldata$$
	<tr onMouseover="changeto(event, '494848')" onMouseout="changeback(event, '2f2f2f')">$$playerdisplayname=playerinround.playername$$$$playerdataplayerindex=playerinround.playerindex$$$$playerdisplaydropped=playerinround.dropped$$
	<td height=25px width=15px align=left>$$playerinroundindex$$</td>
	<td id="ignore" width=100px>$$include playerdisplay.include$$</td>
	<td width=30px>$$formatfloat("%.1f",playerinround.score)$$</td>
	<td width=30px>$$formatfloat("%.1f",playerinround.skill)$$</td>
	<td width=30px>$$playerinround.kills$$</td>
	<td width=30px>$$playerinround.deaths$$</td>
	<td width=30px>$$playerinround.suicides$$</td>
	<td width=30px>$$playerinround.teamkills$$</td>
	<td width=30px>$$formatduration("%M:%S",playerinround.duration)$$</td>
	<td width=150px>$$if (topweaponimage !EQUALS "")$$ $$endif$$$$topweaponname$$</td>
</tr>
$$endloop playerinround$$
</table>

