Garry's Mod Leaks

[Script] Awarn2 - Warning Module

Submitted by jp3720, , Thread ID: 9944

Thread Closed
12-09-2015, 01:58 PM
This post was last modified: 12-09-2015, 01:58 PM by jp3720
#1
[Image: a8185511fb404b13b6b3e0396dd319a5.png]
Content locked
This content has been locked. Please login or register in order to unlock it.


https://scriptfodder.com/scripts/view/629

Description
Have you ever had players on your server that you feel are being annoying but you don't want to kick or ban them. Have you ever wished you knew if a player had been in trouble with other moderators while you were offline?

With AWarn2, all of this is as easy as opening a single VGUI panel. AWarn2 allows you to give warnings to a player.
The addon will them log that warning and any admin (or person who has access if using ULX/Evolve) will be able to easily see every warning the player has ever received.
With a few configurations (all done inside of the VGUI Menu) the addon can also kick and/or ban players for receiving too many warnings.

Features
Advanced script that allows administrators to warn players on their server.
Warnings for players are stored on the server's SQLite databse.
Administrators can easily view and track all warnings for all players connected to the server.
Configuration option to allow the script to kick the player after they reach a certain amount of active warnings.
Configuration option to allow the script to ban (temporary or perma) the player after they reach a certain amount of warnings.
Configuration option to allow a player's active warnings to decay over time. All warnings are still logged and can be viewed.
Stand-Alone but can be used with ULX/Evolve to allow servers to give access of this script to non-admin groups/players (explained below)
Hook callbacks for integration into your own scripts. Please do NOT redistribute AWarn2.
ULX/Evolve Compatibility
If you are using ULX, 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.

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)

I have all of these access flags registered in XGUI so you can add the permissions right from the XGUI menu. They are under the AWarn category.
If you would rather do it manually, you can use:
ulx groupallow <group> <access flag> (example: ulx groupallow "member" "awarn_warn")
ulx userallow <group> <access flag> (example: ulx userallow "Mr.President" "awarn_warn")

If you are using Evolve Admin Mod you will need to give the Privledges to whatever group or player you want to have access to AWarn functionality.
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.

Chat Commands
!warn - Opens the AWarn VGUI Menu.
!warn <player> <reason> - Warns a player with a given reason.
Console Commands (All accessible from within the AWarn VGUI Menu)
awarn_warn <player/steamid> <reason> - Warns a player with a given reason.
awarn_removewarn <player/steamid> - Removes a single active warning from a player.
awarn_deletewarnings <player/steamid> - Deletes all warnings from a player. 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 ie: HLSW.

Hook Callbacks
AWarnPlayerWarned( 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.
Installation
Simply unzip and place the awarn2 folder into your addons folder.
Start your server and type !warn to see the menu. Be sure to make any changes to the options menu you like.
This hidden content has been reported as not working 0 times this month.
1 times in total

RE: [Script] Awarn2 - Warning Module

#2
Wow, a free script. much leak. many wow
xxx

RE: [Script] Awarn2 - Warning Module

#3
Thanks for the leak
but, isn't it free now on the
forums where it was made?

RE: [Script] Awarn2 - Warning Module

OP
#4
Your welcome men! Smile
[Image: opadlu4ab6d.png]

RE: [Script] Awarn2 - Warning Module

#5
thanks man you are wonderful

RE: [Script] Awarn2 - Warning Module

#6
Thanks for the release Smile
Thanks Brandon & Aoki for Prime!

RE: [Script] Awarn2 - Warning Module

#7
This is the most recent right?

RE: [Script] Awarn2 - Warning Module

#8
Thanks for the script! Now it's time to give some warns!

RE: [Script] Awarn2 - Warning Module

#9
Thanks a lot m8 ! I wasn searching for this for 3 day !

RE: [Script] Awarn2 - Warning Module

#10
Thanks for sharing this man.

Users browsing this thread: 3 Guest(s)