ID:167147
 
How would I make it if I the game is hosted ONLY for testing and the game is up but when somebody that is not on the list get booted of and it leave's a message saying We are in private Testing. By a list I mean all the keys that the people can log into safely. So it's like a key is Bamrulez only. So only I can loggin. Thank you.

-~Bamrulez~-
Look up;
if()
list / lists
in
del
In response to Mysame
Mysame wrote:
Look up;
if()
list / lists
in
del

Ok thank's i'll see what happens. How come your the first to always answer my posts? Oh well, thanks again.
In response to Bamrulez
Mob
Login()
if
ckey("Bamrulez")
loc=locate(10,10,2)
else
usr << "We are in testing."
del


Something like this? Or is there a better way?


In response to Bamrulez
var/list/beta = list("lowercase","keys","gohere") // You don't use spaces either with ckey, or "'"
mob
Login()
if(src.ckey in beta)
src.loc=locate(1,2,1)
..()
else
del src


That should work.
In response to Bamrulez
You're very close.

mob/Login()
if(key=="Bamrulez)
loc = locate(10,10,2)
else
src << "We are in testing."
del src


I only made a few small changes. Nice try!

Edit: for your convenience, no more bad variable assignment! Thanks, Audeuro.
In response to PirateHead
/me coughs and points at the if statement which will provide you with a nice compiler error.