Author Topic: UPA 1.1  (Read 8494 times)

0 Members and 1 Guest are viewing this topic.

Offline ShaRose

  • Newbie
  • *
  • Posts: 6
  • Karma: 2
UPA 1.1
« 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!

« Last Edit: December 08, 2007, 12:10:32 PM by ShaRose »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UPA
« Reply #1 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


"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: UPA
« Reply #2 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!
Experiencing God's grace one day at a time.

Offline ShaRose

  • Newbie
  • *
  • Posts: 6
  • Karma: 2
Re: UPA
« Reply #3 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!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: UPA
« Reply #4 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: UPA
« Reply #5 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.


Offline ShaRose

  • Newbie
  • *
  • Posts: 6
  • Karma: 2
Re: UPA
« Reply #6 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)

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: UPA
« Reply #7 on: December 04, 2007, 03:23:41 PM »
ONOES!


Offline ShaRose

  • Newbie
  • *
  • Posts: 6
  • Karma: 2
Re: UPA
« Reply #8 on: December 07, 2007, 06:00:54 PM »
Updated :D

Now has AddForcedPassUser

Addon format