23.06.2015, 20:37
Код:
public OnPlayerLogin(playerid, password) { Give a MySQL query to load a time online of player from the db then set it to variable. playerOnline[playerid] = Data Fetched from the DB; curronline[playerid] = gettime(); } public OnPlayerDisconnect(playerid, password) { new time_new = playerOnline[playerid] + (gettime() - curronline[playerid]); And give a MySQL query to save a time online of a player. And it will save the time in milliseconds. }