Gam3Master Posted June 29, 2019 Posted June 29, 2019 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?
0 SweeTs Posted June 29, 2019 Posted June 29, 2019 It's normal online counter, just... 100 / max allowed players mul by actual online count and % at the end. Wooooa.
0 wongerlt Posted June 29, 2019 Posted June 29, 2019 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; ?>%.
Question
Gam3Master
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?
4 answers to this question
Recommended Posts