Skip to content

Server Load PHP Script

Featured Replies

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?

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

 

Wooooa.

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

 

  • SweeTs locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.