ID:272163
 
OK, I got this code below, MY question is:
"How do I have this list save if the world reboots/saves?"

Code:
mob
Login()
..()
verb/Ban(mob/M in world)
set name = "Ban"
set category = "Other"
switch(input("Are you sure you want to ban [M.key]?") in list ("Yes","No"))
if("Yes")//If they OK it the thing below will happen
world << "<B>[M.key] has been banned by [usr.key]"
IPB.Add("[M.key]")
del (M)
mob
Login()
..()
if(usr.key in IPB)
usr << "\red Access Denied."
sleep(5)
del (usr.client)








var/list/IPB = list("")


Thanks for any help!

--World Build
After each time you modify it, you should save it to a file/savefile.
On the world/New() proc (look it up), load it from the file.
switch(input("Are you sure you want to ban [M.key]?") in list ("Yes","No"))

I would probably use alert() instead of input for this, though either will work.