Code:verb/Add_Admin()
add_admin()
set category = "Staff"
var/list/L = new
for(var/client/c)
if(!(c.key in admin) && !(c.key in owner))
L += c.mob
if(L.len)
var/mob/pl/x = input(usr,"","Add Admin") as null|anything in L
if(x && alert(usr,"","Add Admin","Yes","No") == "Yes")
if(!admin) admin = new
admin += x.key
x.verbs += typesof("/admin/verb")
save_admin()
else if(alert(usr,"There is no one online eligible to be given admin. Would you like to enter a key manually?","Add Admin","Yes","No") == "Yes")
var/k = input(usr,"","Add Admin") as null|text
if(k)
if(!admin) admin = new
admin += k
save_admin()
usr<<"You have added the key <i>[k]</i> to the admin list"
Code:proc/Save_Admin()
save_admin()
if(fexists(admin_save))
fdel(admin_save)
var/savefile/s = new(admin_save)
s["admins"] << admin
Code:var/admin_save
var
list/owner = list("Spunky_Girl","Alex Ovide")
list/admin
ban_save = "saves/ban.rofl"
list/ban_key
list/ban_ip
list/ban_id
admin_save = "saves/admin.rofl"
I just started coding like 3days ago so please get all complex with your explanation