Sign in to follow this  
Followers 0
mouseboyx

Public Selective Mute

Posted (edited)

This is a janky script so I'm not going to release it, but you can use it if you want.  SAPP's EVENT_CHAT api is somewhat limited so this is the only way I could find to accomplish this.  All chat messages are stopped unless they are / commands and then they are rebroadcasted as server messages without the server prefix.  The messages are formatted to appear like player chat messages for team and all chat.  Doing that makes it so specific messages to/from players can be muted on an individual basis.  If somebody is trolling and you've had enough of their offensive text this could come in handy to anyone on the server. 

 

There are no administrative privileges required to run these commands:

If you want to mute messages to yourself from a specific player use /deafen <player index>  you can use /players to view player indexes, you can also use /undeafen to resume chat messages.

 

There might be some holes in the logic for this but this is the only way I could think to accomplish this.  Also vehicle chat isn't accounted for, it's lumped into team chat messages.

 

 

selective_mute.lua

Edited by mouseboyx
Takka and AntiMomentum like this

Share this post


Link to post
Share on other sites

Tiddy-bits:

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.