Last time when player was online
#5

There's no need for an include as long as you don't want to know the time. If you just need the date, all you need to do is:

pawn Код:
new year, month, day;
getdate(year, month, day);
Then save those values in your player's saving system.

Then after a player logs in do something like this:
pawn Код:
new string[64];
format(string, sizeof(string), "You last logged in on: %i/%i/%i", month, day, year); // Change month, day, and year to the variables you saved the values to.
SendClientMessage(playerid, -1, string);
Reply


Messages In This Thread
Last time when player was online - by Luca12 - 07.07.2013, 19:38
Re: Last time when player was online - by GiamPy. - 07.07.2013, 19:40
Re: Last time when player was online - by Luca12 - 07.07.2013, 19:46
Re: Last time when player was online - by GiamPy. - 07.07.2013, 19:48
Re: Last time when player was online - by JJB562 - 07.07.2013, 20:22
Re: Last time when player was online - by Luca12 - 07.07.2013, 23:11

Forum Jump:


Users browsing this thread: 3 Guest(s)