ID:264695
 
Code:
mob
admin
verb
Ban(mob/M in world)
set category = "Staff"
set desc = "Ban a player from the world"
if(M.owner==1)
usr << output ("<font color=red>You cannot ban the game owner!</font>", "OOC")
return
else
bans += M.ckey
world<<output("<b><font color=red>[usr.name] has been banned!</font>", "OOC")
M << output ("<font color=red>You have been banned!</font>", "OOC")
del(M)

mob
admin
verb
Unban(mob/M in bans)
set category = "Staff"
set desc = "Allow a player to enter the world"
if(!bans.Find(M.ckey))
usr << output ("<font color=red>There is no person banned with the key '[key]'!</font>", "OOC")
else
world << output ("<font color=green>[key] has been unbanned by [usr]!</font>", "OOC")
bans -= M.ckey


Problem description: The ban works just fine. I can't unban, that's the problem.

mob
admin
verb
Unban(var/M in bans)
set category = "Staff"
set desc = "Allow a player to enter the world"
if(!bans.Find(M))
usr << output ("<font color=red>There is no person banned with the key '[key]'!</font>", "OOC")
else
world << output ("<font color=green>[M] has been unbanned by [usr]!</font>", "OOC")
bans -= M