Raised This Month: $51 Target: $400
 12% 

Text 'mute' plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
xkonsole
AlliedModders Donor
Join Date: Mar 2018
Old 05-12-2019 , 08:10   Text 'mute' plugin
Reply With Quote #1

Hello. Maybe some of you remember, in GarrysMod there is Ulx feature that mutes the player, and later instead of his messages, some nonsense(phrases, cfg defined) appears in chat. Just curious maybe some would like to do that for sourcemod? Though I guess that requires sbpp_comms edit?
xkonsole is offline
CliptonHeist
Senior Member
Join Date: Feb 2016
Old 05-12-2019 , 09:18   Re: Text 'mute' plugin
Reply With Quote #2

Isn't that just what sm_happy does in FuncommandsX? https://forums.alliedmods.net/showthread.php?t=75520
CliptonHeist is offline
xkonsole
AlliedModders Donor
Join Date: Mar 2018
Old 05-12-2019 , 09:26   Re: Text 'mute' plugin
Reply With Quote #3

It is, though I am interested in mute feature. Maybe someone would find it worth doing.
xkonsole is offline
CliptonHeist
Senior Member
Join Date: Feb 2016
Old 05-12-2019 , 19:01   Re: Text 'mute' plugin
Reply With Quote #4

Quote:
sm_happy - replaces clients text chat with strings from happy_phrases.ini
CliptonHeist is offline
xkonsole
AlliedModders Donor
Join Date: Mar 2018
Old 05-13-2019 , 08:44   Re: Text 'mute' plugin
Reply With Quote #5

Thanks, I can read.
But what I was talking about is sort of `mute` feature, that has set amount of minutes of the applied effect stored somewhere, and not applied during the session only.
xkonsole is offline
CliptonHeist
Senior Member
Join Date: Feb 2016
Old 05-14-2019 , 03:44   Re: Text 'mute' plugin
Reply With Quote #6

Quote:
Originally Posted by xkonsole View Post
Thanks, I can read.
But what I was talking about is sort of `mute` feature, that has set amount of minutes of the applied effect stored somewhere, and not applied during the session only.
Sorry, most people can't read. Just making sure

I made a plugin that should do what you want, it basically does the same thing sm_happy does just with optional SourceComms++ integration.
You just need to create happy_phrases.ini file in sourcemod/configs/ and put the phrases in there (1 per line).

After you've created some phrases use sm_hgag <player> <optional:time> <optional:reason> to happy gag someone (time and reason won't do anything if you don't have SourceComms++), and sm_hungag to reverse it.

It should work with every game but I only tested on CS:GO and found that it doesn't print properly in competitive because of how competitive treats chat.

You will need to have SourceBans++/SourceComms++ installed to have timed happy gags work but other than that nothing else is required unless you need to recompile the plugin which needs the SourceComms++ include: https://github.com/sbpp/sourcebans-p...ourcecomms.inc and ColorVariables include: https://github.com/PremyslTalich/ColorVariables

Code:
Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (happygag.sp - 30 views - 9.9 KB)
File Type: smx happygag.smx (23.8 KB, 26 views)
CliptonHeist is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode