ULX

Author Topic: Groups not working (I have searched!)  (Read 1996 times)

0 Members and 1 Guest are viewing this topic.

Offline Ghezzo

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Groups not working (I have searched!)
« on: June 16, 2009, 12:36:25 AM »
Hey, I added some groups in the UTeam.txt file but they dont seem to work :/


Code: [Select]
"Out"
{
"teams"
{
"1"
{
"name" "Super Admin"
"group" "superadmin"
"armor" "1000"
"hp" "1000"
"color"
{
"a" "255"
"B" "0"
"g" "0"
"r" "255"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
"2"
{
"name" "Admin"
"group" "admin"
"armor" "500"
"hp" "500"
"color"
{
"a" "255"
"B" "102"
"g" "0"
"r" "204"
}
}
"3"
{
"name" "Moderator"
"group" "operator"
"armor" "350"
"hp" "350"
"color"
{
"a" "255"
"B" "0"
"g" "166"
"r" "20"
}
}
"4"
{
"name" "Player"
"group" "user"
"armor" "150"
"hp" "150"
"color"
{
"a" "255"
"B" "255"
"g" "100"
"r" "0"
}
"model" "male1"
}
"5"
{
"name" "Guest"
"group" "guest"
"armor" "100"
"hp" "100"
"color"
{
"a" "255"
"B" "248"
"g" "167"
"r" "255"
}
"model" "male1"
}
        "6"
{
"name" "Respected"
"group" "respected"
"armor" "200"
"hp" "200"
"color"
{
"a" "255"
"B" "255"
"g" "0"
"r" "174"
}
"model" "male1"
}
        "7"
{
"name" "Ascendant"
"group" "ascendant"
"armor" "250"
"hp" "250"
"color"
{
"a" "255"
"B" "255"
"g" "34"
"r" "60"
}
"model" "male1"
}
        "8"
{
"name" "VIP"
"group" "vip"
"armor" "300"
"hp" "300"
"color"
{
"a" "255"
"B" "0"
"g" "228"
"r" "255"
}
"model" "male1"
}
}
"gamemodes"
{
"1" "Sandbox"
"2" "SpaceBuild"
}
}


I placed the file in a code thingy :)

Only superadmin, admin and operator is working.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Groups not working (I have searched!)
« Reply #1 on: June 16, 2009, 04:56:26 PM »
Put the changes you made above the 'user' group (and renumber)
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Groups not working (I have searched!)
« Reply #2 on: June 16, 2009, 09:13:22 PM »
I was in the middle of posting what Megiddo said in a different way... then got interupted for several hours.
But, Most likely from not paying attention to other important details
from the actual UTime release post ;
Notes:
  • Usergroups can be set through Garry's default file (garrysmod/settings/users.txt), or through ULib/ULX.
  • Groups take priority based on their order(1 is highest priority). Set your teams based on decending group level so users don't get put on a lower team. (ie. If admin is before superadmin, superadmins will end up on admin team instead of superadmin team)
  • Use group "user" as your last team to catch everyone who wasn't put on another team.

« Last Edit: June 16, 2009, 09:16:12 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Ghezzo

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Groups not working (I have searched!)
« Reply #3 on: June 17, 2009, 12:20:28 AM »
Thanks, didnĀ“t know that :)