Author Topic: How to set reserved slots?  (Read 1847 times)

0 Members and 1 Guest are viewing this topic.

Offline Crackium

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
How to set reserved slots?
« on: August 27, 2016, 06:09:35 PM »
Okay, so I want to set my server like so:
                I have twelve slots. I want admins and donators to have reserved slots. For example, lets say the server is completely full with 12 slots of just normal non admins/ non donors. If a donor or admin attempts to join, I want 1 of the 12 users on my server to be automatically kicked to make room for the admin/donor. Once that admin/donor leaves, the slot is open to anyone again. I know I have to do something in the config.txt. of ULX, but I'm still lost.

EDIT: I have the donator and admin ranks created already, I just want the people in those groups to have reserved slots
« Last Edit: August 27, 2016, 06:11:23 PM by Crackium »

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: How to set reserved slots?
« Reply #1 on: August 27, 2016, 06:58:29 PM »
Xgui settings tab.

Make sure those ranks have the rslots perm.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: How to set reserved slots?
« Reply #2 on: August 27, 2016, 09:51:23 PM »
Indeed. XGui settings is the location. reserved slot permission is what you want.
However, it's not going to be quite like you want it.
You can't have a full server and have someone join by using the server menu in game and have a person on the server kicked.
But you can get close.

See this info from our config.txt lua file. (Start at line 128)
https://github.com/TeamUlysses/ulx/blob/0db8007ceb4a49e22c2bb191d1e16d423851f21e/lua/ulx/data.lua#L128

I recommend using mode 2, and have the rslots visible mode off, and make sure your special groups know to use "connect <yourIP:yourPort>" to connect if it's 'full'.

« Last Edit: August 27, 2016, 09:55:13 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline roastchicken

  • Respected Community Member
  • Sr. Member
  • *****
  • Posts: 476
  • Karma: 84
  • I write code
Re: How to set reserved slots?
« Reply #3 on: August 28, 2016, 06:51:14 AM »
I actually think mode 3 is closest to what they want. It will be what they described, other than the fact that they lose 1 slot.
Give a man some code and you help him for a day; teach a man to code and you help him for a lifetime.

Offline Crackium

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: How to set reserved slots?
« Reply #4 on: August 28, 2016, 01:02:16 PM »
Thanks guys.