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