Tovath Posted April 15, 2015 Share Posted April 15, 2015 I was wondering if there are plans to add the ability for Reserved Slots on a server, that way you can have several slots for specific players only so they can always get in. Link to comment Share on other sites More sharing options...
DarkXero Posted April 15, 2015 Share Posted April 15, 2015 Maybe it could be done like this? Using the ids, like you would put them in adminlist.TheNet = GLOBAL.TheNet local server_size = 6 local slots = { id1 = "out", id2 = "out"} AddPrefabPostInit("forest", function(inst) inst:ListenForEvent("ms_playerjoined", function(inst, player) local id = player.Network:GetUserID() if slots[id] then slots[id] = "in" else local size = server_size for k, v in pairs(slots) do if v == "out" then size = size - 1 end end if TheNet:GetPlayerCount() > size then TheNet:Kick(id) end end end) inst:ListenForEvent("ms_playerleft", function(inst, player) local id = player.Network:GetUserID() if slots[id] then slots[id] = "out" end end)end) Link to comment Share on other sites More sharing options...
Tovath Posted April 15, 2015 Author Share Posted April 15, 2015 Would this be in a custom mod attached to the server than, or are you just supposing how they might add it officially? Link to comment Share on other sites More sharing options...
DarkXero Posted April 15, 2015 Share Posted April 15, 2015 Custom mod. Officially, I don't know. But they could make a reservelist.txt, like adminlist.txt, where you put ids and the game applies the same logic to block slots for people trying to join. Link to comment Share on other sites More sharing options...
Tovath Posted April 18, 2015 Author Share Posted April 18, 2015 Yea I would like to see it be offical, but once it is out of beta it should become clearer what will and won't be included. Link to comment Share on other sites More sharing options...
Developer SethR Posted April 21, 2015 Developer Share Posted April 21, 2015 We're starting to work on something along these lines now Link to comment Share on other sites More sharing options...
Tovath Posted April 27, 2015 Author Share Posted April 27, 2015 Awesome Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.