18.02.2014, 14:57
GetTickCount?
At the command do a GetTickCount to get the current tick then do the same as above ^
Just avoided a timer?
Quote:
OnPlayerConnect - GetTickCount = tick_connect OnPlayerDisconnect - GetTickCount = tick_disconnect time_minutes = (tick_disconnect - tick_connect)/60*1000; //seconds time_hours = time_minutes/60; time_minutes = time_minutes%60; |
Just avoided a timer?