Is there a way to restrict hosting so you need a password or something? If yes can somone please tell me how.
Thanks for any help.
ID:175753
Mar 14 2003, 8:31 am
|
|
var/global/password=[put password here]
var/global/password_entered=0
mob/Login()
if(global.password_entered)
..()
else
if(input("Please enter the password.","Password")==global.password)
global.password_entered=1
..()
else
alert("Incorrect password.","Denied!")
Logout()
I realise that your world probably has some login code allready in it, and that your password code may need to be slightly modified, but this is only an example.
-Loduwijk