Thread: ::home help.

Results 1 to 4 of 4
  1. #1 ::home help. 
    Registered Member
    Join Date
    Dec 2009
    Posts
    615
    Thanks given
    106
    Thanks received
    33
    Rep Power
    17
    This makes me sound like a tard, I'm aware.

    BUT... How would I make this commands not allow a player to teleport while teleblocked?

    Code:
    else if (Command.equals("home"))
    			{
    				changeCoords(3093, 3493, 0);
    			}
    Reply With Quote  
     

  2. #2  
    ಠ_ಠ

    Joshua's Avatar
    Join Date
    May 2010
    Posts
    1,903
    Thanks given
    397
    Thanks received
    708
    Rep Power
    803
    before teleporting them, just have it check the boolean/int that your server uses to determine if you are still teleblocked.


    Example:

    Code:
    else if (Command.equals("home"))
    {
    	if(c.teleBlockCount == 0)
    		changeCoords(3093, 3493, 0);
    	else
    		sendMessage("Ur teleblocked, get over it.");
    }
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2011
    Posts
    134
    Thanks given
    6
    Thanks received
    1
    Rep Power
    11
    Why not just make it run a normal teleport? instead of just moving the player? It would check automatically.
    Reply With Quote  
     

  4. #4  
    Donator

    Anthony's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    1,344
    Thanks given
    198
    Thanks received
    129
    Rep Power
    355
    Quote Originally Posted by Joshua View Post
    before teleporting them, just have it check the boolean/int that your server uses to determine if you are still teleblocked.


    Example:

    Code:
    else if (Command.equals("home"))
    {
    	if(c.teleBlockCount == 0)
    		changeCoords(3093, 3493, 0);
    	else
    		sendMessage("Ur teleblocked, get over it.");
    }
    That's depending on if your Teleblock is using that layout as well. It's better to not allow people to teleport out of combat anyway your best bet to make this situation better is implement teleport tabs and stay away from commands such as these ones.
    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

Similar Threads

  1. Replies: 5
    Last Post: 08-02-2012, 02:56 AM
  2. Home?
    By vovik ukr in forum Media
    Replies: 1
    Last Post: 12-07-2011, 11:00 PM
  3. Try this at home!
    By bracket in forum Humor
    Replies: 10
    Last Post: 05-19-2011, 06:03 PM
  4. Just got in PS Home!
    By Scruffy in forum Console
    Replies: 14
    Last Post: 12-12-2008, 12:31 AM
  5. Home sweet home.
    By izzygoo in forum Help
    Replies: 2
    Last Post: 10-30-2008, 11:40 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •