ULX

Author Topic: Add users in users.txt  (Read 2396 times)

0 Members and 1 Guest are viewing this topic.

Offline eric1555

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Add users in users.txt
« on: December 23, 2010, 01:07:52 PM »
If I made a custom group such as "donator", how would I add them in users.txt (under settings)
My current layout:
Code: [Select]
"Users"
{
//
// This is your users file
//
// You can use this file to add people as admins on your server
// Add them to the relevant section
//
// If you're a Lua coder you can add your own sections and use them
// in your script by doing pl:IsUserGroup( "admin" ) etc
//
 
"superadmin"
{
"Ryan" "STEAM_0:1:12150295"
}
 
"admin"
{
"Ryan" "STEAM_0:1:12150295"
"Dokter L. Frieden" "STEAM_0:1:9479656"
"Psychelldic" "STEAM_0:0:20390684"
"Kontra" "STEAM_0:0:20552194"
"StealthHawk69" "STEAM_0:1:17430020"
"Nicomedo" "STEAM_0:1:13695153"
"Sinatra" "STEAM_0:1:25510838"
}
 
}

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Add users in users.txt
« Reply #1 on: December 23, 2010, 04:43:19 PM »
For now, I'm leaving this here. However, technically, you're asking a non-ULX related question (Off-Topic).
ULX uses it's own user and group files, imported from the file you're currently asking about/working with that Gmod uses.
You'd simply add an extra set of brackets inside the main two "Users" brackets
http://wiki.garrysmod.com/?title=Player_Groups

Don't add yourself twice. It confuses some poorly made scripts. (Leave yourself in the superadmin part, not admin)

Code below leaves out all the // comments.
Code: [Select]
"Users"
{
 
   "superadmin"
   {
      "Ryan"         "blah"
   }
 
   "admin"
   {
      "blah1"         "STEAM_blah1"
      "blah2"         "STEAM_blah2"
   }
   "donator"
   {
      "dblah1"         "STEAM_blah1"
      "dblah2"         "STEAM_blah2"
   }
 
}
{/code]
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming