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

AMXX Gag v1.4.9 - Menu, Reconnect support


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands        Approver:   Hawk552 (427)
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-28-2009 , 17:45   AMXX Gag v1.4.9 - Menu, Reconnect support
Reply With Quote #1

AMXX Gag
- Written by xPaw & Exolent[jNr]
- v1.4.9, last updated : 2nd May 2012

This plugin allows you to gag players from using say_team, say or voicecomm.
Gag still works after retry.
It also echos admin actions based on amx_show_activity, prints message to admins when gagged players disconnects.
Admins with immunity will not be executed on.
See below for features list.

Admin Commands
  • amx_gag <nick/userid> [time] [flags] - Will gag player, flags can be a|b|c, you can combine them, watch below for info.
    - If no time is specified, default time and flags from cvars will be used
    - If no flags are specified, default flags from cvar will be used
  • amx_addgag <authid> [time] [flags] - Will add SteamID to gagged list with time and flags
    - If no time is specified, default time and flags from cvars will be used
    - If no flags are specified, default flags from cvar will be used
  • amx_ungag <nick/userid> - Will remove any gag from player
  • amx_ungag @all - Will remove any gag from all players
  • amx_ungag <steamid> - Will remove any gag from a player that is not connected (remember to use quotes!)
  • amx_gagmenu - Opens gagging menu

Gagging Flags
  • a - Normal chat
  • b - Team chat
  • c - Voicecomm

Server Command
  • amx_gag_times <time1> [time2] [time3] ... - Sets the gag times available in the menu
    (Default: 60 300 600 1800 3600 7200 86400)

Cvars
  • amx_gag_default_flags <flags> - Sets the default gag flags when amx_gag command does not provide flags (Default: abc)
  • amx_gag_default_time <time> - Sets the default gag time when amx_gag command does not provide time (Default: 600)
  • amx_gag_time_units <time unit> - The specific time unit to use in the gag command and menu
    - Possible values:
    • 0, second, seconds (Default)
    • 1, minute, minutes
    • 2, hour, hours
    • 3, day, days
    • 4, week, weeks
  • amx_gag_max_time <time> - Sets the maximum gag time allowed via command (and in menu) (Default: 86400)
  • amx_gag_sql <0/1> - Enables/Disables saving gags in SQL (Default: 0)
  • amx_gag_sql_host <host> - The host to connect to when saving for SQL (Default: empty)
  • amx_gag_sql_user <user> - The user to connect with to the host (Default: empty)
  • amx_gag_sql_pass <pass> - The password of the user connecting to the SQL database (Default: empty)
  • amx_gag_sql_db <db> - The database where everything is stored for gags (Default: empty)

Features
  • Supports reconnect
  • Live time gags removing
  • Prints message to admins when gagged player disconnects
  • If you are gagged from chat, and trying to speak, it will print remaining time
  • Supports permanent gagging and gags save over map change!
  • Menu: Supports flags, multiple times, and ungagging!
  • Colored chat and menus (CS/CZ/DOD only)
  • Change time units for the command (ie. seconds, minutes, etc.) and menu
  • Add SteamIDs to gagged list without player being in the server
  • Remove SteamIDs from gagged list without player being in the server
  • Store gags in SQL (optional) to keep them across multiple servers

Requirements
  • AMX Mod X 1.8.1 or higher
  • Steam-only server

Latest sourcecode is available on GitHub
Attached Files
File Type: sma Get Plugin or Get Source (amx_gag.sma - 41131 views - 40.5 KB)
__________________

Last edited by xPaw; 05-31-2012 at 07:47.
xPaw is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-28-2009 , 17:47   AMXX Gag Changelog
Reply With Quote #2

Changelog
v1.5.0 (coming soon, you can grab code from github)
  • Added API for other plugin developers to use
  • Fixed gags sometimes not saving in SQL
  • Minor code cleanup and optimizations

v1.4.9
  • Fixed menu bug where player was not immediately updated in menu when being gagged/ungagged

v1.4.8
  • Added SQL support
  • Optimized gag times and deleting all gags

v1.4.7
  • Optimized a bit

v1.4.6
  • Added immunity check in amx_addgag
  • Removed immunity check in amx_ungag

v1.4.5
  • Added amx_addgag command
  • Removed disclaimer about crashing bugging out ungagged players (was fixed some time ago)
  • Changed documentation of amx_gag command to not repeat the command in the list

Older Versions
__________________

Last edited by xPaw; 05-13-2013 at 09:04. Reason: Updated changelog.
xPaw is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 08-28-2009 , 17:47   Re: AMXx Gag [ Retry support ]
Reply With Quote #3

Edit

Rofl + Mao = ROFLMAO = Awesomeness!
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross

Last edited by meTaLiCroSS; 08-28-2009 at 17:51.
meTaLiCroSS is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 08-28-2009 , 21:12   Re: AMXx Gag [ Retry support ]
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
.: Friendly asked questions :.
Friendly --> Frequently.
BOYSplayCS is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-29-2012 , 17:57   Re: FAQ
Reply With Quote #5

Updated to v1.4!
Quote:
Originally Posted by xPaw View Post
Changelog
v1.4
  • Added cross-map gag saving
  • Added permanent gagging
  • Added cvars for default flags and time for amx_gag command
  • Code cleanup
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 01-30-2012 , 09:40   Re: FAQ
Reply With Quote #6

Quote:
Originally Posted by Exolent[jNr] View Post
Updated to v1.4!
Exellent, well done!
Lolz0r is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-14-2012 , 13:51   Re: FAQ
Reply With Quote #7

Updated to v1.4.3:
Quote:
Originally Posted by xPaw View Post
Changelog
v1.4.3
  • Added amx_gag_time_units cvar
  • Added amx_gag_max_time cvar
  • Modified how time length is displayed
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 02-15-2012 , 06:47   Re: AMXX Gag v1.4.3 - Menu, Reconnect support
Reply With Quote #8

Words cannot describe how it's cool!

And I found small typo I think ;) :
Code:
ADMIN: Has gagged aim is ArmadA? from speaking for 1 weeks3 day! (say / say_team / voicecomm)
(may be '&' or space between week and day?)
Code:
ADMIN: Has ungagged aim is ArmadA?.
(unneeded dot)

Last edited by isotonic; 02-15-2012 at 06:48.
isotonic is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-15-2012 , 09:59   Re: AMXX Gag v1.4.3 - Menu, Reconnect support
Reply With Quote #9

Quote:
Originally Posted by isotonic View Post
Words cannot describe how it's cool!

And I found small typo I think ;) :
Code:
ADMIN: Has gagged aim is ArmadA? from speaking for 1 weeks3 day! (say / say_team / voicecomm)
(may be '&' or space between week and day?)
Was an issue with how the time display was dynamically formatted, and has been fixed in 1.4.4 (see first post).

Quote:
Originally Posted by isotonic View Post
Code:
ADMIN: Has ungagged aim is ArmadA?.
(unneeded dot)
We prefer punctuation in our chat messages.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
isotonic
AlliedModders Donor
Join Date: Jun 2011
Location: Moscow, Russia
Old 02-15-2012 , 10:52   Re: AMXX Gag v1.4.4 - Menu, Reconnect support
Reply With Quote #10

Thank you!

And how about add support for 'offline user' gag? Like amx_addgag "SteamID" ...
isotonic 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 08:41.


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