|
|
remove
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.




Seems like your issue is either:
orCode:if (Server.playerHandler.players[j].inHgBoat()) { movePlayer(j); Misc.println("1.2");//Showing what step I am }
You could try at the last part do: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; }
then change the first code to:Code:if (playersInLobby() > 3) { Misc.println("2");//Showing what step I am startGame(); c.getPA().closeAllWindows(); Misc.println("3");//Showing what step I am }
Code:movePlayer(j); Misc.println("1.2");//Showing what step I am

ur method to check total players is using pc still
Code:if (Server.playerHandler.players[j].inPcBoat()) {
| « Game Version Issues | How to Change the Color of GP on a 2006Memory's Client » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |