Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: axeboy1778 on July 19, 2014, 12:55:53 AM

Title: Removing the Disconnect Message
Post by: axeboy1778 on July 19, 2014, 12:55:53 AM
How can I remove the (Axeboy1778 has disconnected. (STEAM_0:1:00000000)) disconnect message? I have something else that solves this, so having both looks fairly odd and unnecessary.
Title: Re: Removing the Disconnect Message
Post by: Avoid on July 19, 2014, 04:34:05 AM
Hello,
take a look at this hook: GM/PlayerDisconnected (http://wiki.garrysmod.com/page/GM/PlayerDisconnected)

Avoid
Title: Re: Removing the Disconnect Message
Post by: axeboy1778 on July 19, 2014, 12:42:05 PM
I know, but isn't it something in ulx/ulib making that message? I have a message like that already and I want to get rid of the ulx/ulib default one, but I don't know how/where to find it.
Title: Re: Removing the Disconnect Message
Post by: Neku on July 19, 2014, 12:56:56 PM
I know, but isn't it something in ulx/ulib making that message? I have a message like that already and I want to get rid of the ulx/ulib default one, but I don't know how/where to find it.

No? I'm quite certain it's a Garry's Mod thing.
Title: Re: Removing the Disconnect Message
Post by: axeboy1778 on July 19, 2014, 01:03:55 PM
Does anyone know where I can find that message?
Title: Re: Removing the Disconnect Message
Post by: MrPresident on July 19, 2014, 03:10:51 PM
We don't generate this message inside of ULX.
I took a look at the base gamemode PlayerDisconnected hook and it doesn't seem to explicitly call that message, but I think if you override the function it will not print it.

Inside of your init.lua file for your gamemode just place this:

Code: [Select]
function GM:PlayerDisconnected( player )
end
Title: Re: Removing the Disconnect Message
Post by: axeboy1778 on July 19, 2014, 05:50:36 PM
That worked perfectly. Thanks MrPresident  :)