var
global
list/Ban_List = list()
mob
Player
proc
Ban_Check()
if(src in global.Ban_List)
src << "<font color=red><font size=-1>You are banned!"
del(src)
return
else
src << "System Test Passed!"
Admin
verb
Ban(mob/Player/M as mob in world)
if(M in global.Ban_List)
src << "<i>They are already Banned!"
return
else
M << "<font color=red><font size=-1>You have been banned!"
global.Ban_List.Add(M)
src << "<font color=red><font size=-1>You have banned [M]"
del(M)
Login()
src.verbs += new/mob/Admin/verb/Ban
src.Ban_Check()
src << "<font color=green><font size=-1>Protected by: ITG_Ban"
..()
world
New()
..()
if(fexists("Save/[world.name]"))
var/savefile/F = new("Save/[world.name]")
F["Ban_List"] >> global.Ban_List
world << "Ban List loaded..."
Del()
var/savefile/F = new("Save/[world.name]")
F["Ban_List"] << global.Ban_List
..()
Problem description:
I am creating a Ban_Library for me to play around with and for some reason...it doesnt say "Your Banned" and delete you, if your banned. Maybe I am not putting them in the Ban_List correctly, or the world is not writing them correctly.