<table cellspacing=1 border=0 class=style4>
	<tr>
		<th height=35px>#</th>
		<th>Weapon</th>
		<th width=80px>Kills</th>
	</tr>
	$$loop row as stat index as statindex select count(*) as killcount,id,playerweapon,realname,image,(select count(*) from killdata as subkilldata where killdata.playerweapon=subkilldata.playerweapon and killtype='SUICIDE') as suicidecount,(select count(*) from killdata as subkilldata where killdata.playerweapon=subkilldata.playerweapon and killtype='TEAMKILL') as teamkillcount from killdata,weapon where killtype='KILL' and weapon.idx=killdata.playerweapon group by playerweapon order by killcount desc limit %%MAXMAINPAGEWEAPONS%%$$
		<tr>
			<th width=15px align=center>$$statindex$$</th>	
			<td width=256px align=center>
				$$if (stat.image !EQUALS "")$$
					<img src="weapons/$$stat.image$$" width=256 height=113><br><b>$$stat.realname$$</b>
				$$else$$
					<img src="default/defaultweapon.jpg" width=256 height=113><br><b>$$stat.realname$$</b>
				$$endif$$
			</td>
			<td align=center>$$stat.killcount$$</td>
		</tr>
	$$endloop stat$$
</table>
<br>
<br>
<br>

