Jump to content
  • 0

Question

4 answers to this question

Recommended Posts

  • 0
Posted

It's normal online counter, just... 100 / max allowed players mul by actual online count and % at the end.

 

Wooooa.

  • 0
Posted

Its simple, one example:

<?php
$max = 500;
$online = 251;
$percent = round(100/$max*$online);
?>
<div style="width:200px;height:30px;border:1px solid #CCC"><div style="background:green;height:30px;width:<?php echo $percent ?>%"></div></div>
Server load: <?php echo $percent; ?>%.

 

Guest
This topic is now closed to further replies.


×
×
  • Create New...