Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Releases
Quick Script - Peaked Users
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Berk" data-source="post: 410675" data-attributes="member: 63611"><p>Hey! </p><p>Quick release from me here. This works with any CMS ( i believe, only tested with RevCMS )</p><p>So the code is : </p><p>[PHP]</p><p>$o = mysql_result(mysql_query("SELECT users_online FROM server_status LIMIT 1"),0);;</p><p>$peak = mysql_result(mysql_query("SELECT peak FROM server_status LIMIT 1"),0);</p><p>if($peak < $o) {</p><p> mysql_query("UPDATE server_status SET peak = '{$o}'");</p><p>}</p><p>[/PHP]</p><p>This uses MySQL as you can see. </p><p></p><p>How to add it to your hotel : </p><p>Go to app/tpl/skins/skinname/me.php </p><p>At the top of page add the code given above.</p><p>Go to your database and run this query: </p><p>[CODE] </p><p>ALTER TABLE server_status ADD COLUMN peak INT(11)</p><p>[/CODE]</p><p></p><p>And, you're done! You can show this in your me page etc. </p><p></p><p>Thanks</p><p>berk</p></blockquote><p></p>
[QUOTE="Berk, post: 410675, member: 63611"] Hey! Quick release from me here. This works with any CMS ( i believe, only tested with RevCMS ) So the code is : [PHP] $o = mysql_result(mysql_query("SELECT users_online FROM server_status LIMIT 1"),0);; $peak = mysql_result(mysql_query("SELECT peak FROM server_status LIMIT 1"),0); if($peak < $o) { mysql_query("UPDATE server_status SET peak = '{$o}'"); } [/PHP] This uses MySQL as you can see. How to add it to your hotel : Go to app/tpl/skins/skinname/me.php At the top of page add the code given above. Go to your database and run this query: [CODE] ALTER TABLE server_status ADD COLUMN peak INT(11) [/CODE] And, you're done! You can show this in your me page etc. Thanks berk [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Quick Script - Peaked Users
Top