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]