Probably busted cuz i modded the SAsay code to be for mods hope it works enough all users must do is type !Msay function ulx.Msay( calling_ply, message )
local format
local me = "/me "
if message:sub( 1, me:len() ) == me then
format = "(SUPERADMINS) *** #P #s"
message = message:sub( me:len() + 1 )
else
format = "#P to Moderators: #s"
end
local players = player.GetAll()
for i=#players, 1, -1 do
local v = players[ i ]
if not ULib.ucl.query( v, seeMsayAccess ) and v ~= calling_ply then
table.remove( players, i )
end
end
ulx.fancyLog( players, format, calling_ply, message )
end
local Msay = ulx.command( "Chat", "ulx Msay", ulx.Msay, "!Msay", true, true )
Msay:addParam{ type=ULib.cmds.StringArg, hint="message", ULib.cmds.takeRestOfLine }
Msay:defaultAccess( ULib.ACCESS_SUPERADMIN )
Msay:help( "Send a message to currently connected moderators." )