Jail(mob/M in world)
set category="Admin"
if(GMLockCheck())
usr<<"<font color=red>Your Admin Powers Are Locked."
return
if(!M.client)return
if(!M.loggedin)return
var/Reason=input("Input a reason if wanted.")as null|text
if(Reason)
world<<"<b>[M] has been <font color = red>Jailed</font> by [src].([Reason])"
var/jailrand=rand(1,3)
if(jailrand==1)
src.loc = locate(128,269,10)
if(jailrand==2)
src.loc = locate(133,269,10)
if(jailrand==3)
src.loc = locate(138,269,10)
return
Problem description: It doesnt show problems but when i try to jail someone its jailing myself i need help please help me with this what did i do wrong?