Last seen
Hello, how can I show when players last logged in on my server?

Example: ~ Turbo Last seen @ 25/06/2023 / 15:26:49 PM
That's an easy one, add logging to Lapper when someone connects and write that to the Lapper database.
The next time someone comes on you can either show the last date/time and if none can be found, welcome the player as a new one.
Quote from Yisc[NL :;2050801"]That's an easy one, add logging to Lapper when someone connects and write that to the Lapper database.
The next time someone comes on you can either show the last date/time and if none can be found, welcome the player as a new one.

Frankly, I am bad with the database, can you give me a link to an example or a detailed post?
** Best answer **
Sorry for hijacking this topic.

Look for these functions

[*]setuserstoredvalue();
[*]getuserstoredvalue();

To get the date and time use the function GetLapperVar(""); To get the current date/time from the server.
Use these 2 vars the get the date/time ShortDate & ShortTime


<?php 
IF(getuserstoredvalue($userName,"LastSeen") == ""THEN
     globalmsg
(GetPlayerVar($userName,"NickName"). " ^7is a new player");
     
#Set Date/Time to userstoredvalue.
ELSE
     
#Get Date/Time from  userstoredvalue.
     
globalmsg(GetPlayerVar($userName,"NickName"). " ^7Last seen @".);
     
#Set Date/Time to  userstoredvalue.
ENDIF
?>

Quote from Bass-Driver :Sorry for hijacking this topic.

Look for these functions

[*]setuserstoredvalue();
[*]getuserstoredvalue();

To get the date and time use the function GetLapperVar(""); To get the current date/time from the server.
Use these 2 vars the get the date/time ShortDate & ShortTime


<?php 
IF(getuserstoredvalue($userName,"LastSeen") == ""THEN
     globalmsg
(GetPlayerVar($userName,"NickName"). " ^7is a new player");
     
#Set Date/Time to userstoredvalue.
ELSE
     
#Get Date/Time from  userstoredvalue.
     
globalmsg(GetPlayerVar($userName,"NickName"). " ^7Last seen @".);
     
#Set Date/Time to  userstoredvalue.
ENDIF
?>


Thank you

FGED GREDG RDFGDR GSFDG