Author Topic: Prevent users from executing command on others  (Read 1752 times)

0 Members and 1 Guest are viewing this topic.

Offline SkillerPenguin

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Prevent users from executing command on others
« on: October 17, 2014, 07:49:48 PM »
Hello!

How do I make it so that the default "user" class and my custom "Member" class can use !god and !ungod successfully on themselves, but can't use it on other players?
In other words, I want a player to be able to use the !god command only on themselves and not anyone else.

Thanks!

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Prevent users from executing command on others
« Reply #1 on: October 17, 2014, 10:08:34 PM »
ulx groupallow <group> "ulx god" "^"
ulx groupallow <group> "ulx ungod" "^"

We have FAQs that help cover these, one being "How exactly does can_target work?"
Though that doesn't hit nail on head, it has link to another discussion that covers those.
You can also always type, as superadmin, "ulx usermanagementhelp" in console and see the descriptions of ^, @, and a few others.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline SkillerPenguin

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: Prevent users from executing command on others
« Reply #2 on: October 18, 2014, 12:19:50 AM »
ulx groupallow <group> "ulx god" "^"
ulx groupallow <group> "ulx ungod" "^"

We have FAQs that help cover these, one being "How exactly does can_target work?"
Though that doesn't hit nail on head, it has link to another discussion that covers those.
You can also always type, as superadmin, "ulx usermanagementhelp" in console and see the descriptions of ^, @, and a few others.

Hey! I did in fact check out the FAQs, but didn't see that link you're referring to.
Thank you very much for the help! :)