AWarn2 - New and Improved!This addon allows admins to warn users and will display to them the reason they were warned.
The addon will keep track of all historic warnings for review by admins.
The addon now has a nice GUI that lets you do everything including viewing a player's warnings.
If enabled, once a user reaches a pre-configurable number of warnings, they are kicked from the server.
By default only admins/superadmins have access to this addon. If you are running ULX/ULib and you want to add more groups or users just assign them the following access flags.
awarn_view - This allows a player to view all players' warnings.
awarn_warn - This allows a player to warn players.
awarn_remove - This allows a player to reduce a player's active warnings.
awarn_delete - This allows a player to completely remove all warnings from a player.
awarn_options - This allows a player to view/edit the scripts configurations.
The access flags are registered in XGUI so adding them is as easy as using your in-game XGUI menu. You can also do it manually with the following ULX commands:
ulx userallow <player> "access_flag"
ulx groupallow <group> "access_flag"
examples:
ulx userallow "Mr.President" "awarn_warn"
ulx groupallow "moderator" "awarn_options"
Commands:awarn_warn <player/steamid> <reason> - Warn a player for a specified reason
!warn <player> <reason> - Warn a player for a specified reason
awarn_menu - Opens the AWarn GUI screen.
!warn (With no arguements) - Opens the AWarn GUI screen.
Hook CallbacksAWarnPlayerWarned( Player target_ply, Player ply, String reason )
target_ply - Player being warned
ply - Warning Admin
reason - Reason for warning
AWarnPlayerIDWarned( String tarid, Player ply, String reason )
tarid - 64bit SteamID of player being warned.
ply - Warning Admin
reason - Reason for warning
AWarnLimitKick( Player target_ply )
target_ply -Player being kicked for passing the warning kick threshold.
AWarnLimitBan( Player target_ply )
target_ply - Player being banned for passing the warning ban threshold.
Click the image thumbs to view larger versions.
Configurations (Note: these are server console variables. Run these from the server console)All configurations are done in the built-in configurations menu.Installation Instructions:-Extract the awarn folder into your addons folder.
-Restart your server
-Enjoy!
Questions/Comments: Feel free to ask them in this thread.
DOWNLOADDOWNLOAD