Thread: [508]How to make an area...

Results 1 to 4 of 4
  1. #1 [508]How to make an area... 
    Registered Member SilentZPrO's Avatar
    Join Date
    Dec 2008
    Posts
    727
    Thanks given
    3
    Thanks received
    4
    Rep Power
    12
    How would you make an area so that you can't teleport out of it? Like so if your in jail. How could you make it so that you can't get out from a teleport? If thats possible whats the tut?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Jumper''s Avatar
    Join Date
    Jan 2009
    Posts
    893
    Thanks given
    4
    Thanks received
    6
    Rep Power
    204
    you have to make the area yourself, there are areas like duel, bh etc, you have to make your pwn, and when someone enters that area, you diable all teleports, and the logout,.
    I never saw a TUT for it, so I had to do it myself.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Santaher0's Avatar
    Join Date
    Sep 2008
    Posts
    2,033
    Thanks given
    324
    Thanks received
    49
    Rep Power
    1282
    mhhm maby make a boolean with the coords and underneath the boolean still in the code ad somthing that teleblocks you but i don't know what that could be
    - Support my project [Only registered and activated users can see links. ]

    - Santaher0's [Only registered and activated users can see links. ]

    - Santaher0's [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Donator

    iZAjz's Avatar
    Join Date
    Mar 2007
    Age
    26
    Posts
    3,675
    Thanks given
    105
    Thanks received
    47
    Rep Power
    1882
    Try adding something like this.
    if (p.atJail != false)

    In your teleports etc.

    And boolean
    public boolean atJail() {
    if((absX >= #### && absX <= ####&& absY >= #### && absY <= ####)) return true;
    else
    return false;
    }
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •