Garry's Mod Leaks

[Script] Awarn2 - Warning Module

Submitted by jp3720, , Thread ID: 9944

Thread Closed
jp3720
Novice
Level:
0
Reputation:
-3
Posts:
26
Likes:
1
Credits:
66
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

NSA
) )
Supreme
Level:
0
Reputation:
93
Posts:
1.74K
Likes:
114
Credits:
459
12-09-2015, 03:29 PM
#2
Wow, a free script. much leak. many wow
xxx

RE: [Script] Awarn2 - Warning Module

Gaben
Junior Member
Level:
0
Reputation:
1
Posts:
50
Likes:
0
Credits:
2
14-09-2015, 10:55 PM
#3
Thanks for the leak
but, isn't it free now on the
forums where it was made?

RE: [Script] Awarn2 - Warning Module

jp3720
Novice
Level:
0
Reputation:
-3
Posts:
26
Likes:
1
Credits:
66
OP
19-09-2015, 11:59 AM
#4
Your welcome men! Smile
[Image: opadlu4ab6d.png]

RE: [Script] Awarn2 - Warning Module

Mevludin
Closed Account
Level:
0
Reputation:
0
Posts:
24
Likes:
0
Credits:
0
23-09-2015, 10:01 AM
#5
thanks man you are wonderful

RE: [Script] Awarn2 - Warning Module

xmxmusicrealm
Member
Level:
0
Reputation:
7
Posts:
149
Likes:
3
Credits:
2
03-10-2015, 12:39 AM
#6
Thanks for the release Smile
Thanks Brandon & Aoki for Prime!

RE: [Script] Awarn2 - Warning Module

Kush
Member
Level:
0
Reputation:
0
Posts:
116
Likes:
25
Credits:
234
04-10-2015, 10:46 PM
#7
This is the most recent right?

RE: [Script] Awarn2 - Warning Module

stefan96
Junior Member
Level:
0
Reputation:
0
Posts:
60
Likes:
2
Credits:
44
16-10-2015, 12:45 AM
#8
Thanks for the script! Now it's time to give some warns!

RE: [Script] Awarn2 - Warning Module

Qwopps
Lurker
Level:
0
Reputation:
0
Posts:
3
Likes:
0
Credits:
3
16-03-2016, 03:07 PM
#9
Thanks a lot m8 ! I wasn searching for this for 3 day !

RE: [Script] Awarn2 - Warning Module

k452837
Newbie
Level:
0
Reputation:
0
Posts:
15
Likes:
1
Credits:
30
27-12-2016, 10:45 AM
#10
Thanks for sharing this man.

Users browsing this thread: 1 Guest(s)