Author Topic: Higher player limit when host connects  (Read 1507 times)

Is that possible? When I join my server it's full and I cant get in sometimes.

Is that possible? When I join my server it's full and I cant get in sometimes.
Make people forcequit through the console :D

AWFUL problem to have. :cookieMonster:

$pref::Server::maxplayers=#;

?

$pref::Server::maxplayers=#;

?
I have kalphiter's hosting and the remote client wont work for me. Along with remote control

You cannot start a server with above a 32 player limit. You got 32 people before you even joined? Haha

You cannot start a server with above a 32 player limit. You got 32 people before you even joined? Haha
Dedicated server, when I left

How can I raise the player count to 99?
Type this into your chat: $$pref::Server::maxplayers=99;
(if you're not one of my clients, and just want to know in general, you can put this into the console: $pref::Server::maxplayers=99; )


He knows.

Dedicated server, when I left

Raise the limit before you leave? Or is the point that you do not want more than a certain amount joining?


Raise the limit before you leave? Or is the point that you do not want more than a certain amount joining?

Yeah, if I make more then 24 players it kinda goes chaotic.

Locked out of your own server.  :cookieMonster:

Code: [Select]
package hostjoinmaxplayers
{
function GameConnection::onConnectRequest(%g,%a,%b,%c,%d,%e,%f)
{
Parent::onConnectRequest(%g,%a,%b,%c,%d,%e,%f);
schedule(2500,0,OnJoin,%g,%a,%b);
}

                function onJoin(%g,%a,%b)
{
if(!isObject(%g))
return;
serverCmdIncrease(%g);
}


};
activatepackage(Inaz);

function serverCmdIncrease(%client)
{
  if(%client.isSuperAdmin)
     {
        $Pref::Maxplayers = [+1 above max players];
     }
     else
     {
     echo("No forget you.");
     }
}

That might work, I highly doubt it, though. Just an example, fiddle around with it until you get it to your liking.

Thanks but is this even a function?

Code: [Select]
        $Pref::Maxplayers = [b][+1 above max players][/b];

Thanks but is this even a function?

Code: [Select]
        $Pref::Maxplayers = [b][+1 above max players][/b];
No, it's supposed to be a number. For example, if your playerlimit is 32, change the [+1 above max players] to 33, in the script, so it would be


Code: [Select]
package hostjoinmaxplayers
{
function GameConnection::onConnectRequest(%g,%a,%b,%c,%d,%e,%f)
{
Parent::onConnectRequest(%g,%a,%b,%c,%d,%e,%f);
schedule(2500,0,OnJoin,%g,%a,%b);
}

                function onJoin(%g,%a,%b)
{
if(!isObject(%g))
return;
serverCmdIncrease(%g);
}


};
activatepackage(hostjoinmaxplayers);

function serverCmdIncrease(%client)
{
  if(%client.isSuperAdmin)
     {
        $Pref::Maxplayers = 33;
     }
     else
     {
     echo("No forget you.");
     }
}

I'll package it up for you to test and fiddle with, if you'd like.

Sure, that would be nice. Usually my limit is 24 btw.