ULX

Author Topic: Selfcommands for ULX  (Read 24640 times)

0 Members and 2 Guests are viewing this topic.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Selfcommands for ULX
« on: December 05, 2007, 12:12:19 AM »
after doing a little research with the user add modification I did, I felt a little more comfortable with lua syntax so I ventured even farther and did something I've been wanting to do for a while.

On my server, I have donators who in turn will receive privileges in the form of some fun ULX commands. However I've had issues in the past where some people would abuse these commands since they could be used on other players. So here is a list of commands that I created/modified from the origionals that will now only work on the person who uses it.

ulx ragdollme (!ragdollme)
ulx unragdollme (!unragdollme)
ulx teleportme (!tpme) *this is the way it used to be... its an awesome command but people would abuse it really bad since they would use it to teleport other people around..
ulx godme (!godme)
ulx ungodme (!ungodme)
ulx hpme (!hpme)
ulx cloakme (!cloakme)
ulx uncloakme (!uncloakme)

These commands are default to admin access so it makes them good for ulx userallow.

Nothing much, I know.. but it is something I'm going to use on my server and I thought maybe someone else might like it too! =)

btw.. drop the lua file in garrysmod/addons/ULX/lua/ULX/Modules
« Last Edit: December 05, 2007, 01:02:20 AM by zakap »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Selfcommands for ULX
« Reply #1 on: December 07, 2007, 12:40:34 PM »
Fyi, we're using this on our server now. Thanks! :)
Experiencing God's grace one day at a time.

Offline blacksythe

  • Newbie
  • *
  • Posts: 38
  • Karma: -1
Re: Selfcommands for ULX
« Reply #2 on: December 08, 2007, 02:05:59 PM »
wow thanks now i can reward loyal players

Offline Sc00by22

  • Jr. Member
  • **
  • Posts: 98
  • Karma: 0
Re: Selfcommands for ULX
« Reply #3 on: May 10, 2008, 01:30:30 AM »
Thanks, Going to use this

brocko

  • Guest
Re: Selfcommands for ULX
« Reply #4 on: June 03, 2008, 09:12:44 PM »
Where can I get this? Looks sweet.

Offline brocko

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Selfcommands for ULX
« Reply #5 on: June 03, 2008, 09:16:50 PM »
Never mind, figured out I had to register. Pretty noob lol

Nice job on that though.

Offline saintmark

  • Newbie
  • *
  • Posts: 27
  • Karma: 1
Re: Selfcommands for ULX
« Reply #6 on: June 04, 2008, 02:38:18 AM »
This is very nice !!
Running it on my server

Offline factice

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: Selfcommands for ULX
« Reply #7 on: August 06, 2008, 05:23:51 AM »
There is something I don't understand :

I'm the Superadmin on my server, but if I ragdoll someone, can he unragdoll himself ?  ???

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Selfcommands for ULX
« Reply #8 on: August 06, 2008, 06:17:35 AM »
If you give them permission to, yes.
Experiencing God's grace one day at a time.

Offline Dv2236

  • Jr. Member
  • **
  • Posts: 89
  • Karma: 0
    • MyGamingVoid
Re: Selfcommands for ULX
« Reply #9 on: August 06, 2008, 11:20:03 AM »
Nice, you got my download! I also just got done making a hole new group/team system in my server too ^_^

Offline tas

  • Newbie
  • *
  • Posts: 20
  • Karma: 3
  • NG Clan Administrator
    • Nocturnal Gaming
Re: Selfcommands for ULX
« Reply #10 on: September 18, 2008, 07:52:42 AM »
Hey thanks, this is just what I was looking for! I have a vip group on my server, and because I diddnt want them messing with other players, all I gave them was "ungimp, goto, unignite, un... etc". This will help tremendously.

I will add to my server later. Is there anything I need to edit/add to the groups.txt in data to give them the privileges?
Malum consilium quod mutari non potest.

Someone once said "Don't try to be a great man. Just be a man, and let history make its own judgment."
That's rhetorical nonsense. Who said that?
You did, ten years from now
--Star Trek, First Contact


Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Selfcommands for ULX
« Reply #11 on: September 18, 2008, 08:04:20 AM »
No, the commands add themselves to group.txt under admin privs.
Experiencing God's grace one day at a time.

Offline tas

  • Newbie
  • *
  • Posts: 20
  • Karma: 3
  • NG Clan Administrator
    • Nocturnal Gaming
Re: Selfcommands for ULX
« Reply #12 on: September 18, 2008, 08:16:14 AM »
Great, so if I want to give them to mods or vip's, I can just move them down to that user group. The inherit should take care of the rest of the chain.

Thank you.
Malum consilium quod mutari non potest.

Someone once said "Don't try to be a great man. Just be a man, and let history make its own judgment."
That's rhetorical nonsense. Who said that?
You did, ten years from now
--Star Trek, First Contact


Offline Frozen

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Selfcommands for ULX
« Reply #13 on: December 17, 2008, 08:56:43 AM »
Sorry but I don't quite understand...
How do I give people access to the commands? :-\

EDIT:
I tried simply adding "ulx ragdollme" and others to the allow section of a group, didn't work
« Last Edit: December 17, 2008, 12:03:43 PM by Frozen »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Selfcommands for ULX
« Reply #14 on: December 17, 2008, 06:43:00 PM »
I tried simply adding "ulx ragdollme" and others to the allow section of a group, didn't work

That should have done it. Did you restart the server? Map change won't work.
If it's not working, what error are players getting when they attempt the commands?
Are the players listed as part of the group you gave access to when you do a "ulx who"?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming