Well I'm going to be a friendly guy and help a bit for the password, the following is apretty good way to ensure that only people with authorization can enter:
NPC Code:
if (playerchats) {
if (strequals(#c,password)) {
setplayerprop #c(0),;
hidelocal;
dontblocklocal;
timeout = 5;
}
else {
message Sorry, that isn't the password;
timeout = 3;
}
}
if (timeout) {
showlocal;
bloackagainlocal;
message ;
}