Well, I have the following script on my layout.php but I want that if player is banned, the text [Banned] appear like the highscore section, can someone make this one? :thumbup:
PHP:
<?php
$limitt = 5;
$zap = $SQL->query('SELECT `name`, `level` FROM `players` WHERE `group_id` < '.$config['site']['players_group_id_block'].' AND `name` != "Account Manager" ORDER BY `level` DESC, `experience` DESC LIMIT 5;');
$number_of_rows = 0;
foreach($zap as $wynik)
{
$number_of_rows++;
echo ' <a href="index.php?subtopic=characters&name='.urlencode($wynik['name']).'" > <li class="light">'.$number_of_rows.'. '.$wynik['name'].'</b></a><font color=gray>Level: </font><font color=white> '.$wynik['level'].'</font></li>';
}
?>
Last edited: