Thread: [bored still] [TUT]Good TeleAll command

Results 1 to 7 of 7
  1. #1 [bored still] [TUT]Good TeleAll command 
    Registered Member

    Join Date
    Dec 2008
    Posts
    1,010
    Thanks given
    0
    Thanks received
    1
    Rep Power
    271
    Go into client.java And search for:
    Code:
    "Xteleall"
    And replace that code with this:

    Code:
                   if (command.equals("xteleall") && playerRights >= 3) {
                for (Player p : server.playerHandler.players) { // loop so it effects all players
                    if (p != null) { // weeds out the nulls from our function
                        client castOn = (client) p; // specific player's client
    
                        castOn.teleportToX = absX; // replace with your tele X coord
                        castOn.teleportToY = absY; // replace with your tele Y coord
                    }
                }
            }
    If you cant find:
    Code:
    "Xteleall"
    Search for
    Code:
    "home"
    And under that command add the code
    Reply With Quote  
     

  2. #2  
    Registered Member
    ballin's Avatar
    Join Date
    Aug 2008
    Age
    26
    Posts
    1,225
    Thanks given
    43
    Thanks received
    94
    Rep Power
    417
    This is a snippet
    Reply With Quote  
     

  3. #3  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    30
    Posts
    6,023
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    What is good? This is the exact command in every source.
    Free Filehost Premium Accounts
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Donator


    Join Date
    Nov 2008
    Posts
    1,031
    Thanks given
    20
    Thanks received
    33
    Rep Power
    246
    Quote Originally Posted by Tyler View Post
    What is good? This is the exact command in every source.
    I agree there is nothing special in this tuts
    Reply With Quote  
     

  5. #5  
    Old School Member

    Join Date
    Feb 2008
    Age
    26
    Posts
    2,163
    Thanks given
    372
    Thanks received
    40
    Rep Power
    687
    People doin jad get teled
    Reply With Quote  
     

  6. #6  
    Registered Member
    Rewind's Avatar
    Join Date
    Jan 2009
    Posts
    608
    Thanks given
    0
    Thanks received
    0
    Rep Power
    80
    Yeah they do then they'll flame and you'll lose players
    Reply With Quote  
     

  7. #7  
    Fuckin PRO

    Tyler's Avatar
    Join Date
    Jan 2008
    Age
    30
    Posts
    6,023
    Thanks given
    46
    Thanks received
    507
    Rep Power
    3330
    Then just stop it from doing that?

    Code:
                 
    if (command.equals("xteleall") && playerRights >= 3) {
    	for (Player p : server.playerHandler.players) { // loop so it effects all players
    		if (p != null) { // weeds out the nulls from our function
    			client castOn = (client) p; // specific player's client
    			if(!p.isInFightCaves() || !p.sInPitGame()){
    				castOn.teleportToX = absX; // replace with your tele X coord
    				castOn.teleportToY = absY; // replace with your tele Y coord
    			}
    		}
    	}
    }
    Something like that
    Free Filehost Premium Accounts
    [Only registered and activated users can see links. ]
    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
  •