ID:164901
Mar 30 2007, 9:54 am
|
|
Im just confused on how the keys work. Im reading a demo that shows admin keys but i have never seen anything where you input the key. Help would be apreciated.
|
In response to KirbyAllStar
|
|
so i could do something like this?
var/list/admins = ("FretfulGun191") if(src.key in Admins) mob/verb/announce(msg as text) world >> "[usr] <font color = "red"> ANNOUNCES [msg]!" |
In response to FretFulGun
|
|
Well you could do something like this...
var/list/admins=list("FretFulGun") The html_encode is to ensure that the user of the verb can't put dangerous html in the msg or in their name. I'm not sure how you have yours set up but you can change the usr.name to the usr.key if you need to. With this you also can have as many Admin verbs as you need just make sure they are under the "mob/Admin/verb/" path and add that in on your mob/Login or client/New(). Hope that helps... -KirbyAllStar |
your key: FretFulGun
your ckey: fretfulgun
you could make a list of admins like...