ID:172530
 
Well im trying to run a proc everytime at login to check if they are a admin but it gives me a black screen if im creating a new character.
var/list/Admin = list("Turles9000","Turles","Turles5000","Turles6000","Turles 4000","Baedock")
mob
Admin
verb
Ban(mob/M as mob in world)
set desc="(player) Ban a player"
if (alert(src,"Do you really want to ban [M]?","Really ban?","Ban","Cancel")=="Ban")
crban_fullban(M)
Baniprange(range as text)
crban_iprange(range)
Unban(key as text)
set desc="(key) Unban the specified key"
crban_unban(key)

mob
proc
AdminCheck()
if(Admin.Find(usr.key))
src.verbs+=typesof(/mob/Admin/verb)
..()
mob
Login()
AdminCheck()
Turles9000 wrote:
Well im trying to run a proc everytime at login to check if they are a admin but it gives me a black screen if im creating a new character.
var/list/Admin = list("Turles9000","Turles","Turles5000","Turles6000","Turles 4000","Baedock")
mob
Admin
verb
Ban(mob/M as mob in world)
set desc="(player) Ban a player"
if (alert(src,"Do you really want to ban [M]?","Really ban?","Ban","Cancel")=="Ban")
crban_fullban(M)
Baniprange(range as text)
crban_iprange(range)
Unban(key as text)
set desc="(key) Unban the specified key"
crban_unban(key)

mob
proc
AdminCheck()
if(Admin.Find(usr.key))
src.verbs+=typesof(/mob/Admin/verb)
..()
mob
Login()
AdminCheck()

if((src.key in Admin))
Turles9000 wrote:
Well im trying to run a proc everytime at login to check if they are a admin but it gives me a black screen if im creating a new character.
mob
Login()
AdminCheck()
---> ..()
Remeber to call the other mob Logins that you may have, without this, this login will just do the admin check, and nothing else.
K Thanks guys got it