Jump to content
  • 0

Server Load PHP Script


Gam3Master

Question

Hello.

 

Trying to find some script which shows server load by players online.

 

example :https://l2mad.ws/

 

Can anyone share at least example to change it?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

 

Wooooa.

Link to comment
Share on other sites

  • 0

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; ?>%.

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...