ID:267808
 
i tried making GM Ban codes.
i have the list, banned
i have it so when u ban someone it does:

banned.Add(M:key)

and in the Login() i have:

if(banned.Find(usr.key))
del usr

but an error occurs and banning doesn't work
I assume that you didn't set the banned var as a list. It should be like this, if you define it as a list.

var/list/banned = list()

~~ Dragon Lord ~~
Heres 2 ban things you can implement into your game or whatever. They are much better than using a list.

http://www.byond.com/hub/crispy/FullBan
http://www.byond.com/hub/jackguy/simpleban

They use savefiles rather than a list. And provide instructions on how to do the banning.
In response to Evil Incarnate Inc
FullBan does use a list, actually. =) It just saves the list as well, and does a few pieces of trickery to tag computers so that the banned players can't come back on a different key.
In response to Unknown Person
yep Unknown was right...thanks
at least, i think he's right