I feel like explaining it for him
PHP Code:
function onPlayerChats() {
if (player.chat == "the password") {
player.setLevel2("mylevel.nw", 32, 32);
}
}
Now function onPlayerChats is self explainitory for the function is of when a player is to speak.
the if statement is where the condition for your doors password is set.
In this case if you were to say "the password" or whatever you set it to.
Your players level would then be set to the level, x and y coordinates in said level.
Hope this helps you understand it a bit more.