ULX

Author Topic: Value restrictions?  (Read 2412 times)

0 Members and 1 Guest are viewing this topic.

Offline Fair

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Value restrictions?
« on: June 23, 2010, 01:43:25 PM »
Hey there.

I have been playing around with this and by this, I mean:

A player can slap himself with 0 - 100 damage ect..

I use:
ulx groupallow blabla "ulx slap" "^ 0"

But, obviously that only makes them allowed to slap themselves with 0 damage.

My question is..

How can I put limits on, like from 0 to 100 damage?
If possible?

Thanks.

Edit:

Btw, I have tried adding these 2 right after each other (if I want them only to be able to slap themselves with 0 AND 100 damage):

ulx groupallow blabla "ulx slap" "^ 0"
ulx groupallow blabla "ulx slap" "^ 100"

For some reason, the last one typed is overwriting the other one?

I have also tried:
ulx groupallow blabla "ulx slap" "^ 0-100"
ulx groupallow blabla "ulx slap" "^ 0 100"
and so on. None of them worked.

That's all, thanks.
« Last Edit: June 23, 2010, 01:50:09 PM by Fair »

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Value restrictions?
« Reply #1 on: June 23, 2010, 02:03:42 PM »
I'm not 100% sure, but I think this may work...
Code: [Select]
ulx groupallow blabla "ulx slap" "^ 0~100 0~100"because it is "ulx slap <player> <times> <damage>".

Offline Fair

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Value restrictions?
« Reply #2 on: June 23, 2010, 03:27:03 PM »
Will try out..

Apparently, you can't type ~ in console, since that closes it down.. O.o

I will edit the group file, and restart my server, when there's not so many online.. ;)

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
Re: Value restrictions?
« Reply #3 on: June 23, 2010, 03:28:37 PM »
You can copy and paste ~ into  the console.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: Value restrictions?
« Reply #4 on: June 23, 2010, 03:43:09 PM »
I think you can also just press it twice, when it reopens it inserts a '~' into the console after whatever you were typing. (Just going off of my memory, not at home to try it)
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Fair

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: Value restrictions?
« Reply #5 on: June 23, 2010, 03:50:07 PM »
I tried to copy-paste, nothing happened..

But after server restart, or in this case crash, it's working..

Thanks for your help ^^

There's a lot of "hidden" features.. :S