ID:144929
 
Code:
mob/Admin/verb
Jail(mob/M in world)
set category="Staff"
world<<world.realtime
var/time=input("For how many minutes?")as num
var/reason=input("Why are you jailing them?") as text|null
M.jailed=text2num(world.realtime+time*600)
M.loc=locate(8,3,3)
world <<"[M] - Key: [M.key] was jailed for [time] minutes because of [reason]"
var/obj/savedstuff/jail/A=new
A.jailed=text2num(world.realtime+time*600)
A.jail_key=M.key
A.jail_reason=reason
A.jail_by=usr
A.loc=locate(8,3,3)
text2file("[time2text(world.realtime)] :[M] - [M.key] was jailed by [usr]for [time] minutes<BR>","jaillogs/[time2text(world.realtime,"MMDD")].html")


Problem description:
- Well after the person spent in jail ends he should be freed but its not happening can someone help
You haven't programmed anything to release them from jail.
In response to DeathAwaitsU
i ya i had this
    UnJail()
set category="Staff"
var/people=list()
for(var/mob/M in world)
sleep(-1)
if(M.jailed)
people+=M
var/mob/who=input("Unjail who?") in people+"Nevermind"+"Someone else"
if(who=="Nevermind")
usr<< "okay"
return
else if(who=="Someone else")
var/li=list()
for(var/obj/savedstuff/jail/V in world)
sleep(-1)
li+=V
var/obj/savedstuff/jail/who2=input("Unjail who?") in li+"Nevermind"
if(who=="Nevermind")
usr<<"okay"
else
for(var/obj/savedstuff/jail/S in world)
sleep(-1)
if(S.jail_key==who2.jail_key)
text2file("[time2text(world.realtime)] :[S.jail_key] was unjailed by [usr] <BR>","jaillog/[time2text(world.realtime,"MMDD")].html")
del S
else
var/choice=input("Do what with [who]") in list ("Unjail","Move to me","Other location","Nevermind")
if(choice=="Nevermind")
return
if(choice=="Unjail")
who.loc=locate(3,5,1)
if(choice=="Move to me")
who.loc=usr.loc
if(choice=="Other location")
var/newx=input("what x coord?") as num
var/newy=input("what y coord?") as num
var/newz=input("what z coord?") as num
who.loc=locate(newx,newy,newz)
who <<"<font color=red><B>You are out of jail!</font>"
who.jailed=0
world <<"<B>[who] was unjailed."
text2file("[time2text(world.realtime)] :[who] - [who.key] was unjailed by [usr] <BR>","jaillog/[time2text(world.realtime,"MMDD")].html")
who.jailed=0


even with this it didn't work