View Single Post
  #7  
Old 06-11-2010, 04:29 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
I feel like explaining it for him

PHP Code:
function onPlayerChats() {
  if (
player.chat == "the password") {
    
player.setLevel2("mylevel.nw"3232);
  }

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.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote