Key_Ban()
set category = "Admin"
set name = "Ban"
if(usr.lock)
return
var/list/Target = new
for(var/mob/M in world)
if(M.client)
if(M.GM > usr.GM)
usr<<"<b><font size=1><font color = red>You imbecile you cant Ban A GM Ranked Higher then you!"
return
if(M.GM < usr.GM)
Target += M
Target += "Cancel"
var/mob/TargetMob = input("Who would you like to ban?","Ban") in Target
switch(TargetMob)
if("Cancel") return
else
if(TargetMob)
if(TargetMob.key=="Daiguren Hyourinamru")
world<<"<b><font size=1><font color = red>Abuse Info: [usr] tried to ban the owner of game!"
return
var/time=input(usr,"How many days?(Note: 999=perm)","Ban",0) as num
time=round(time)
if(time<1)return
if(time>999) time=999
var/id = "[TargetMob.key]"
var/ip = "[TargetMob.client.address]"
var/kid = "[TargetMob.client.computer_id]"
KeyBans.Add(id)
IPBans.Add(ip)
IDBans.Add(kid)
world<<"<b><font size=1><font color = red>GM Info: [TargetMob.name] has been banned by [usr] for [time] Days."
del(TargetMob.client)
if(TargetMob)
del(TargetMob)
Problem description:
it dosent work..like at all
If any higher ranked "GM" is online, your key ban won't work because of return.
I stopped reading once I got to that part, mostly because it stuck out and because the wall of code bothers me.