ULX

Author Topic: Help adding user groups to uteam  (Read 2409 times)

0 Members and 1 Guest are viewing this topic.

Offline johnlukeg

  • Newbie
  • *
  • Posts: 27
  • Karma: -1
Help adding user groups to uteam
« on: January 26, 2008, 11:15:55 PM »
Hi, I just added a group called police to my server, and all their functions work fine but they still show up as users in terms of model and health etc. even though I added police to uteam with their own section.

If it mattered, the way I added it was   ulx addgroup police user    I added user to the end because as I understand it, that gives them the typical user abilities inherited.

Here is my uteam file:   And I'll put Ulib below that.   Please dont link me to another post I've already looked and search as much as I can and noone's pseudo-similar problem helps me.

"Out"
{
   "teams"
   {
      "1"
      {
         "name"      "SuperAdmins"
         "group"      "superadmin"
         "armor"      "1337"
         "hp"      "1337"
         "color"
         {
            "a"      "255"
            "B"      "153"
            "g"      "153"
            "r"      "153"
         }
         "plytable"
         {
            "1"      "SprintSpeed:1000"
            "2"      "WalkSpeed:250"
         }
      }
      "2"
      {
         "name"      "Admins"
         "group"      "admin"
         "armor"      "500"
         "hp"      "500"
         "color"
         {
            "a"      "255"
            "B"      "50"
            "g"      "50"
            "r"      "255"
         }
         "model"      "prison"
      }
      "3"
      {
         "name"      "Operators"
         "group"      "operator"
         "armor"      "100"
         "hp"      "100"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "200"
            "r"      "255"
         }
         "model"      "male2"
      }
      "4"
      {
         "name"      "Players"
         "group"      "user"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "100"
            "r"      "0"
         }
         "model"      "male2"
      }
      "5"
      {
         "name"      "Police"
         "group"      "police"
         "armor"      "150"
         "hp"      "250"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "100"
            "r"      "170"
         }
         "model"      "police"
      }
      
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}

And my ULib:

"superadmin"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx hiddenecho"
      "ulx rcon"
      "ulx luarun"
      "ulx cexec"
      "ulx ent"
      "ulx adduser"
      "ulx removeuser"
      "ulx userallow"
      "ulx userdeny"
      "ulx addgroup"
      "ulx removegroup"
      "ulx groupallow"
      "ulx groupdeny"
      "overcomeimmunity"
   }
   "inherit_from"   
   {
      "admin"
   }
}
"admin"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulib_passtime"
      "ulib_passtimeout"
      "ulx spawnecho"
      "ulx tsay"
      "ulx csay"
      "ulx gimp"
      "ulx mute"
      "ulx ungimp"
      "ulx unmute"
      "ulx gag"
      "ulx ungag"
      "ulx chattime"
      "ulx welcomemessage"
      "ulx slap"
      "ulx whip"
      "ulx slay"
      "ulx sslay"
      "ulx ignite"
      "ulx unignite"
      "ulx playsound"
      "ulx freeze"
      "ulx unfreeze"
      "ulx god"
      "ulx ungod"
      "ulx noclip"
      "ulx hp"
      "ulx armor"
      "ulx cloak"
      "ulx uncloak"
      "ulx blind"
      "ulx unblind"
      "ulx jail"
      "ulx unjail"
      "ulx ghost"
      "ulx unghost"
      "ulx ragdoll"
      "ulx unragdoll"
      "ulx maul"
      "ulx strip"
      "ulx adminmenu"
      "ulx clientmenu"
      "ulx mapsmenu"
      "ulx showmotd"
      "ulx banmenu"
      "ulx exec"
      "ulx rslotsmode"
      "ulx rslots"
      "ulx rslotsvisible"
      "ulx reservedslots"
      "ulx bring"
      "ulx goto"
      "ulx send"
      "ulx teleport"
      "ulx tooldeny"
      "ulx toolallow"
      "ulx tooldenyuser"
      "ulx toolallowuser"
      "ulx tooldenyoverride"
      "ulx map"
      "ulx kick"
      "ulx ban"
      "ulx banid"
      "ulx unban"
      "ulx spectate"
      "ulx mingekick"
      "ulx physgunplayer"
      "ulx vote"
      "ulx votemap2"
      "ulx votekick"
      "ulx voteban"
      "ulx veto"
   }
   "inherit_from"   
   {
      "operator"
   }
}
"user"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx"
      "ulx help"
      "ulx psay"
      "ulx asay"
      "ulx thetime"
      "ulx menu"
      "ulx_valueupdate"
      "ulx_cvar"
      "ulx_getgamemodes"
      "ulx motd"
      "ulx_getbans"
      "ulx usermanagementhelp"
      "ulx who"
      "ulx votemap"
   }
   "inherit_from"   
   {
   }
}
"none"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx logecho"
      "ulx logfile"
      "ulx logevents"
      "ulx logchat"
      "ulx logspawns"
      "ulx logspawnsecho"
      "ulx logdir"
      "ulx addgimpsay"
      "ulx addadvert"
      "ulx addcsayadvert"
      "ulx addforceddownload"
      "ulx debuginfo"
      "ulx voteecho"
      "ulx votemap2successratio"
      "ulx votemap2minvotes"
      "ulx votekicksuccessratio"
      "ulx votekickminvotes"
      "ulx votebansuccessratio"
      "ulx votebanminvotes"
      "ulx votemapenabled"
      "ulx votemapmintime"
      "ulx votemapwaittime"
      "ulx votemapsuccessratio"
      "ulx votemapminvotes"
      "ulx votemapvetotime"
      "ulx votemapmapmode"
      "ulx votemapaddmap"
   }
   "inherit_from"   
   {
   }
}
"police"   
{
   "allow"   
   {
      "ulx kick"
      "ulx jail"
      "ulx unjail"
      "ulx ignite"
      "ulx unignite"
      "ulx mute"
      "ulx unmute"
      "ulx gag"
      "ulx ungag"
   }
   "deny"   
   {
   }
}
"operator"   
{
   "deny"   
   {
   }
   "allow"   
   {
      "ulx seeasay"
   }
   "inherit_from"   
   {
   }
}



Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Help adding user groups to uteam
« Reply #1 on: January 26, 2008, 11:55:06 PM »
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: January 26, 2008, 11:57:30 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline johnlukeg

  • Newbie
  • *
  • Posts: 27
  • Karma: -1
Re: Help adding user groups to uteam
« Reply #2 on: January 27, 2008, 12:22:29 AM »
Yeah I changed that so it's number 3, that wasnt the problem.  The problem was it wasn't showing the right model I set for it or color or HP etc.

Heres the current one (I guess I copied the wrong file which was in storage on my desktop)  Should I remove the police group and remake it without adding "user" at the end as the inheritence?

"Out"
{
   "teams"
   {
      "1"
      {
         "name"      "SuperAdmins"
         "group"      "superadmin"
         "armor"      "1337"
         "hp"      "1337"
         "color"
         {
            "a"      "255"
            "B"      "153"
            "g"      "153"
            "r"      "153"
         }
         "plytable"
         {
            "1"      "SprintSpeed:1000"
            "2"      "WalkSpeed:250"
         }
      }
      "2"
      {
         "name"      "Admins"
         "group"      "admin"
         "armor"      "500"
         "hp"      "500"
         "color"
         {
            "a"      "255"
            "B"      "50"
            "g"      "50"
            "r"      "255"
         }
         "model"      "prison"
      }
      "3"
      {
         "name"      "Police"
         "group"      "police"
         "armor"      "150"
         "hp"      "250"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "100"
            "r"      "170"
         }
         "model"      "police"
      }
      "4"
      {
         "name"      "Operators"
         "group"      "operator"
         "armor"      "100"
         "hp"      "100"
         "color"
         {
            "a"      "255"
            "B"      "0"
            "g"      "200"
            "r"      "255"
         }
         "model"      "male2"
      }
      "5"
      {
         "name"      "Players"
         "group"      "user"
         "color"
         {
            "a"      "255"
            "B"      "255"
            "g"      "100"
            "r"      "0"
         }
         "model"      "male2"
      }
      
   }
   "gamemodes"
   {
      "1"      "Sandbox"
      "2"      "SpaceBuild"
   }
}
« Last Edit: January 27, 2008, 12:24:08 AM by johnlukeg »

Offline huggybear4sh

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Help adding user groups to uteam
« Reply #3 on: February 24, 2008, 02:32:42 PM »
Where did you your Ulib?