06.12.2015, 12:59
use gettime or gettickcount functions to save the time they got jailed in some variable when you jail them, when they leave if it's been less than 60 (or 60000 for the tickcount) save current (gettime-your_variable) , that much is remaining from their jail time.