Garry's Mod Leaks

Awarn2 - Warning Module

Submitted by Jacque, , Thread ID: 88013

Thread Closed
10-05-2018, 05:50 PM
#1
Description
AWarn2 allows you to easily give your players warnings for various reasons. These warnings stay with the player until they are deleted, allowing you and other admins on your server to easily view what the player has been warned for in the past. With AWarn2, you can easily spot repeat offenders and deal with them.
Awarn2 also gives you the ability to assign punishments to warnings. Do you want to have a player automatically get banned for 24 hours after reaching 3 warnings? You can do that with AWarn2. The punishment system is totally customizable to fit your needs and 100% optional if you want to only use AWarn2 to track warnings.
A gmodstore Top 10, you won't be disappointed!

Features
  • Allows administrators on your server to warn players for any reason and to view these warnings at any time.
  • Players are notified of their warnings and can view their own warnings at any time.
  • Admins are alerted when a player with warnings connects to the server so they can view them if they want to.
  • Warnings are saved to the server's SQLite database for speed and scalability!
  • If you have multiple servers or prefer to have your data on a MySQL database, there is built in support for MySQL integration.
  • Punishment options are totally customizable and you can now have as many punishment tiers as you want!
  • Specific players or groups can be blacklisted from being warned to protect your superadmins or owners from being trolled by other moderators or admins. The blacklists are located in the awarn_settings.lua file.
  • There are in-game configuration options to allow for active warnings to decay over time. All warnings are still logged, but active warnings are what counts towards punishments.
  • Stand-Alone but can be used with ULX/Evolve/Maestro/ServerGuard to allow servers to give access of this script to non-admin groups/players (explained below)
  • Modules system and hook callbacks for developers to extend AWarn2 without modifying the base code!
  • Built in logging so you can see/monitor warnings and awarn related actions. (off by default)
  • Support for language translations. See instructions in the sh_localization.lua file! Please send me any translations you do!

ULX/Evolve/Maestro/ServerGuard Compatibility
If you are using ULX/Evolve/Maestro, this addon will automatically detect that and adjust its permissions accordingly. By default admins and superadmins have access to use this addon. If you want to assign other usergroups access to this addon, just give them the following access flags.
Quote:awarn_view - This allows a player to view other players' warnings. (Defaults to Admin)
awarn_warn - This allows a player to warn other players. (Defaults to Admin)
awarn_remove - This allows a player to decrease another player's active warnings. (Defaults to Admin)
awarn_delete - This allows a player to delete all warnings for a player. (Defaults to Superadmin)
awarn_options - This allows a player to view and change the configurations for this script. (Defaults to Superadmin)
ULX Specific commands to add access:
Quote:ulx groupallow [group] [access flag] (example: ulx groupallow "moderator" "awarn_warn")
ulx userallow [group] [access flag] (example: ulx userallow "Mr.President" "awarn_warn")
Maestro specific commands to add access:
Quote:ms rankflag [group] [access flag] true (example: ms rankflag "moderator" "awarn_warn")
Evolve I am not familiar enough with Evolve to tell you how to give privledges using Evolve. If you need help doing that, contact the developers of Evolve or if someone would like to tell me, I will update this post.
ServerGuard If you are using ServerGuard, here is a handy tutorial on how to integrate AWarn2 into the ServerGuard permissions. Thanks to the author of this guide for writing it.
Quote:https://forums.gmodserverguard.com/threa...sions.127/

Chat Commands
Quote:!warn - Opens the AWarn VGUI Menu.
!warn [player] [reason] - Warns a player with a given reason.

Console Commands
Quote:awarn_warn [player] [reason] - Warns a player with a given reason.
awarn_warn [steamid] [reason] - Warns a player using their SteamID with a given reason. This is useful for warning offline players.
awarn_removewarn [player] - Removes a single active warning from a player.
awarn_removewarn [steamid] - Removes a single active warning from a player by SteamID.
awarn_deletewarnings [player] - Deletes all warnings from a player. CAUTION: This removes all history of warnings from a player.
awarn_deletewarnings [steamid] - Deletes all warnings from a player using their SteamID. Useful for resetting an offline player's warnings. CAUTION: This removes all history of warnings from a player.
awarn_menu - Opens the AWarn VGUI Menu.
awarn_options - Opens the AWarn VGUI Options menu.
All of these commands, except the last two (obviously) can be access through your server's console.


GMODSTORE : https://www.gmodstore.com/scripts/view/6...ing-module

Content locked
This content has been locked. Please login or register in order to unlock it.

Users browsing this thread: 1 Guest(s)