Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: centran on April 10, 2013, 03:52:08 PM

Title: detecting admins(or those with seeasay access)
Post by: centran 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]
Title: Re: detecting admins(or those with seeasay access)
Post by: Megiddo 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.
Title: Re: detecting admins(or those with seeasay access)
Post by: centran on April 11, 2013, 10:41:32 AM
Thanks. That was the problem.