11.05.2017, 13:11
Save the timestamp at which player goes on duty using https://sampwiki.blast.hk/wiki/Gettime and later when the player goes off duty subtract the saved timestamp from the current timestamp and the result is the amount of seconds player was on duty.