25.05.2014, 10:23
Quote:
You don't need a timer for that! By using gettime function (without parameters) and storing the unix timestamp on connect, you can get the seconds the player is online by subtracting the unix timestamp from the current gettime with the one you stored on connect. You can then convert seconds to hours, minutes or whatever you want.
|
Код:
new __time = NetStats_GetConnectedTime(playerid) / 1000; //player time on the server in seconds //here you can save this time