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 Q&A
RevCMS Login Problem
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="BIOS" data-source="post: 376274" data-attributes="member: 15674"><p>You could just give the diamonds to online users, all you'd need to do is slightly adjust the SQL to something along the lines of:</p><p>[CODE]UPDATE users SET diamonds = diamonds + 1 WHERE online = '1';[/CODE]</p><p></p><p>You'd just have to edit it and make it a cron so that it runs every hour.</p><p></p><p></p><p></p><p>I guess if you also wanted you could make use of their last login value within the query too so that it only gives the diamonds to certain online users based on their last login by comparing the current time to the stored timestamp.</p></blockquote><p></p>
[QUOTE="BIOS, post: 376274, member: 15674"] You could just give the diamonds to online users, all you'd need to do is slightly adjust the SQL to something along the lines of: [CODE]UPDATE users SET diamonds = diamonds + 1 WHERE online = '1';[/CODE] You'd just have to edit it and make it a cron so that it runs every hour. I guess if you also wanted you could make use of their last login value within the query too so that it only gives the diamonds to certain online users based on their last login by comparing the current time to the stored timestamp. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
RevCMS Login Problem
Top