231 Posted July 20, 2019 Share Posted July 20, 2019 How do I make a player active how many hours ago? Link to comment
Investor Posted July 21, 2019 Share Posted July 21, 2019 (edited) If you mean how many hours have passed since a player was last online, all you have to do is store a timestamp when he quits or logs out (via setAccountData perhaps) and compare that to the current timestamp to get the number of seconds passed, from which you can easily calculate the number of hours. Edited July 21, 2019 by Investor 2 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