Thread: [PI] Help with a ::teleport

Results 1 to 3 of 3
  1. #1 [PI] Help with a ::teleport 
    Registered Member
    Join Date
    Aug 2011
    Posts
    179
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    can anyone help me sorry for the dumb question havent coded in a while but how do you add in a ::teleport to like for instance :onator or something and it teleports you there anyone help?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2011
    Posts
    179
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    Nevermind Solved Thanks
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Posts
    41
    Thanks given
    4
    Thanks received
    8
    Rep Power
    5
    Code:
    if (playerCommand.startsWith("donator")) {
    						c.getPA().movePlayer(Xcord,Ycord,heightLevel);
    
    	}
    Easy
    Replace Xcord by the x coordinate, Y by Y coordinate and heightlevel by the height level.
    If you want a teleport with the teleport animation and gfx use:

    Code:
    if (playerCommand.startsWith("donator")) {
    						c.getPA().spellTeleport(Xcord,Ycord,heightLevel);
    
    	}

    EDIT: Wups was writing this while you answered. Sorry
    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. [PI] Adding a teleport and let it teleport
    By owner iwan in forum Help
    Replies: 6
    Last Post: 01-19-2011, 05:37 PM
  2. [PI] How do I add a 6th teleport?
    By Mister Pure in forum Help
    Replies: 8
    Last Post: 12-28-2010, 08:03 PM
  3. teleport help
    By lastpkz in forum Help
    Replies: 2
    Last Post: 07-18-2009, 03:43 AM
  4. Replies: 8
    Last Post: 08-01-2008, 09:08 AM
  5. Replies: 5
    Last Post: 03-22-2008, 04:55 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •