Mr.Aleks Posted July 20, 2015 Share Posted July 20, 2015 How can I do to get the time that a player has been offline. Imagine you played 3days ago, so the function should return the time you have been offline, in this case, 3 days. Is there any function? Link to comment
Buffalo Posted July 20, 2015 Share Posted July 20, 2015 There isn't. You must store current timestamp from like getRealTime().timestamp and compare it later after he joins. That'd be time in seconds. Link to comment
Simple0x47 Posted July 20, 2015 Share Posted July 20, 2015 You can try to make a MYSQL-Table that saves the lastlogin of a player and then make a script that substracts the actual date with the last login of the player. Or just find on community a script like what are you looking for. Link to comment
Mr.Aleks Posted July 20, 2015 Author Share Posted July 20, 2015 Thanks, I've done it well. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now