Author Topic: Change Default Server Group  (Read 2596 times)

0 Members and 1 Guest are viewing this topic.

Offline Dartouious

  • Newbie
  • *
  • Posts: 19
  • Karma: -7
Change Default Server Group
« on: August 19, 2016, 09:11:44 PM »
Is it possible to change the default group player are set to when joining a server. Currently is it set to user. Possible to change that to a different custom rank? If so, How?

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Change Default Server Group
« Reply #1 on: August 19, 2016, 09:19:42 PM »
You could probably make a script that automatically adds them to a group. I don't think there is a way to change the default group, though. If you don't know how to do that, just lmk
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Dartouious

  • Newbie
  • *
  • Posts: 19
  • Karma: -7
Re: Change Default Server Group
« Reply #2 on: August 19, 2016, 09:28:12 PM »
Im not fluent enough in lua to do that. It should only be a few lines script. Next issue i would need to know is where to put that. Could you possible help?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Change Default Server Group
« Reply #3 on: August 19, 2016, 09:29:56 PM »
This has been answered before in developers corner or off topic I think. Forget where, just know it's been asked.
Gmod expects plain user to be "user", else it's custom, and requires special storage.
It's not recommended, as after about 50 joins, the server would start lagging every time someone joined with the size of the users file.

This is not a ULX question.
Moving to Offtopic for now
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Dartouious

  • Newbie
  • *
  • Posts: 19
  • Karma: -7
Re: Change Default Server Group
« Reply #4 on: August 19, 2016, 09:32:52 PM »
Alright. It would hurt the server if it had them join another rank automatically would it?

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Change Default Server Group
« Reply #5 on: August 19, 2016, 09:35:57 PM »
Yeah, what JamminR said... if you did have something that added someone to a different group it would fill up that group in the users.txt and it would become a really (and I mean really) big file... One way I could think is removing someone from the group every time they leave, and add them back when then join... but I think that would cause a lot of lag on connect/disconnect, too... not sure.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline Dartouious

  • Newbie
  • *
  • Posts: 19
  • Karma: -7
Re: Change Default Server Group
« Reply #6 on: August 19, 2016, 09:43:01 PM »
The server I'm working with is a MilitaryRP server. So everyone gets added to a different Rank/Group when they join anyways. But I have to add them to it. I'm trying to have it so I don't have to add them to it when they do.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Change Default Server Group
« Reply #7 on: August 19, 2016, 09:45:31 PM »
Don't use group changes.
Learn to use teams instead.
Teams were meant for what you're describing.
Groups were intended for server administration access levels.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming