Author Topic: leveling system automatically adds to ULX group  (Read 1874 times)

0 Members and 1 Guest are viewing this topic.

Offline [NG:A] The Skrub King

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
leveling system automatically adds to ULX group
« on: October 15, 2015, 09:26:33 AM »
Hello,

Basically I have the leveling system for my for DarkRP server, and I have 2 questions.

1. How can I get it so that a player get's to a certain level on the leveling system, like Level 10 for example, and once they hit Level 10 they are automatically added to a ULX group called Trusted, even after they go past level 10, so it stays like that?

2. Also how can I get it so that when people reach a certain level for example: Level 6, and once they have reached that level or above, they get access to tools like Stacker, precision, Door S tool, and Advanced Duplicator 2, and they keep the access to the tools even after Level 6?

Thanks Luke

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: leveling system automatically adds to ULX group
« Reply #1 on: October 15, 2015, 03:14:31 PM »
Not possible with ULX by default - you'd have to create Lua code to do all this for you.
Moved your topic to developers corner.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline [NG:A] The Skrub King

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Re: leveling system automatically adds to ULX group
« Reply #2 on: October 17, 2015, 04:09:40 AM »
Okay, thanks, but how do I make the LUA code, I have no clue how to produce that code, could you suggest where I could get help from to make this, or who could make it for me?

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: leveling system automatically adds to ULX group
« Reply #3 on: October 18, 2015, 12:39:28 AM »
You do it with hooks. Upon the level up event, if the level is 10, then add the user to the wanted group.
Once you get to know me, you'll find you'll have never met me at all.