Jump to content

Command to mute disconnect chat.


Recommended Posts

  • 1 month later...

@speed removing the player join and disconnect are messages that are easily removable but require modifications in the core chat handler.
It is very simple actually, just head up to /resources/[system]/chat and open sv_chat.lua, then find the following lines :

AddEventHandler('playerConnecting', function()
AddEventHandler('playerDropped', function(reason)

and commenting these handlers out.

save it and your good.

Edited by Philip Nelson
Link to comment
Share on other sites

6 minutes ago, Philip Nelson said:

@speed removing the player join and disconnect are messages that are easily removable but require modifications in the core chat handler.
It is very simple actually, just head up to /resources/[system]/chat and open sv_chat.lua, then find the following lines :


AddEventHandler('playerConnecting', function()
AddEventHandler('playerDropped', function(reason)

and commenting these handlers out.

save it and your good.

Not true. Those handlers are already removed in our code.

Serpico has identified a way to do it, but again... work.

Link to comment
Share on other sites

47 minutes ago, Reuben ~ Reckonity said:

Insert name here* has disconnected" when i'm trying to RP a serious situation. Just annoys me at times.

So why are you looking at chat when your RP'ing and couldn't you say the same when you get a text message

  • Like 1
Link to comment
Share on other sites

Just now, Thorgs said:

So why are you looking at chat when your RP'ing and couldn't you say the same when you get a text message

Well good point, it's pretty hard to avoid the chat though, although the new twitter system heading into the city will fix the situation with Twitter so that's not an issue, plus I can understand the Text Message pop up, while i'd love for it just to be a sound and not the notification it can help a lot. I would only like a way to disable it, kinda like /mutedisconnects.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...