Thread: [HELP] Questions [HELP]

Results 1 to 5 of 5
  1. #1 [HELP] Questions [HELP] 
    Registered Member Xynasty's Avatar
    Join Date
    Aug 2010
    Age
    29
    Posts
    314
    Thanks given
    52
    Thanks received
    14
    Rep Power
    17
    1. When I logout, it takes like 10 second to logout my player. How can I fix this ? I found no 10 second in my server with logout thing.

    2. How can I make it so when a player is in Jail, he can't escape with a command who teleports you like :hop ?

    Thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member Xynasty's Avatar
    Join Date
    Aug 2010
    Age
    29
    Posts
    314
    Thanks given
    52
    Thanks received
    14
    Rep Power
    17
    Bump please!
    Reply With Quote  
     

  3. #3  
    Registered Member Zylsium's Avatar
    Join Date
    Jun 2010
    Posts
    111
    Thanks given
    2
    Thanks received
    2
    Rep Power
    3
    Add this to your
    /**
    * Teleporting
    **/

    Code:
    public void startTeleport(int x, int y, int height, String teleportType) {
    		if(c.isInJail()) {
    			c.sendMessage("You cannot teleport out of jail!");
    			return;
    		}
    Reply With Quote  
     

  4. #4  
    Registered Member Xynasty's Avatar
    Join Date
    Aug 2010
    Age
    29
    Posts
    314
    Thanks given
    52
    Thanks received
    14
    Rep Power
    17
    Quote Originally Posted by Johnnysauur View Post
    Add this to your
    /**
    * Teleporting
    **/

    Code:
    public void startTeleport(int x, int y, int height, String teleportType) {
    		if(c.isInJail()) {
    			c.sendMessage("You cannot teleport out of jail!");
    			return;
    		}
    This didn't change anything.

    I put it in client.java but where exactly ?
    Reply With Quote  
     

  5. #5  
    Registered Member
    LAMT's Avatar
    Join Date
    Jul 2007
    Posts
    1,120
    Thanks given
    45
    Thanks received
    10
    Rep Power
    716
    Please post your command for ::jail (or whatever it is) and the method that makes them teleport.

    If it just changes the absx int, you may have to make a method to teleport.. such as..

    Code:
    public void teleport(int x, int y, int z) {
    if(c.isInJail()) {
    return;
    } else {
    c.absx = x;
    c.absy = y;
    c.absz = z;
    }
    }
    Note: That () will not work, its just an example.

    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
  •