[HELP] Last online feature
#1

I want to create a feature which will show the player's last login when the player logs in (the next time):
You were last active on 25/2/14.

Can anybody please tell me how can I make this feature? I have already tried something similar with gettime(...) and storing it but it didn't work.
Reply
#2

Why didin't it work? It's the only way to do it.
Check the date and time on OnPlayerDisconnect and convert it to dd/mm/yyyy hh:mm format. Store it as a string using any file managment system and when the player connects display it back.
Reply
#3

Quote:
Originally Posted by [XST]O_x
Посмотреть сообщение
Why didin't it work? It's the only way to do it.
Check the date and time on OnPlayerDisconnect and convert it to dd/mm/yyyy hh:mm format. Store it as a string using any file managment system and when the player connects display it back.
Thanks! I was doing it on the LOGIN_DIALOG, that is why it didn't work. I'll try it on OnPlayerDisconnect.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)