View Single Post
  #1  
Old 07-12-2011, 08:35 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
open and closable level

hey, i know most of you got annoyed because i was asking for scripts that were wayyy above my scripting level, so iv decided to stick to easier things for now, basicly what iv tried to make is a door that if u write /open and your account is allowed to it will alloe you to enter the level when you touch it but if the account writes /close it closes it and you cant enter the level..
here is what i have so far..
the account and /open and /close work
but i cant get the if playertouchsme bit to work..
as for the player.chat once i get it working il change that to setlevel2("level.nw",30,30);

PHP Code:
function onPlayerChats(){
  if (
player.account == "Graal780374"){
    if (
player.chat == "/open"){
      
this.chat = "Secret Room Is Open!";
      if (
playertouchsme){
        
player.chat = "open";
      }
    }
    if (
player.chat == "/close"){
      
this.chat = "Secret Room Is Closed!";
    }
    if (
playertouchsme){
      
player.chat = "closed";
    }
  }
} 
Any Help Your Willing TO Give Is Much Appreciated
Thanks
-Gunderak
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote