Does anyone know where I can get some scripting to make all ulx private messages visible to admins? We want to be able to allow users to use them but we need to be able to prevent ttt ghosting.
It sounds like america.
The difference is they'll be notified that we can see their messages.
That kinda takes out the entire meaning of [b]private messaging[/b]. It doesn't matter if it isn't visible to [i]everyone[/i] but its visible to the admins so they'd be better off using Steam.
[QUOTE=mitterdoo;41762472]That kinda takes out the entire meaning of [b]private messaging[/b]. It doesn't matter if it isn't visible to [i]everyone[/i] but its visible to the admins so they'd be better off using Steam.[/QUOTE]
It's actually a good idea, I use something similar on my TTT server. Nobody below moderator can send PM's, and if any player needs to talk to a moderator they just use @.
[editline]8th August 2013[/editline]
Useful for knowing if you should handle a certain situation or if one of the other staff members is already on it.
Yeah, right now regular users can't send them, but admin chat can't be used to report moderator misbehavior... also I'm counting on a few people who ghost anyway to take the stupid quick rout and get caught.
Place anywhere in autorun/server
[lua]
local oldPSay = ulx.psay;
function ulx.psay( calling_ply, target_ply, message )
local cnick = "";
local tnick = "";
if( calling_ply.Nick == nil ) then
cnick = "Console";
else
cnick = calling_ply:Nick();
end
if( target_ply.Nick == nil ) then
tnick = "Unknown";
else
tnick = target_ply:Nick();
end
local str = string.format( "%s sent %s a PM '%s'", tostring( cnick ), tostring( tnick ), tostring( message ) );
for k,v in pairs( player.GetAll() ) do
if( v:CheckGroup("admin") ) then
v:ChatPrint( str );
end
end
oldPSay( calling_ply, target_ply, message );
end
local psay = ulx.command( CATEGORY_NAME, "ulx psay", ulx.psay, "!p", true )
psay:addParam{ type=ULib.cmds.PlayerArg, target="!^", ULib.cmds.ignoreCanTarget }
psay:addParam{ type=ULib.cmds.StringArg, hint="message", ULib.cmds.takeRestOfLine }
psay:defaultAccess( ULib.ACCESS_ALL )
psay:help( "Send a private message to target." )
[/lua]
Sorry, you need to Log In to post a reply to this thread.