Feroc1ty
2011-02-23 02:14:45
function TooCrowded():boolean;
var people:TPlayerArray;
begin
people := GetAllPlayers;
if high(people) >= MAX_PLAYERS then result := true;
fDebug('Main','Amount of players found: ' + tostr(high(people))+'.');
end;
procedure CheckWorld;
begin
if TooCrowded then
begin
while not LobbyScreen do
begin
if LoggedIn then
Logout
else
LoginPlayerToLob;
end;
ChangeWorld(RandomWorld(CLIENT_MEMBERS,false));
LoginPlayer;
end;
end; It clicks "World Select" tab on player lobby, but then gets stuck there.