Author Topic: AWarn2 - Advanced Warning Module  (Read 364320 times)

0 Members and 2 Guests are viewing this topic.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
AWarn2 - Advanced Warning Module
« on: March 06, 2014, 02:31:36 AM »
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 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.



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.

DOWNLOAD

DOWNLOAD
« Last Edit: November 03, 2021, 05:51:42 PM by MrPresident »

Neecoe

  • Guest
Re: AWarn2 - Advanced Warning Module
« Reply #1 on: March 06, 2014, 04:41:45 AM »
Warn menu not showing when i type !warn in chat. my group is "owner" Getting error : [ERROR] addons/awarn2/lua/autorun/sh_awarn.lua:109: attempt to call method 'AWCheckAdmin' (a nil value)

1. unknown - addons/awarn2/lua/autorun/sh_awarn.lua:109
 2. unknown - lua/includes/modules/concommand.lua:69
« Last Edit: March 06, 2014, 05:00:23 AM by Neecoe »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #2 on: March 06, 2014, 04:42:59 AM »
type in console:


ulx groupallow owner "awarn_admin"

Let me know if it works.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #3 on: March 06, 2014, 05:09:55 AM »
Are you getting any other errors in your console when you start your server?

Offline ojbristow

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
    • Superclocked
Re: AWarn2 - Advanced Warning Module
« Reply #4 on: March 06, 2014, 09:11:13 AM »
Looks like a major improvement - purchased through coder hire :)

Owen


Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #5 on: March 06, 2014, 09:55:11 AM »
There is a bug affecting dedicated servers. Im fixing it now. I'll upload here and to CH as soon as it's done.

Offline ojbristow

  • Newbie
  • *
  • Posts: 47
  • Karma: 0
    • Superclocked
Re: AWarn2 - Advanced Warning Module
« Reply #6 on: March 06, 2014, 10:01:16 AM »
There is a bug affecting dedicated servers. Im fixing it now. I'll upload here and to CH as soon as it's done.
Better make it a good post, going to be your 1,500 :)

Owen


Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: AWarn2 - Advanced Warning Module
« Reply #7 on: March 06, 2014, 10:53:38 AM »
Just bought it. Well worth $4, probably more :P

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #8 on: March 06, 2014, 11:06:19 AM »
Just updated to 1.1. Make sure you get it. Otherwise it will not work on dedicated servers. :\

Offline Eccid

  • Full Member
  • ***
  • Posts: 115
  • Karma: 11
  • Hey, come on... We just met...
    • Terror Abound! Steam Group
Re: AWarn2 - Advanced Warning Module
« Reply #9 on: March 06, 2014, 11:27:10 AM »
I was about to make a post about that :P Looks awesome.

Also, the options don't seem to sync up with the setting I put. I have my settings set in the server.cfg, but the options window doesn't reflect what I set.
« Last Edit: March 06, 2014, 11:39:07 AM by Eccid »

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #10 on: March 06, 2014, 11:44:41 AM »
Did you put them there manually? It should replicate the convars automatically. I'll look into it.

I just tested it on a dedicated server:

Set kick threshold to 38.
Shut down the server
Restarted the server and when I opened the menu, the slider was set to 38.
« Last Edit: March 06, 2014, 11:47:12 AM by MrPresident »

Neecoe

  • Guest
Re: AWarn2 - Advanced Warning Module
« Reply #11 on: March 06, 2014, 12:19:53 PM »
type in console:


ulx groupallow owner "awarn_admin"

Let me know if it works.

Thank you so much! This fixed it.  :D 

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #12 on: March 06, 2014, 12:22:28 PM »
Also, make sure you are running the latest version too. There were a few other snafus I made.

Neecoe

  • Guest
Re: AWarn2 - Advanced Warning Module
« Reply #13 on: March 06, 2014, 02:41:40 PM »
I can't see warnings that i place.

(No errors, i just can't see them)
(Looks like they are not registering)
(I can see them in chat when i warn but not in the GUI)

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: AWarn2 - Advanced Warning Module
« Reply #14 on: March 06, 2014, 06:31:48 PM »
I'm sorry, what?