<td valign=top>
<table align=center cellspacing=1 border=0 class=style2 width=341px>
<tr align=center>
<th>#</th>
<th>Top Weapons</th>
<th height=35px width=70px>Kills</th>
</tr>
$$loop row as weaponlist index as weaponlistindex select count(*) as count,* from killdata where playerindex='%%player.playerindex%%' and killtype='KILL' group by playerweapon order by count desc limit 10$$
<tr>
<th width=15px align=center>$$weaponlistindex$$</th>	
<td valign=bottom align=center>
$$if (weapon_%%weaponlist.playerweapon%%_image !EQUALS "")$$<img src="weapons/$$weapon_%%weaponlist.playerweapon%%_image$$" width=220 height=97><br>$$weapon_%%weaponlist.playerweapon%%_realname$$
$$else$$<img src="default/defaultweapon.jpg" width=220 height=97><br>$$weapon_%%weaponlist.playerweapon%%_realname$$$$endif$$
</td>
<td align=center>$$weaponlist.count$$</td>
</tr>
$$endloop weaponlist$$
</table>
</td>

