15.05.2018, 14:04
Kod:
<?php
if(!$server['gq_online']) {
echo '
<div class="statsBarServers">
0/0
</div>
';
}
else {
if($server['gq_type'] == 'teamspeak3') {
echo '
<div class="statsBarServers">
'.$server['numplayers'] . "/" . $server['virtualserver_maxclients'].'
</div>
';
}
else {
if($server['gq_online']) {
echo '
<div class="statsBarServers">
'.$server['num_players'] . "/" . $server['max_players'].'
</div>
';
}
else
echo '
<div class="statsBarServers">
0/0
</div>
';
}
}
?>
if($server['gq_type'] == 'minecraft') {