Raised This Month: $ Target: $400
 0% 

How do i make a message appear to a player every 2 hours (his time spent on a server)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 10-15-2015 , 18:25   Re: How do i make a message appear to a player every 2 hours (his time spent on a ser
Reply With Quote #4

A good math should be the answer, but I can't think of anything... except writing a library that checks every 2 freaking hours like
PHP Code:
if(timespent[id] == 3600 && timespent[id] == 7200 &&/*infinity*/
, I'm not going to to that since It's not even necessary. If only we could think of something... Like checking timespent[id] for example (It holds spent time since last disconnect, because on client_disconnect the native get_user_time(id) is used), and dividing, creating and saving more values that would hold a number... It's so confusing
redivcram is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode