Thread: Hunger Games: Teleport all from lobby method

Results 1 to 4 of 4
  1. #1 Hunger Games: Teleport all from lobby method 
    Registered Member dyzes's Avatar
    Join Date
    Sep 2015
    Posts
    58
    Thanks given
    36
    Thanks received
    75
    Rep Power
    11
    remove
     

  2. Thankful users:


  3. #2  
    Registered Member copycopy's Avatar
    Join Date
    Aug 2006
    Posts
    185
    Thanks given
    17
    Thanks received
    3
    Rep Power
    14
    Define the area location much like you do the wilderness then enable and disable it with a teleport function so when the lobby is full teleport = true if lobby is waiting or >4 then false


    Something like that should sufficiently do the job just look into the previous code and reuse it how I told you

    Doing this will make sure no one can glitch or cheat and call in this function separate to the class from a main class for the game so that way you can control the teleport reigons and amounts of people etc latter today if I can sit down I'll look into the code and mand maby whip something up.
    Quote Originally Posted by Liam View Post
    We have like 20 staff members, and lots of them are pretty worthless. what the **** is the point of a SB mod?
    agreed there... well kinda
     

  4. #3  
    Community Veteran


    arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,833
    Thanks given
    187
    Thanks received
    306
    Discord
    View profile
    Rep Power
    770
    Seems like your issue is either:
    Code:
    if (Server.playerHandler.players[j].inHgBoat()) {
    movePlayer(j);
    Misc.println("1.2");//Showing what step I am
    }
    or
    Code:
    if (Config.LOBBY_PLAYERS > 3) {
    Misc.println("2");//Showing what step I am
    
    if (Config.HG_FULL = true/* && Config.LOBBY_PLAYERS != 0*/) {
    startGame();
    c.getPA().closeAllWindows();
    Misc.println("3");//Showing what step I am
    Config.LOBBY_PLAYERS = 0;
    return;
    }
    return;
    }
    You could try at the last part do:
    Code:
    if (playersInLobby() > 3) {
    Misc.println("2");//Showing what step I am
    startGame();
    c.getPA().closeAllWindows();
    Misc.println("3");//Showing what step I am
    }
    then change the first code to:
    Code:
    movePlayer(j);
    Misc.println("1.2");//Showing what step I am


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
     

  5. #4  
    Banned

    Join Date
    Jun 2010
    Age
    23
    Posts
    4,836
    Thanks given
    1,676
    Thanks received
    1,563
    Discord
    View profile
    Rep Power
    0
    ur method to check total players is using pc still

    Code:
    if (Server.playerHandler.players[j].inPcBoat()) {
     


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: 2
    Last Post: 03-23-2012, 09:22 PM
  2. Teleporting all players to a spot.
    By myK- in forum Help
    Replies: 21
    Last Post: 07-16-2009, 07:22 AM
  3. Teleport all
    By Simbioitic in forum Help
    Replies: 4
    Last Post: 04-12-2009, 09:51 PM
  4. In game news loaded from web
    By Dragonking in forum Show-off
    Replies: 32
    Last Post: 12-03-2008, 03:10 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
  •