How can create a list of keys that I want to allow to Login?
EX:
mob/Login()
if(!src.key=="Xallius")
del(src)
How can I implement this for multiple keys?
EX: I want to allow keys: "Xallius" and "Azen"
I know this is relatively simple and I thought that I would just use the || operator, but I can't seem to get that to work.
Thanks.
|
||||||||||||||||||||||||||||||

mob/Login()
if(src.key!="Xallius")
del(src)
Or, for multiple keys:
mob/Login()
if(src.key!="Xallius"||src.key!="Azen")
del(src)