![]() |
Check when a player was last seen
This little script can show you when a player was last seen on a server. Seems to work from my testing.
A few variables to note: temp.timeoffset = minutes to offset the time by. This was tested on UN, so I had to offset the time by 23 minutes. temp.timezone = hours to offset for timezone. I had it set up to 5 to match GMT time. The above may be wrong, however. It doesn't seem right to ADD the offset of time, as that means the clocks are behind and they're typically ahead... but whatever. Also, account names are case sensitive. This has to do with the way offline player objects are loaded, and really beyond my control unless anyone can come up with a fix. PHP Code:
|
PHP Code:
Also, why are you creating the player object even if the player is online? o.o |
Quote:
|
| All times are GMT +2. The time now is 10:04 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.