Requesting a way to log kills into the console for administrators. Specifically ULX, because apparently there's no built-in method for doing this.
[QUOTE=ANiChowy;22092746]Requesting a way to log kills into the console for administrators. Specifically ULX, because apparently there's no built-in method for doing this.[/QUOTE]
Aren't they already logged?
I thought they logged too, they save into the ulx logs and also into console.
Is that enabled by default? I can't find a toggle or any sort of option to enable this, and it's not happening as of right now. Any guidance?
I think he means only show who killed who in the admin console and not just a regular user's console.
Yes, that is what I mean.
[QUOTE=ANiChowy;22108691]Yes, that is what I mean.[/QUOTE]
[lua]
function Death( victim, weapon, killer )
for k,ply in pairs(player.GetAll()) do
if ply:IsAdmin() then
Msg( killer:GetName().." Killed Player " .. victim:GetName() .. "\n" )
end
end
end
hook.Add( "PlayerDeath", "dr", Death )[/lua]
Did you make sure it doesn't print in regular user's consoles? Return false at the end maybe?
You don't need to, basically it says if a player is admin, then this this and this, end, nothing else happens, nothing happens for the clients.
[QUOTE=Cardcapture1;22138478]Did you make sure it doesn't print in regular user's consoles? Return false at the end maybe?[/QUOTE]
[lua]
function Death( victim, weapon, killer )
for k,ply in pairs(player.GetAll()) do
if ply:IsAdmin() then
ply:ChatPrint( killer:GetName().." Killed Player " .. victim:GetName() .. "\n" )]]
end
end
end
hook.Add( "PlayerDeath", "dr", Death )[/lua]
fixed
[QUOTE=HeavyMtl123;22139699]You don't need to, basically it says if a player is admin, then this this and this, end, nothing else happens, nothing happens for the clients.[/QUOTE]
You're stupid shut up.
[QUOTE=Cubar;22145887]
You're stupid shut up.[/QUOTE]
What the hell, I was informing the guy above me... what the hell is wrong with you Cubar
[QUOTE=HeavyMtl123;22145933]What the hell, I was informing the guy above me... what the hell is wrong with you Cubar[/QUOTE]
Learn more lua before posting please.
[QUOTE=Cubar;22146094]Learn more lua before posting please.[/QUOTE]
I was telling the guy you don't need to return false, because you have not told it to do anything for the clients, so it won't have anything to do.
[QUOTE=HeavyMtl123;22146375]I was telling the guy you don't need to return false, because you have not told it to do anything for the clients, so it won't have anything to do.[/QUOTE]
:ms:
You know, instead of saying I'm dumb and should learn lua before posting, maybe ask nicely, "What do you mean by that?"
[QUOTE=HeavyMtl123;22146528]You know, instead of saying I'm dumb and should learn lua before posting, maybe ask nicely, "What do you mean by that?"[/QUOTE]
You're dumb.
[QUOTE=Cubar;22149384]You're dumb.[/QUOTE]
Obviously some people are born this way, but anyway, I think the question has been answered, so no point in anyone else posting.
Sorry, you need to Log In to post a reply to this thread.