Ulysses Stuff > Ulysses Release Archives
UPA 1.1
ShaRose:
One thing about ULX that always put me off was that to password accounts you had to go into users.txt and add it yourself. So, I made UPA. It's really simple, it makes a new concommand called AddPassUser that lets you add users that auth by name, ip, or steamid, with a password. Here's how to use it, almost CP'ed from the console.
--- Code: ---ulx addpassuser <user> <group> <type> <pass> <pass_req> <immunity>
user - The user to add [name]
group - Choose "operator", "admin", or "superadmin"
type - Whether to use IP, Name, or steamid to auth [ip/name/steamid]
pass - The user's desired password. Needs 5-20 chars. [password]
pass_req - whether they need a password to stay in the server, or be kicked. (Optional) [0/1]
immunity - Should this player have immunity? Note that superadmins override other players' immunity. (Optional) [0/1]
This user WILL be added to the permanent users list!
If the players's already added, it will clear their allow/deny list.
Operators have no default access. This makes them great for "ulx userallow".
--- End code ---
And now in version 1.1, AddForcedPassUser is here, with the ability to add users that aren't on the server!
--- Code: ---ulx addforcedpassuser <name> <ID> <group> <pass> <pass_req> <immunity>
name - The comment the ulx will use to name the player [string]
ID - The user to add [player ip/player name/player steamid]
group - Choose "operator", "admin", or "superadmin"
pass - The user's desired password. Needs 5-20 chars. [password]
pass_req - whether they need a password to stay in the server, or be kicked. (Optional) [0/1]
immunity - Should this player have immunity? Note that superadmins override other players' immunity. (Optional) [0/1]
This user will be added to the permanent users list
The user does not need to be in the server for this
If the players's already added, it will clear their allow/deny list.
Operators have no default access. This makes them great for "ulx userallow".
--- End code ---
the ulx team (I copy pasted most of the code from the default adduser command)
zakap (gave me the idea for AddForcedPassUser)
It's now an addon :D
Enjoy!
JamminR:
Wow. Nice.
Thanks for the contribution ShaRose.
Did Megiddo contact you and ask you to submit this to our forums? He stumbled across another version of it I think using Google.
All, this would best be placed in your /addons/ulx/lua/ulx/modules folder
Megiddo:
Wow, that's ironic. I just posted your code in our private forums a couple days ago...
Good work though!
ShaRose:
@JamminR: No, And it IS suposed to go in /addons/ulx/lua/ulx/modules. Forgot to say so :P
@Megiddo: Thanks!
JamminR:
ShaRose, I figured as much. Might even consider making it an addon format. :)
I know, I know. Some would consider an addon for an addon a bit over-kill, but it really does make it easier to manage if one should decide to erase the ULX addon folder to re-install or something.
It is funny though about you posting it. Meg found it last week and mentioned it.
Navigation
[0] Message Index
[#] Next page
Go to full version