SA-MP Forums Archive
Player last visited - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Player last visited (/showthread.php?tid=602563)



Player last visited - jimis - 09.03.2016

hi guys, i am using y_ini sytem , could someone tell me how to find when player has been last connected? , i know how to save money skin and more, but how to save a date?
Thanks


Re: Player last visited - CalvinC - 09.03.2016

You can get the year/month/date like this:
Код:
new
    Year[MAX_PLAYERS],
    Month[MAX_PLAYERS],
    Day[MAX_PLAYERS]
;

// OnPlayerDisconnect
getdate(Year[playerid], Month[playerid], Day[playerid]);
And then save Year, Month and Day just like money, skin etc.