[lua]
CATEGORY_NAME = "Chat"
local seereportAccess = "ulx seeasayAccess"
function ulx.report( calling_ply, target_ply, message )
local format
local me = "/me "
if message:sub( 1, me:len() ) == me then
format = "(ADMINS) *** #P " .. message:sub( me:len() + 1 )
else
format = "#P reported #P: " .. message
end
local players = player.GetAll()
for i=#players, 1, -1 do
local v = players[ i ]
if not ULib.ucl.query( v, seeasayAccess ) and v ~= calling_ply then
table.remove( players, i )
end
end
ulx.fancyLog( { target_ply, calling_ply }, "#P reported #P: " .. message, calling_ply, target_ply )
end
local report = ulx.command( CATEGORY_NAME, "ulx report", ulx.report, "!report", true, true )
report:addParam{ type=ULib.cmds.PlayerArg, target="!^", ULib.cmds.ignoreCanTarget }
report:addParam{ type=ULib.cmds.StringArg, hint="reason", ULib.cmds.takeRestOfLine }
report:defaultAccess( ULib.ACCESS_ALL )
report:help( "Report a player for the given reason." )
[/lua]
When someone reports a player, it only ever sends to the person they reported, not the admins?
you could always use my report tool
[QUOTE=tyguy;40292125]you could always use my report tool[/QUOTE]
Could you post the link? i would be very grateful!
[url]http://facepunch.com/showthread.php?t=1258278[/url]
if you ever need help with it, you can ask me
[QUOTE=tyguy;40292178][url]http://facepunch.com/showthread.php?t=1258278[/url]
if you ever need help with it, you can ask me[/QUOTE]
Sorry about being a noob, but how do i download from the SVN link?
get TortoiseSVN ( [url]http://tortoisesvn.net/[/url] ) , then click in your addons folder (Right click) and then click SVN Checkout, then paste the SVN Link in
[QUOTE=tyguy;40292272]get TortoiseSVN ( [url]http://tortoisesvn.net/[/url] ) , then click in your addons folder (Right click) and then click SVN Checkout, then paste the SVN Link in[/QUOTE]
Thanks!
Sorry, you need to Log In to post a reply to this thread.