Ulysses

Ulysses Stuff => Releases => Ulysses Release Archives => Topic started by: ShaRose on December 03, 2007, 03:32:22 PM

Title: UPA 1.1
Post by: ShaRose on December 03, 2007, 03:32:22 PM
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: [Select]
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".

And now in version 1.1, AddForcedPassUser is here, with the ability to add users that aren't on the server!

Code: [Select]
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".

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!

Title: Re: UPA
Post by: JamminR on December 03, 2007, 06:00:00 PM
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


Title: Re: UPA
Post by: Megiddo on December 03, 2007, 06:23:50 PM
Wow, that's ironic. I just posted your code in our private forums a couple days ago...

Good work though!
Title: Re: UPA
Post by: ShaRose on December 03, 2007, 07:28:58 PM
@JamminR: No, And it IS suposed to go in /addons/ulx/lua/ulx/modules. Forgot to say so :P

@Megiddo: Thanks!
Title: Re: UPA
Post by: JamminR on December 03, 2007, 09:41:54 PM
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.
Title: Re: UPA
Post by: Golden-Death on December 03, 2007, 10:50:30 PM
Cookies.

Sorry, all these help threads and such bore me. I need spontaneousness.

Holy cheese, spontaneousness is a word.
Title: Re: UPA
Post by: ShaRose on December 04, 2007, 02:52:09 PM
@JamminR: It wouldn't be that hard. Sure :P

@Golden-Death: VIOLINS ARE COMING FROM THIS GUY'S BUTT -> :O (He's screaming in pain, violin's coming out of one's butt hurts)
Title: Re: UPA
Post by: Golden-Death on December 04, 2007, 03:23:41 PM
ONOES!
Title: Re: UPA
Post by: ShaRose on December 07, 2007, 06:00:54 PM
Updated :D

Now has AddForcedPassUser

Addon format