Author Topic: Can only use command on themself and can only use it once every 30 minutes  (Read 1850 times)

0 Members and 2 Guests are viewing this topic.

Offline aaron

  • Newbie
  • *
  • Posts: 14
  • Karma: 1
Hey, I have a forceswap command created that I would like to give to donators but with the restrictions that they can only use the command on them self and depending on what level donator they are, they can only use once every 20, 40, 60 minutes.

How would I go around doing this?

Offline kklouzal

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Can only use command on themself and can only use it once every 30 minutes
« Reply #1 on: September 03, 2013, 09:27:45 AM »
Make sure the target for the command is only themselves. When they use the command store the player in a table and create a timer to remove the player from the table after the time specified?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Can only use command on themself and can only use it once every 30 minutes
« Reply #2 on: September 03, 2013, 03:13:13 PM »
ULX has no restrictions on how often a command can be run, only on what groups.
You'll need to add the time tracking within your own code.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming