$$openfile player_%%hash(player.name)%%.html$$ $$include menu.html$$
$$colouredtext2html(player.name)$$
Rounds$$player.rounds$$ Last Round[$$formatinteger("%05d",player.lastactiveround)$$] Play Time$$formatduration("%H:%M:%S",player.duration)$$
Score$$formatfloat("%.1f",player.score)$$($$formatfloat("%.2f",player.scoreweighted)$$) Skill$$formatfloat("%.1f",player.skill)$$($$formatfloat("%.2f",player.skillweighted)$$) Ratio$$formatfloat("%.2f",player.ratio)$$
Kills$$player.kills$$ Deaths$$player.deaths$$ Suicides$$player.suicides$$
Kill Streak$$player.longestkillstreak$$ Death Streak$$player.longestdeathstreak$$ Team Kill Streak$$player.longestteamkillstreak$$
Team Wins$$player.teamwins$$ Team Losses$$player.teamlosses$$ Team Kills$$player.teamkills$$
$$include playerprofile.html$$
$$include playerenemies.html$$
$$include playerspeech.html$$
$$loop row as gametypelist index as gametypelistindex select count(*),* from playerinround,view_rounds where playerindex='%%player.playerindex%%' and playerinround.roundindex=view_rounds.roundidx group by gametype$$ $$gametype=gametypelist.gametype$$ $$gametyperealname=gametypelist.gametyperealname$$ $$gametypeimage=gametypelist.gametypeimage$$
Rounds Played
$$bestscore=""$$ $$worstscore=""$$ $$bestskill=""$$ $$worstskill=""$$ $$bestscoreround=""$$ $$worstscoreround=""$$ $$bestskillround=""$$ $$worstskillround=""$$ $$loop row as round index as roundindex select * from playerinround where playerindex='%%player.playerindex%%' and roundindex in (select roundidx from view_rounds where gametype='%%gametype%%') order by score desc limit 1$$ $$bestscore=round.score$$ $$bestscoreround=round.roundindex$$ $$endloop$$ $$loop row as round index as roundindex select * from playerinround where playerindex='%%player.playerindex%%' and roundindex in (select roundidx from view_rounds where gametype='%%gametype%%') order by score asc limit 1$$ $$worstscore=round.score$$ $$worstscoreround=round.roundindex$$ $$endloop$$ $$loop row as round index as roundindex select * from playerinround where playerindex='%%player.playerindex%%' and roundindex in (select roundidx from view_rounds where gametype='%%gametype%%') order by skill desc limit 1$$ $$bestskill=round.skill$$ $$bestskillround=round.roundindex$$ $$endloop$$ $$loop row as round index as roundindex select * from playerinround where playerindex='%%player.playerindex%%' and roundindex in (select roundidx from view_rounds where gametype='%%gametype%%') order by skill asc limit 1$$ $$worstskill=round.skill$$ $$worstskillround=round.roundindex$$ $$endloop$$ $$killstreak=""$$ $$killstreakender=""$$ $$deathstreak=""$$ $$deathstreakender=""$$ $$teamkillstreak=""$$ $$teamkillstreakender=""$$ $$loop row as streak index as streakindex select * from streakdata where streaktype='0' and playerindex='%%player.playerindex%%' and roundindex in (select roundidx from view_rounds where gametype='%%gametype%%') order by streaksize desc limit 1$$ $$killstreak=streak.streaksize$$ $$streakendindex=streak.streakender$$ $$if (streakendindex !EQUALS "-1")$$ $$loop row as streakplayer index as streakplayerindex select * from player where playerindex='%%streakendindex%%'$$ $$killstreakender=streakplayer.name$$ $$if (streakplayer.dropped EQUALS "Y")$$$$killstreakender=""$$$$endif$$ $$endloop$$ $$endif$$ $$endloop$$ $$loop row as streak index as streakindex select * from streakdata where streaktype='1' and playerindex='%%player.playerindex%%' and roundindex in (select roundidx from view_rounds where gametype='%%gametype%%') order by streaksize desc limit 1$$ $$deathstreak=streak.streaksize$$ $$streakendindex=streak.streakender$$ $$if (streakendindex !EQUALS "-1")$$ $$loop row as streakplayer index as streakplayerindex select * from player where playerindex='%%streakendindex%%'$$ $$deathstreakender=streakplayer.name$$ $$if (streakplayer.dropped EQUALS "Y")$$$$deathstreakender=""$$$$endif$$ $$endloop$$ $$endif$$ $$endloop$$ $$loop row as streak index as streakindex select * from streakdata where streaktype='2' and playerindex='%%player.playerindex%%' and roundindex in (select roundidx from view_rounds where gametype='%%gametype%%') order by streaksize desc limit 1$$ $$teamkillstreak=streak.streaksize$$ $$streakendindex=streak.streakender$$ $$if (streakendindex !EQUALS "-1")$$ $$loop row as streakplayer index as streakplayerindex select * from player where playerindex='%%streakendindex%%'$$ $$teamkillstreakender=streakplayer.name$$ $$if (streakplayer.dropped EQUALS "Y")$$$$teamkillstreakender=""$$$$endif$$ $$endloop$$ $$endif$$ $$endloop$$
Gametype
$$if (gametypeimage !EQUALS "")$$
$$endif$$$$gametyperealname$$
$$if (deathstreak !EQUALS "")$$ $$endif$$ $$if (teamkillstreak !EQUALS "")$$ $$endif$$
Best Scoring$$formatfloat("%.1f",bestscore)$$[$$formatinteger("%05d",bestscoreround)$$]
Worst Scoring$$formatfloat("%.1f",worstscore)$$[$$formatinteger("%05d",worstscoreround)$$]
Most Skillful$$formatfloat("%.1f",bestskill)$$[$$formatinteger("%05d",bestskillround)$$]
Least Skillful$$formatfloat("%.1f",worstskill)$$[$$formatinteger("%05d",worstskillround)$$]
Longest Streaks
#Ended By
Kill$$killstreak$$$$colouredtext2html(killstreakender)$$
Death$$deathstreak$$$$colouredtext2html(deathstreakender)$$
TK$$teamkillstreak$$$$colouredtext2html(teamkillstreakender)$$
$$loop row as round index as roundindex select * from view_rounds where view_rounds.gametype='%%gametype%%' and view_rounds.roundidx in (select roundindex from playerinround where playerinround.playerindex='%%player.playerindex%%')$$ [$$formatinteger("%05d",round.roundidx)$$] $$endloop round$$

$$endloop gametypelist$$ $$closefile$$