25.05.2014, 10:53
Quote:
With timer you can count player time without afk time, there is better solution to get player time on the server - function NetStats_GetConnectedTime
Код:
new __time = NetStats_GetConnectedTime(playerid) / 1000; //player time on the server in seconds //here you can save this time |
By the way if I remember correctly, the function NetStats_GetConnectedTime does not work in OnPlayerDisconnect callback that's why I suggested unix timestamp.
Avoid timers as much as you can!