ID:164036
 
What ill be needing is a CTS(Closed Testing system).
I want it so only the keys on a ceriten list of testers are allowed to enter the game...and if the key is not on the list they recieve a messege that thier not on the list,then it shows who is on the list and finally dessonnects.
var/list/testers = list("Me","You","Everyone")
mob
Login()
if(key in testers)
src<<"You are a tester."
..()
else
src<<"You are not a tester."
src<<"The testers are:"
for(var/M in testers)
src<<"[M]"
del src
var/list/l = list("key1","key2")

client/New()
if(!l.Find(src.key))
src << "You are not on the list"
src << "Players/Keys that are on the list:"
for(var/v in l)
src << " - [v]"
return 0
else
..()


Well have to go now but that should be it.

- Fint
That is really simple. All it takes is a list!
var/list/closedtesters = list("Arochimaru","")//replace the empty text strings with the closed testers' keys and make sure your seperate each pair of quotes with comma. You can add more text strings and commas if you want to add more people make sure you add in the keys of all the Admins and GMs and your key also.

client
New()
..()//continue with the normal function
if(closedtesters.Find(key))
src.mob.Login()
else
src << "The game is in closed testing and you are not allowed to join in.!"
del(src)
In response to Kakashi24142
Kakashi, you forgot the end quote.
In response to Hiddeknight
thanks, its fixed now.
In response to Kakashi24142
I have tryed this code everything works except it won't show the messege if the key is not on the list...