Results 1 to 1 of 1
  1. #1
    Community Contributor
    Join Date
    Mar 2011
    Location
    Holland
    Posts
    787

    ASS -- Adaptive Server Size -- Proconrulz

    Hey guys, since i have read that the plugin ASS, could cause some blackscreens i wrote a simple basic proconrulz set, That only sets the serversize during match.

    When the match is ended it turns off the ASS, and when next map is loaded and first player has spawned, ASS is turned on again.

    REMINDER!!!!!!!

    - I just wrote it, so it is NOT fully tested. The setting for 0 players wont work since i trigger on On Spawn, but there is none to spawn :P :P, so at the end the server will probably stick at the setting for 1 player, i have to look at this.

    Sooo , dont attack me if it isnt working properly, its just like BF4, some bugs here and there!!


    In the future (to morrow :P ) i can add the disable idle time settings, and many more what you guys want

    At the last section just change the number after the %ini_server_players% ==

    ##### Total players #####
    On Spawn;PlayerOnce;Incr %ini_server_players%;Set %ini_server_trigger% 1
    On Leave;Decr %ini_server_players%
    On Spawn;If %ini_server_trigger% == 0;Log ASS --- NOTHING TO DO !!! --- Total players online: %ini_server_players%

    ##### ASS settings to turn of ASS and turn it back on #####
    On RoundOver;Set %ini_server_switchlevel% 1;Log ASS --- Loading new map --- ASS is shut off temporary !!!
    On Spawn;ServerFirst;Set %ini_server_switchlevel% 0;Log ASS --- New map loaded --- ASS is turned on !!!

    ##### Setup serversize Here you can set your desired server size#####
    On Spawn;If %ini_server_switchlevel% == 0;If %ini_server_trigger% == 1
    If %ini_server_players% == 0;Exec vars.maxPlayers 5;Set %ini_server_trigger% 0
    If %ini_server_players% == 1;Exec vars.maxPlayers 6;Set %ini_server_trigger% 0
    If %ini_server_players% == 2;Exec vars.maxPlayers 7;Set %ini_server_trigger% 0
    If %ini_server_players% == 3;Exec vars.maxPlayers 8;Set %ini_server_trigger% 0
    If %ini_server_players% == 4;Exec vars.maxPlayers 9;Set %ini_server_trigger% 0
    If %ini_server_players% == 5;Exec vars.maxPlayers 10;Set %ini_server_trigger% 0
    If %ini_server_players% == 6;Exec vars.maxPlayers 11;Set %ini_server_trigger% 0
    If %ini_server_players% == 7;Exec vars.maxPlayers 12;Set %ini_server_trigger% 0
    If %ini_server_players% == 8;Exec vars.maxPlayers 13;Set %ini_server_trigger% 0
    If %ini_server_players% == 9;Exec vars.maxPlayers 14;Set %ini_server_trigger% 0
    If %ini_server_players% == 10;Exec vars.maxPlayers 15;Set %ini_server_trigger% 0
    If %ini_server_players% == 11;Exec vars.maxPlayers 16;Set %ini_server_trigger% 0
    If %ini_server_players% == 12;Exec vars.maxPlayers 17;Set %ini_server_trigger% 0
    If %ini_server_players% == 13;Exec vars.maxPlayers 18;Set %ini_server_trigger% 0
    If %ini_server_players% == 14;Exec vars.maxPlayers 19;Set %ini_server_trigger% 0
    If %ini_server_players% == 15;Exec vars.maxPlayers 20;Set %ini_server_trigger% 0
    If %ini_server_players% == 16;Exec vars.maxPlayers 21;Set %ini_server_trigger% 0
    If %ini_server_players% == 17;Exec vars.maxPlayers 22;Set %ini_server_trigger% 0
    If %ini_server_players% == 18;Exec vars.maxPlayers 23;Set %ini_server_trigger% 0
    If %ini_server_players% == 19;Exec vars.maxPlayers 24;Set %ini_server_trigger% 0
    If %ini_server_players% == 20;Exec vars.maxPlayers 25;Set %ini_server_trigger% 0
    If %ini_server_players% == 21;Exec vars.maxPlayers 26;Set %ini_server_trigger% 0
    If %ini_server_players% == 22;Exec vars.maxPlayers 27;Set %ini_server_trigger% 0
    If %ini_server_players% == 23;Exec vars.maxPlayers 28;Set %ini_server_trigger% 0
    If %ini_server_players% == 24;Exec vars.maxPlayers 29;Set %ini_server_trigger% 0
    If %ini_server_players% == 25;Exec vars.maxPlayers 30;Set %ini_server_trigger% 0
    If %ini_server_players% == 26;Exec vars.maxPlayers 31;Set %ini_server_trigger% 0
    If %ini_server_players% == 27;Exec vars.maxPlayers 32;Set %ini_server_trigger% 0
    If %ini_server_players% == 28;Exec vars.maxPlayers 33;Set %ini_server_trigger% 0
    If %ini_server_players% == 29;Exec vars.maxPlayers 34;Set %ini_server_trigger% 0
    If %ini_server_players% == 30;Exec vars.maxPlayers 35;Set %ini_server_trigger% 0
    If %ini_server_players% == 31;Exec vars.maxPlayers 36;Set %ini_server_trigger% 0
    If %ini_server_players% == 32;Exec vars.maxPlayers 37;Set %ini_server_trigger% 0
    If %ini_server_players% == 33;Exec vars.maxPlayers 38;Set %ini_server_trigger% 0
    If %ini_server_players% == 34;Exec vars.maxPlayers 39;Set %ini_server_trigger% 0
    If %ini_server_players% == 35;Exec vars.maxPlayers 40;Set %ini_server_trigger% 0
    If %ini_server_players% == 36;Exec vars.maxPlayers 41;Set %ini_server_trigger% 0
    If %ini_server_players% == 37;Exec vars.maxPlayers 42;Set %ini_server_trigger% 0
    If %ini_server_players% == 38;Exec vars.maxPlayers 43;Set %ini_server_trigger% 0
    If %ini_server_players% == 39;Exec vars.maxPlayers 44;Set %ini_server_trigger% 0
    If %ini_server_players% == 40;Exec vars.maxPlayers 45;Set %ini_server_trigger% 0
    If %ini_server_players% == 41;Exec vars.maxPlayers 46;Set %ini_server_trigger% 0
    If %ini_server_players% == 42;Exec vars.maxPlayers 47;Set %ini_server_trigger% 0
    If %ini_server_players% == 43;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 44;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 45;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 46;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 47;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 48;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 49;Exec vars.maxPlayers 44;Set %ini_server_trigger% 0
    If %ini_server_players% == 50;Exec vars.maxPlayers 45;Set %ini_server_trigger% 0
    If %ini_server_players% == 51;Exec vars.maxPlayers 46;Set %ini_server_trigger% 0
    If %ini_server_players% == 52;Exec vars.maxPlayers 47;Set %ini_server_trigger% 0
    If %ini_server_players% == 53;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 54;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 55;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 56;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 57;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 58;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 59;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 60;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 61;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 62;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 63;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0
    If %ini_server_players% == 64;Exec vars.maxPlayers 48;Set %ini_server_trigger% 0




 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •