Overriding "<player> has joined the game." and "<player> has left the game."
10 replies, posted
I'm trying to get it so those don't show up in the chat when a player joins/leaves, any help?
You probably have to override GM.PlayerConnect and GM.PlayerDisconnect somehow. If this is in a gamemode thats not hard, just create an empty function with that name, outside of a gamemode, I'm not sure.
Didn't work.
You might be able to do it with gevents.
Not possible without either a custom chatbox or a binary module.
Its a game process.
You cannot disable that from printing.
[QUOTE=DarKSunrise;26038456]Not possible without either a custom chatbox or a binary module.[/QUOTE]
Just a note, the module he's talking about doesn't need to be on the client, just the server.
Know where I can get it? The link in the gevents thread is broken.
I'm not sure if this actually works without a custom chatbox, but it's worth a try.
[lua]hook.Add( "ChatText", "BlockJoinLeave", function( entindex, name, text, msgtype )
if msgtype == "joinleave" then
return true --Don't display in default chatbox?
end
end )[/lua]
[QUOTE=blackops7799;26038713]I'm not sure if this actually works without a custom chatbox, but it's worth a try.
[lua]hook.Add( "ChatText", "BlockJoinLeave", function( entindex, name, text, msgtype )
if msgtype == "joinleave" then
return true --Don't display in default chatbox?
end
end )[/lua][/QUOTE]
That worked perfectly! Thanks!
Sorry, you need to Log In to post a reply to this thread.