23.04.2017, 20:35
Use gettime(). You don't even need any extra variables or timers. You probably already set a variable to 1 once a player goes on duty so just replace that 1 with gettime() without parameters. When player goes off duty (or when the duty time is requested) you do gettime() - yourDutyVariable[playerid] and that will give you the time in seconds for the current session which can then be added to the total. That can then be converted into minutes and hours as desired.