Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started 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]
-
seeasayAccess is a local string defined in the chat.lua file, IIRC. You'll need to redefine it in your file.
-
Thanks. That was the problem.