Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: [eG] Tom on December 26, 2012, 06:22:34 PM

Title: ULX "Fun" commands
Post by: [eG] Tom on December 26, 2012, 06:22:34 PM
Hi,

Is there a way that ULX "fun" commands do not send a chat message to the whole server? How can their output be silenced?

Thanks in advance.
Title: Re: ULX "Fun" commands
Post by: JamminR on December 26, 2012, 09:04:01 PM
Use the console instead of the chat window to do commands, and set your echo options in ulx configs accordingly.
Title: Re: ULX "Fun" commands
Post by: [eG] Tom on December 26, 2012, 09:25:48 PM
Use the console instead of the chat window to do commands, and set your echo options in ulx configs accordingly.

Thanks! I found it out right before I read your reply though. :P

I have two more questions, if you'd be willing to answer them.

1) I run a TTT server, and I'd like for a player to know who killed them. For example, when they die they would see "You were killed by [eG] Tom with rifle." How could I implement this?
2) Is there a way that I could setup an automated votemap? When the map is over, it would ask all players what map they would like and they could vote, instead of having to do !votemap.

Thank you so much for your help!
Title: Re: ULX "Fun" commands
Post by: LuaTenshi on December 26, 2012, 09:55:29 PM
I run a TTT server, and I'd like for a player to know who killed them. For example, when they die they would see "You were killed by [eG] Tom with rifle." How could I implement this?

Here are 2 links that will help you make your own, http://wiki.garrysmod.com/page/Hooks/Base | http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexbdc5.html

...and here is my code (not tested.)...

Code: [Select]
function playerDies( victim, weapon, killer )
    if(IsValid(killer) and killer:IsPlayer()) then
        victim:ChatPrint( killer:GetName() .. " has killed you with a " .. weapon:GetClass() .. "\n" )
    end
end
hook.Add( "PlayerDeath", "playerDeathUniqueName", playerDies )