Windrider739 wrote:I want to set up a whitelist and set it so only my current players can access the server. Then as my regular load wanes, I can turn it off for a few days. Right now I sit at 50+ players at all times, and I have over 60 people waiting to get in during Judgement Hour.
exec("basilmod/maxplayers/maxplayers.cs");
//Maximum number of players allowed
$BasilMod::MaxPlayers::MaxPlayers = 64;
//Reserved clots
$BasilMod::MaxPlayers::PrioritySlots = 40;
//Priority accounts (those are account IDs, not Character IDs)
$BasilMod::MaxPlayers::PriorityAccounts = "2 23 61"; //specify your constant players, you can add more than 40 players.
//Allow Priority players always join (even if no priority slots left)
$BasilMod::MaxPlayers::PriorityAlwaysJoin = true;
//Message to show when normal player to kick
$BasilMod::MaxPlayers::KickMessage = "Priority player joined server.";
Windrider739 wrote:This looks like it would be good. I've tried to use a few of your mods before and had mixed results with my players. Would this require them to download anything or alter any of their files?
Custodian wrote:Windrider739 wrote:I want to set up a whitelist and set it so only my current players can access the server. Then as my regular load wanes, I can turn it off for a few days. Right now I sit at 50+ players at all times, and I have over 60 people waiting to get in during Judgement Hour.
You can use BasilMod::MaxPlayers, which allow you to specify priority accounts who can connect the game.
Download both files, place them to "BasilMod/MaxPlayers/" folder, and add
- Code: Select all
exec("basilmod/maxplayers/maxplayers.cs");
to your server main.cs file.
For your purpose you can use following config.cs
- Code: Select all
//Maximum number of players allowed
$BasilMod::MaxPlayers::MaxPlayers = 64;
//Reserved clots
$BasilMod::MaxPlayers::PrioritySlots = 40;
//Priority accounts (those are account IDs, not Character IDs)
$BasilMod::MaxPlayers::PriorityAccounts = "2 23 61"; //specify your constant players, you can add more than 40 players.
//Allow Priority players always join (even if no priority slots left)
$BasilMod::MaxPlayers::PriorityAlwaysJoin = true;
This will result in 40 reserved slots for priority accounts, and 24 free slots for other players. Non-priority players will be unable to join the server, if no free slots available.
If PrioritySlots value equals MaxPlayers value, non-listed accounts players cannot join the server.
Leaf wrote:I'm assuming the priority players are identified by their steam 64 IDs?
etc?
$BasilMod::MaxPlayers::PriorityAccounts = "2 23 61";
Leaf wrote:This would let a priority account join and kick a random non-priority account to make an opening?
Te_quiero wrote:If we instal the Mod, no more player's number is indicated in the console. Besides, our restart-script as well as the alive check does not function any more
Any Idea how to fix it?
Te_quiero wrote:If we instal the Mod, no more player's number is indicated in the console.
//Message to show when normal player to kick
$BasilMod::MaxPlayers::KickMessage = "Priority player joined server.";
Ishamael wrote:Why update this? Nobody is going to need this when the MMO starts.