Question/Help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Question/Help (
/showthread.php?tid=273603)
Question/Help -
Crystyan12 - 02.08.2011
hey guys i have 1 question with Last Login on the server.
How i can make last login? that when he logged on the server last time ?
idk exactly how.
Please help
!
Re: Question/Help -
Niixie - 02.08.2011
If I get your question right, you want to tell the person when he last logged in?
In the case, you have to have a file on each connected name (could be login system), and add a field called logged. When the user logout, save the current date to the logged field, and when the user login show the logged field?
Re: Question/Help -
Crystyan12 - 02.08.2011
No, i want create one variabile where player show when he logged last time.
Model: "Last time : 01/08/2011 20:20" understand
Re: Question/Help -
Niixie - 02.08.2011
No not really, because if you store it in a var it will be deleted when he disconnects.
Re: Question/Help -
Crystyan12 - 02.08.2011
Look here how i want make
Re: Question/Help -
=WoR=Varth - 03.08.2011
As Niixie said you have to write it in file.
y_ini for fast writing and reading.