Author Topic: Usweps  (Read 2983 times)

0 Members and 1 Guest are viewing this topic.

Offline twisted-scot

  • Newbie
  • *
  • Posts: 7
  • Karma: 2
Usweps
« on: May 06, 2007, 10:15:57 AM »
It would be good if someone could make the script for the old ULX Uswep where you can set sweps access levels to certain levels. For example only superadmins can use the nuke and admins can't or operators can use c4 but normal players can't.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Usweps
« Reply #1 on: May 06, 2007, 12:12:59 PM »
If you look in each swep's lua file, there is a 'adminonly' variable at the top I think.
Garry included this by default.

Sorry, I don't know exactly where the files are, and don't have time at the moment to look.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline twisted-scot

  • Newbie
  • *
  • Posts: 7
  • Karma: 2
Re: Usweps
« Reply #2 on: May 06, 2007, 01:41:04 PM »
No what I meant is you could group sweps up like superadmin only sweps.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Usweps
« Reply #3 on: May 06, 2007, 04:02:52 PM »
SWEPs are handled quite differently in GM10. I haven't looked into it much, but I'm not sure how much can be done to change the way they are handled.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage