Defining Max Players from server.cfg
#9

I'd also recommend to put a check if you did #define MAX_PLAYERS (sumthing) correctly.
pawn Код:
// For example, you have maxplayers 40 in server.cfg
// And you do
#define MAX_PLAYERS (50)
// It will print that your MAX_PLAYERS is not the same as the one in server.cfg and it will close your server
public OnFilterScriptInit( )
{
    print( "Testing if you have set the MAX_PLAYERS define... " );
    if( MAX_PLAYERS != GetMaxPlayers( ) )
    {
        print( "Your MAX_PLAYERS define is not the same as the one in server.cfg, please change it" );
        return SendRconCommand( "exit" );
    }
    print( "Success! You have the MAX_PLAYERS define as it should be! ");
    return 1;
}
Reply


Messages In This Thread
Defining Max Players from server.cfg - by Spectre - 16.02.2011, 13:28
Re: Defining Max Players from server.cfg - by Sergei - 16.02.2011, 13:33
Re: Defining Max Players from server.cfg - by Spectre - 16.02.2011, 13:43
Re: Defining Max Players from server.cfg - by watkijkje - 16.02.2011, 15:39
Re: Defining Max Players from server.cfg - by Jochemd - 16.02.2011, 15:46
Re: Defining Max Players from server.cfg - by Spectre - 17.02.2011, 02:14
Re: Defining Max Players from server.cfg - by Steven82 - 17.02.2011, 04:46
Re: Defining Max Players from server.cfg - by Cactus2010 - 17.02.2011, 05:01
Re: Defining Max Players from server.cfg - by Mean - 17.02.2011, 09:30
Re: Defining Max Players from server.cfg - by Sascha - 17.02.2011, 10:34

Forum Jump:


Users browsing this thread: 1 Guest(s)