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

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 - 41048 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
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-28-2009 , 17:48   Re: AMXx Gag [ Retry support ]
Reply With Quote #4

I LOL'D !!!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 08-28-2009 , 17:49   Re: AMXx Gag [ Retry support ]
Reply With Quote #5

HAHAHA, COPYPASTING FTW =[
__________________
xPaw is offline
Kryzu
Senior Member
Join Date: Feb 2009
Old 08-28-2009 , 17:49   Re: AMXx Gag [ Retry support ]
Reply With Quote #6

Sounds cool, looking for menu
__________________
Kryzu is offline
Sp3rMiNaToR
BANNED
Join Date: Apr 2009
Location: Greece ^_^
Old 08-28-2009 , 17:50   Re: AMXx Gag [ Retry support ]
Reply With Quote #7

Very nice!Thanks for sharing this!
Edit:This can be used only from admins or from every player?
Sp3rMiNaToR is offline
Send a message via MSN to Sp3rMiNaToR
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-28-2009 , 17:50   Re: AMXx Gag [ Retry support ]
Reply With Quote #8

Yea, also a menu will make it usefull...
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-28-2009 , 17:51   Re: AMXx Gag [ Retry support ]
Reply With Quote #9

Editing doesn't change the past.

http://img79.**************/img79/511...2009165256.jpg
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 08-28-2009 , 17:53   Re: AMXx Gag [ Retry support ]
Reply With Quote #10

Quote:
Originally Posted by Exolent[jNr] View Post
Do you take screenshots in every stupid thing?
__________________
"There is no knowledge, that is not power"
fezh is offline
Reply


Thread Tools
Display Modes

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 06:52.


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