ULX

Author Topic: APromote GUI  (Read 36961 times)

0 Members and 1 Guest are viewing this topic.

Offline Lead4u

  • Newbie
  • *
  • Posts: 9
  • Karma: 5
APromote GUI
« on: June 23, 2011, 03:08:53 PM »

Updated!!!

APromote GUI is a GUI/Real time alternative to the standard AutoPromote offered here.

Features:
  • XGUI Menu Integration
  • ULX Access Permission
  • Enable/Disable
  • Rankup Sound (Global/Local)
  • Confetti!
  • Option to disable auto demotion if current rank is higher than your hour rank

Requires:
  • ULX 3.51 or SVN
  • UTime

Special thanks to Stickly Man for putting up with all my questions <3.


Subscribe here: http://steamcommunity.com/sharedfiles/filedetails/?id=226312488
« Last Edit: February 09, 2014, 10:43:12 AM by Lead4u »

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: APromote GUI
« Reply #1 on: June 23, 2011, 03:20:28 PM »
Very nice! Glad you finally got a post here :P I hope many people find it useful! (and it uses XGUI! :D)
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: APromote GUI
« Reply #2 on: June 23, 2011, 08:05:07 PM »
The confetti isn't a lie!
Surprise! *sounds of party horns*
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline krooks

  • Sr. Member
  • ****
  • Posts: 382
  • Karma: 32
  • I don't like video games.
    • Diamond Krooks
Re: APromote GUI
« Reply #3 on: June 24, 2011, 05:59:55 PM »
Awesome job!
Someone should create an addon that does confetti anytime anyone is promoted/demoted by any means, that's such a cool feature!
My TTT server. Join the fun!

Offline ThatBum

  • Newbie
  • *
  • Posts: 14
  • Karma: 2
Re: APromote GUI
« Reply #4 on: July 10, 2011, 08:36:13 PM »
The message when someone gets promoted is sort of ugly, just the Ulib "Console added X to group Y" message. It would be nice to have the original AutoPromote message when someone gets promoted.

Offline Lead4u

  • Newbie
  • *
  • Posts: 9
  • Karma: 5
Re: APromote GUI
« Reply #5 on: July 12, 2011, 11:23:54 AM »
I couldn't find any obvious way to get rid of the original message without causing a Lua error, and I didn't like having two messages... if someone here could suggest a way to suppress the console message I'm more than willing to change it.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
APromote GUI
« Reply #6 on: July 12, 2011, 02:30:10 PM »
ULib.ucl.addUser I believe? The docs are at http://ulyssesmod.net/docs
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: APromote GUI
« Reply #7 on: July 12, 2011, 02:33:40 PM »
Bah, Megiddo sniped me while I was typing.
My original response. (Which, is essentially what Megiddo said in so few words)
-------------
Take a copy of the ulx function that you use to modify access (presumably, adduser), localize it (local function myPromote(...) ) pass it the parameters you need yourself, making sure they are checked for validity before being passed (ulx adduser does this already, but, you aren't going to make it a console command like we do)... run the function when needed with passed parameters.
You can edit the fancylog and log statements as needed within your own copy.

Now that I've said that, Megiddo and maybe even MrPresident will have a much simpler solution. :)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: APromote GUI
« Reply #8 on: July 12, 2011, 02:39:46 PM »
You'll need this and this.

EDIT:  I'll write if up if you need.
« Last Edit: July 12, 2011, 02:54:58 PM by Aaron113 »

Offline sweetone

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 2
Re: APromote GUI
« Reply #9 on: December 19, 2011, 04:38:36 PM »
Propably fun addon but we don't have working download link. :<

Offline Lead4u

  • Newbie
  • *
  • Posts: 9
  • Karma: 5
Re: APromote GUI
« Reply #10 on: December 19, 2011, 07:55:06 PM »
Its hosted on garrysmod.org which is down right now.

Offline sweetone

  • Jr. Member
  • **
  • Posts: 63
  • Karma: 2
Re: APromote GUI
« Reply #11 on: December 19, 2011, 08:12:41 PM »
Its hosted on garrysmod.org which is down right now.

Thanks :D

Offline strk9

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: APromote GUI
« Reply #12 on: February 19, 2012, 10:16:52 PM »
hmmm... is there any way that i can make it to where i assign the group and after a certain amount of time lets say 720 hours or 1 month it demotes them back to guest?

Offline Lead4u

  • Newbie
  • *
  • Posts: 9
  • Karma: 5
Re: APromote GUI
« Reply #13 on: February 21, 2012, 01:02:59 PM »
Not with this addon no.

Offline Xtreon

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: APromote GUI
« Reply #14 on: August 17, 2012, 04:24:06 PM »
Thank you very much, I love this add-on and my server would not be the same without it.

Some suggestions that would make this add-on more popular and way better are:

1) Add an optional Fanfare sound at rank up.
2) Add an optional center screen display for the player that ranked up displaying Customised details about that rank or whatever the owner or whoever is running the add-on settings decides. Example: The owner can make text pop up in the center of the screen for player who ranked up saying whatever is set to say when that rank is added. also the owner can optionally make it display different text in the center of all other players screens than the player that ranked up. (So person X will rank up and see details about his rank or whatever is set while everyone else sees "Player X is now in the rank "rankname" or whatever the custom message is)


Another thing that would  be the most important thing to add is: to kill the player that ranked up, this is because if you have it so that a certain rank has certain weapons, when they first join the server or there next rank has a different loadout then their current one, they have all weapons/old weapons until they reconnect to the server or are killed. (I'm using URS to set loadouts and restrictions)