ULX

Author Topic: detecting admins(or those with seeasay access)  (Read 1413 times)

0 Members and 1 Guest are viewing this topic.

Offline centran

  • Newbie
  • *
  • Posts: 43
  • Karma: 8
detecting admins(or those with seeasay access)
« on: April 10, 2013, 03:52:08 PM »
I am trying to get a list of players with seeasayaccess. This code doesn't seem to work as it is printing the message to everyone.

[lua] local players = player.GetAll()
        for i=#players, 1, -1 do
                local v = players[ i ]
                if not ULib.ucl.query( v, seeasayAccess ) then
                        table.remove( players, i )
                else
                        v:ConCommand( "play buttons/combine_button_locked.wav" )
                        v:ConCommand( "play buttons/combine_button_locked.wav" )
                end
        end
ulx.fancyLog( players, format, calling_ply, target_ply )
[/lua]

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: detecting admins(or those with seeasay access)
« Reply #1 on: April 10, 2013, 04:29:39 PM »
seeasayAccess is a local string defined in the chat.lua file, IIRC. You'll need to redefine it in your file.
Experiencing God's grace one day at a time.

Offline centran

  • Newbie
  • *
  • Posts: 43
  • Karma: 8
Re: detecting admins(or those with seeasay access)
« Reply #2 on: April 11, 2013, 10:41:32 AM »
Thanks. That was the problem.