07.07.2013, 19:38
How can I make when a type some command then print my a last date when player was online if you know what I mean. Thanks
public OnPlayerDisconnect(playerid)
{
// Then save this variable somewhere in your user system file, most likely in the user's file.
new disconnect = gettime();
return 1;
}
new year, month, day;
getdate(year, month, day);
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);