Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Persistent Mutes and Gags
#1
(this is actually a suggestion for both servers, but I like prophunt more)
Hello!

I've noticed for about four years that ulx votemute and ulx votegag commands in the ULX CustomCommands command pack we use have the amazing ability to not only mute or gag a player for a set amount of time (as in, mute somebody for say, 5 minutes), but to have mutes and gags persist between disconnects. I've wanted to adapt this into a new and improved mute and gag command, but lacked the skills. However, now I don't!

So, I have exciting news. I have successfully adapted the votemute and votegag commands into their own commands that work almost exactly like the regular mute and gag commands, with the ability to mute or gag a player for a certain number of minutes, and the ability to have mutes and gags persist between disconnects. 

These commands work using Garry's Mod's built in serverside database, called sv.db, to store a key value pair containing the number of minutes the user is muted or gagged for, instead of the way ULX does it by simply adding a boolean value to the player's server session, which is lost when the player disconnects and only contains information telling if the player is either muted or unmuted. A timer simply goes off every 60 seconds to reduce the number of minutes the mute or gag has left by 1. When it's zero, they get unmuted.

Some quirks:
- Mutes and gags have an accuracy within -60 seconds. Every 60 seconds a timer fires that reduces the number of minutes a player is muted. If you mute somebody 1 second before the timer goes off, it will count as one minute.
- This script hates lua autorefresh. A server restart or two is required to make it fully functional.

The command for mutes is fully working, but the command for gags is untested. I'll post links to both when they are ready. This time it's a little too big to have in a code tag :)
[Image: horizontal-design-element-3.png]
  Angel I CRAHSED MY CAR
find out more at https://russefarmer.com/
Garry's Mod Performance Tuning Guide


Messages In This Thread
Persistent Mutes and Gags - by RussEfarmer - 11-27-2020, 02:18 AM
RE: Persistent Mutes and Gags - by TheUltraFish - 11-27-2020, 07:18 AM
RE: Persistent Mutes and Gags - by Ēmęřăķ - 11-27-2020, 10:38 AM
RE: Persistent Mutes and Gags - by B0T.ikillyou - 11-27-2020, 03:18 PM
RE: Persistent Mutes and Gags - by RussEfarmer - 11-27-2020, 08:45 PM
RE: Persistent Mutes and Gags - by Alora - 11-27-2020, 04:22 PM
RE: Persistent Mutes and Gags - by RussEfarmer - 11-27-2020, 11:33 PM
RE: Persistent Mutes and Gags - by RussEfarmer - 11-28-2020, 08:11 PM
RE: Persistent Mutes and Gags - by TheUltraFish - 11-28-2020, 08:15 PM
RE: Persistent Mutes and Gags - by RussEfarmer - 11-28-2020, 08:56 PM
RE: Persistent Mutes and Gags - by TheUltraFish - 11-28-2020, 08:59 PM
RE: Persistent Mutes and Gags - by wqr - 11-28-2020, 09:50 PM
RE: Persistent Mutes and Gags - by RussEfarmer - 11-29-2020, 01:10 AM
RE: Persistent Mutes and Gags - by Uriel'is - 11-29-2020, 05:33 AM
RE: Persistent Mutes and Gags - by RussEfarmer - 12-02-2020, 06:27 PM
RE: Persistent Mutes and Gags - by bryanbrr - 12-25-2020, 10:37 PM
RE: Persistent Mutes and Gags - by Salty - 12-26-2020, 10:56 AM
RE: Persistent Mutes and Gags - by Salty - 12-26-2020, 12:25 PM
RE: Persistent Mutes and Gags - by Jammin - 12-26-2020, 01:50 AM
RE: Persistent Mutes and Gags - by Jammin - 12-26-2020, 01:03 PM
RE: Persistent Mutes and Gags - by bryanbrr - 12-26-2020, 01:12 PM
RE: Persistent Mutes and Gags - by Salty - 12-26-2020, 02:40 PM
RE: Persistent Mutes and Gags - by RussEfarmer - 01-30-2021, 01:27 PM
RE: Persistent Mutes and Gags - by RussEfarmer - 02-21-2021, 03:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)

About Us
    This is Dinkleberg's GMod, a gaming community based in Garry's Mod. We have a Trouble in Terrorist Town, Prop Hunt, Murder, and Deathrun Server. Come check them out sometime.