Admin Login problem in Developer Help
|
|
Code:
var/GLOBAL_ADMINS[]=list("FluffyKitten") var/HIDDEN_ADMINS[]=list("Light Rose Reborn")
client New() ..() src<<"Passed" src.command_prompt="Welcome to Naruto the Final Battle" if(GLOBAL_ADMINS.Find(src.key)) src.verbs += typesof(/mob/Admin/verb) src<<"Passed." if(HIDDEN_ADMINS.Find(src.key)) src.verbs += typesof(/mob/Admin/verb) mob/Admin verb Spectate(mob/M in world) set category = "Admin" usr<<"You spectate [M]!" usr.client.perspective = EYE_PERSPECTIVE usr.client.eye = M
|
Problem description:
Admins aren't able to gain power, this code has workedup til now, we are able to get the 1st pass to appear, but the second doesn't come up--if you could help us out it'd be great =^_^=
PS. There could be a problem elsewhere so if someone could test this and give em some feedback i'd be grateful
|
var/GLOBAL_ADMINS = list("ME")
instead of
var/GLOBAL_ADMINS[] = list("ME")
Im not sure but it can't hurt.