Infractions System v0.1.5

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

Infractions System v0.1.5

Post by greenie »

.: Description :.

If you ever were in a vBulletin forum you should know the infractions system of that forum software. So, I simply ported this idea to AMXX.
For the people who have no idea about what I'm talking about it's simple:
If your behavior is inappropriate administrators can warn or add penalizations to you. After X amount of warnings you get an infraction, and after X amount of infractions you get banned. It's easy.


.: Requirements :.
STEAM
AMX Mod X version 1.8.1 or higher
NFVault
.: Multilingual :.
http://forums.alliedmods.net/showthread.php?t=119740

.: Commands :.

Admin Commands
amx_warning <name or #userid> <reason> - Adds a warning to a player with the given reason.
amx_infraction <name or #userid> <reason> - Adds an infraction to a player with the given reason.
amx_warning_remove <name or #userid> - Removes a warning to a player.
amx_infraction_remove <name or #userid> - Removes an infraction to a player.

Client Commands
say /warnings - Checks player's current warnings.
say /infractions - Checks player's current infractions.

.: Cvars :.
amx_infractions_bantime - Sets the ban time (in minutes) for when a player reaches the max infractions count. Default: 30.
amx_infractions_banmethod - Sets the ban method (0: normal ban | 1: ban from admincmd.amxx | 2: ban from AMXBans). Default: 1.
amx_warnings_max - Sets the available max warnings count. Default: 3.
amx_infractions_max - Sets the available max infractions count. Default: 3.

.: Changelog :.
- Version: 0.1.5 (February 24, 2010)
* Fixed file location.
* Made the kick message multilingual.
* Fixed little typo in the above.
* Prevented some bugs by checking >= instead of == in some cases.

- Version: 0.1.4 (February 24, 2010)
* Fixed major error in banning system.
* Replaced FVault with NFVault.
* Added multilingual system.
* Removed useless commands to clear vaults.

- Version: 0.1.1 (February 24, 2010)
* Fixed little bug with amx_infraction command.
* Added new cvar (amx_infractions_banmethod).

- Version: 0.1.0 (February 24, 2010)
* First public release.
get plugin
get source
infractions_system.zip
infractions_system.txt
Post Reply

Return to “Admin Commands”