The concommand method:ULX now includes an "adduser" command. The help for this command is:
ulx adduser <user> <group> [<immunity>]
user - The user to add
group - Choose "operator", "admin", or "superadmin"
immunity - Should this player have immunity? Note that superadmins override other players' immunity.
This user WILL be added to the permanent users list!
If the player is already added, it will clear their allow/deny list.
Operators have no default access. This makes them great for "ulx userallow".
So, if I wanted to add user bob to the superadmins with immunity I would enter at console "ulx adduser bob superadmin 1".
Or, if I only wanted bob to have access to "ulx slap", I would first use "ulx adduser bob operator", then 'ulx userallow bob "ulx slap"'. (Make sure you have the quotes around "ulx slap").
Even if you don't have any access, you can use this command from a listen server console or a dedicated server console.The file method:There are two ways to add users in ULib. You can add them to our file in data/ULib/users.txt or you can add users to the default GM10 admin file. Do the complexity of our users file, and the benefits of adding users to the default file, we will only worry about the default file here.
See
http://wiki.garrysmod.com/?title=Player_Groups for how to edit the default Garry's mod user file. Our admin library imports from it.
[Edit-JamminR]- Changed link to editing default users.txt file - Wiki changed[Edit-JamminR]- Changed link to editing default users.txt file - Wiki changed again