Author Topic: Playsounds plugin  (Read 18510 times)

0 Members and 1 Guest are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Playsounds plugin
« Reply #15 on: August 06, 2006, 08:21:38 PM »
Griff, try commenting out "--" the original ulx line, and using this.
Code: [Select]
ulx.CONCOMMAND( "playsounds", cc_ulxPlaysounds, " : enables or disables playsounds ", ACCESS_CUSTOM_A, "!playsounds" )
I haven't tested that, but just looked at an example from ULX v2.01
I also notice there's no 'ACCESS_CUSTOM_A' defined in lua/Ulib/ucl.lua , so, you'll either have to add at the bottom of the others like
Code: [Select]
ACCESS_ALL = nil
ACCESS_NONE = 0
ACCESS_IMMUNITY = "a"
ACCESS_RESERVATION = "b"
ACCESS_KICK = "c"
ACCESS_BAN = "d"
ACCESS_SLAY = "e"
ACCESS_MAP = "f"
ACCESS_CVAR = "g"
ACCESS_ENT = "h"
ACCESS_CHAT = "i"
ACCESS_VOTE = "j"
ACCESS_PROP = "k"
ACCESS_RCON = "l"
ACCESS_PLAYER = "m"
ACCESS_MENU = "n"
ACCESS_CUSTOM_A         =       "o"
in your lua/Ulib/ucl.lua or change that ACCESS_CUSTOM_A in the above concommand line to something standard (slay/chat are usually what I use for 'lower level' admin commands)
Personally, I don't like editing original files, as they are usually overwritten during updates, and I often forget the various changes I'd made. So, I'd recommend just changing the access. Like so
Code: [Select]
ulx.CONCOMMAND( "playsounds", cc_ulxPlaysounds, " : enables or disables playsounds ", ACCESS_SLAY, "!playsounds" )
As for your wanting various access levels for various sounds, thats a bit more than I'm able to go into.
Not trying to be mean. :D I just have my plate full with other time consuming stuff right now.
« Last Edit: August 07, 2006, 08:27:44 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Griff

  • Newbie
  • *
  • Posts: 40
  • Karma: 3
Re: Playsounds plugin
« Reply #16 on: August 07, 2006, 11:45:14 AM »
cheers for your help m8. il try it out in a min :)

#Edit 1: Ok. ive tried it, and it works perfect :) thanks everso much for all your help.
« Last Edit: August 07, 2006, 02:56:32 PM by Griff »