{* Only display this block if there's a server IP configured *} {if $conf.serverip} {literal} {/literal}
<#Live Server View:#> {$pq.name|default:"<#Server did not respond#>"|escape}
{mapimg name="`$pq.map`.jpg" noimg="<#No Image Available#>"} {if $pq.rules.amx_timeleft} {/if} {if $pq.ping != ''} {/if}
<#IP#> {$pq.ip}:{$pq.port}
<#Map#> {$pq.map}
<#Time#> {$pq.rules.amx_timeleft}
<#Game#> {$pq.gamename}
<#Server#> {if $pq.serveros == 'l'}<#Linux#>{else}<#Windows#>{/if} ({if $pq.servertype == 'd'}<#dedicated#>{else}<#listen#>{/if})
<#Players#> {$pq.activeplayers} / {$pq.maxplayers}
<#Public#> {if $pq.rules.sv_password}<#No#>{else}<#Yes#>{/if}
<#Ping#> {$pq.ping}
<#Rules#>
{foreach name='plrs' from=$pq.players item='p'} {strip} {* Start new row every other iteration (even) *} {if ($smarty.foreach.plrs.iteration % 2)} {/if} {/strip} {* End row every other iteration (odd) or if we're on the LAST iteration *} {if !($smarty.foreach.plrs.iteration % 2) or $smarty.foreach.plrs.last} {* If there are an ODD number of players, add 1 extra blank line to make it even *} {if ($smarty.foreach.plrs.iteration % 2) }{/if} {/if} {foreachelse} {/foreach}
  <#Player#> <#Kills#> <#Online#>    <#Player#> <#Kills#> <#Online#> 
  {$p.name|escape}  {$p.kills}  {$p.onlinetime|compacttime}   

<#No Players Connected#>

 
{if count($conf.serverip) > 1}
<#Select a server to view:#>
{/if}

{/if} {* IGNORE THE ABOVE BLOCK IF THERE'S NO 'SERVERIP' SPECIFIED *}
<#Server Connection History#>

{include file="credits.html"}