17.02.2011, 09:30
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;
}