Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: eric1555 on December 23, 2010, 01:07:52 PM

Title: Add users in users.txt
Post by: eric1555 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"
}
 
}
Title: Re: Add users in users.txt
Post by: JamminR 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]