ID:178710
 
lets say LIKE a saafe door that needs a password to open?.. How would I go about this?
You could try something like this:

turf/secretdoor/Enter(mob/M)
var/pass = input(M,"What's the password?") as text
if(pass == "ThePassWord")
M << "Correct."
return 1
else
M << "That is not the password!"
return 0

In response to Foomer
that worked fiNe.
but what a door that only i could enter.

?
In response to ShadowSiientx
Same concept, only instead of prompting for and checking the password, check to see if your name is the same as the required name.