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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock