Ulysses

Ulysses Stuff => Releases => Ulysses Release Archives => Topic started by: MrPresident on January 12, 2008, 04:47:07 AM

Title: Warning Module v2.0 - UPDATE
Post by: MrPresident on January 12, 2008, 04:47:07 AM
NOTE: THIS ADDON IS FOR AN OLDER VERSION OF ULX AND GMOD12.
There is a new version of this addon called AWarn. Please see that thread for GM13 compatible versions.

This addon requires ULib... but not ULX to function properly.

This gives admins an easy way to warn a user for something they are doing. The addon keeps track of the user's warnings across a server session, so if the user leaves the server and comes back they will retain their current number of warnings. However, if the server is reset, the warnings will be too.

~~New to version 2.0~~
-Retaining warnings across client sessions
-Warnings can decay over time

~~How to Use~~
chat
!warn <player> [reason]
<player> can be a partial name and [reason] is option and does not need to be in quotes.

console
warn <player> [reason]
<player> can be a partial name and [reason] is option and does not need to be in quotes.
This is good for dedicated consoles.

~~Setting this up~~
Go in to the warn2.lua file and there are 4 things to change at the top
Amount of warns needed to kick the user
Groups allowed to use this command (groups should be in quotes and separated by commas)
Should warnings decay over time
How long should it take for 1 warning to decay.


This script is not as versatile as its predecessor in the fact that it isn't a ULX module so it can't be used easily with the accesses in ULX, but it should be more usable in that people who choose to run a different admin modification can still use this (provided they have ULib installed).

Ideas, comments?

As always... feel free to make suggestions, I'm always willing to take in good constructive criticism or suggestions to make my work better.
Title: Re: Warning System
Post by: Megiddo on January 12, 2008, 07:08:30 AM
Very nice!

How about one that keeps track of warns across disconnects? It should have a cooldown rate, but archive the warnings in a way other admins can look at them.
Title: Re: Warning System
Post by: Mp6 on February 05, 2008, 05:05:02 PM
I do not see a link to dl, is it not finished yet?
Title: Re: Warning System
Post by: Megiddo on February 05, 2008, 05:56:18 PM
Sign up for an account and you can see it.
Title: Re: Warning System
Post by: WildWill on February 06, 2008, 04:38:51 AM
It's weird, I'm signed in but i can't see anything either.
Title: Re: Warning System
Post by: JamminR on February 06, 2008, 04:49:24 AM
Code: [Select]
By default the max warns is set to 3.


* WarnSystem.zip (1.9 KB - downloaded 9 times.)

Registered users should see it in a small link below that line in his post above his signature.
Odd.
Title: Re: Warning System
Post by: spbogie on February 06, 2008, 06:42:59 AM
Will,
I had a similar problem a while ago. Meg was able to fix it no problem though.
Title: Re: Warning System
Post by: WildWill on February 06, 2008, 02:56:57 PM
Ah yes, everything seems to be working fine now, thanks :)

Nice work there Zakap, I'm gonna give this  a go on the server this week.
Title: Re: Warning System
Post by: MathieuG89 on April 01, 2008, 07:44:56 PM
Thank you Zakap for this great addon. It is very helpful when someone does something that doesn't deserve a kick or a ban and the 3 strikes rules makes it even better!
Title: Re: Warning System
Post by: MrPresident on April 01, 2008, 08:53:29 PM
Concept was good.. didn't take enough time in coding it.. and I have a greater understanding of lua now.. I should remake it =)
Title: Re: Warning System
Post by: MathieuG89 on April 01, 2008, 08:56:04 PM
I don't know what you could add to make this better, it's perfect in my opinion but hey you guys always keep on surprising me so I can't wait to see what you will come up with!
Title: Re: Warning System
Post by: MrPresident on April 03, 2008, 03:34:58 PM
New Version.. check it!
Title: Re: Warning System v2.0 - UPDATE
Post by: MathieuG89 on April 03, 2008, 07:40:32 PM
Sweetness! I'm going to upgrade my server with this release, I had 1.0 but this one seems even better. Thank you.
Title: Re: Warning System v2.0 - UPDATE
Post by: Megiddo on April 03, 2008, 08:14:17 PM
Sweet, you rock out loud MrPresident!
Title: Re: Warning System v2.0 - UPDATE
Post by: MathieuG89 on April 07, 2008, 08:40:29 AM
Not working on my server, the "Warn2" folder is in the "Addons" folder of Garry's mod on my FTP but still the server seems to ignore it. But then it might not be your addon but probably ULX who seems to break and corrupt everything at the moment on my server..
Title: Re: Warning Module v2.0 - UPDATE
Post by: Hardy on February 01, 2009, 09:29:58 AM
Hmm... Is there logging who warned who for what ? =)
Title: Re: Warning Module v2.0 - UPDATE
Post by: Tom on September 30, 2009, 10:55:21 AM
Yeah is there logging?

Also, how do you remove warnings?
Title: Re: Warning Module v2.0 - UPDATE
Post by: JamminR on September 30, 2009, 03:28:09 PM
There is no logging.
There is no manual way of removing warnings, the script defaults to 15 minutes per each warning removed.
Open the lua file, there are three settings near the top.
How many warnings before kick,
decay time, and one other I now forget.
Title: Re: Warning Module v2.0 - UPDATE
Post by: ben1066 on October 31, 2009, 11:53:16 AM
How about if you make it so the warnings stay over restarts and you can specify how long it should last?
Title: Re: Warning Module v2.0 - UPDATE
Post by: MrPresident on November 05, 2009, 05:22:05 AM
Unless someone else decides to pick this up in the mean time.. This may be one of my projects as well as an updated version of my anti-afk scripr once I get back into the swing of things. I couldn't tell you how long that'll be. I'm keeping my wits up on coding though.. doing a lot of web scripting and a lot of .net coding for work out here, but alas no Gmod or lua.. but skills are skills are skills... right?
Title: Re: Warning Module v2.0 - UPDATE
Post by: coolwilliam on April 06, 2010, 10:56:43 AM
you should make one that bans instead of kicks like pulsar effects ban points system
Title: Re: Warning Module v2.0 - UPDATE
Post by: MrPresident on April 07, 2010, 01:54:29 PM
Working on a new version now... It's almost done.. just need some time to test it out before releasing it..

It will feature:
Logging - Sorry.. I don't want to make this dependent on ULX.. Maybe if enough people want it I can make a ULX version.
Cross session (using SQLite.. don't worry it's built in to GMod.)
Optional Client interface to show warnings
Additional Control for admins
Banning as WELL as kicking for certain warning levels


Should be released in the next couple of days I would think.
Title: Re: Warning Module v2.0 - UPDATE
Post by: biggsy on March 24, 2011, 02:41:23 PM
is there a way to set it to ban users? :-\ :-\
Title: Re: Warning Module v2.0 - UPDATE
Post by: drake90001 on April 30, 2011, 07:27:59 AM
Can we make it so we can do "warn [SteamID] <Reason>"? That woudl be great :3
Title: Re: Warning Module v2.0 - UPDATE
Post by: SuperAero_ on January 12, 2013, 03:09:25 AM
Is it possible to have this updated to GM13 soon? Thanks
Title: Re: Warning Module v2.0 - UPDATE
Post by: MrPresident on January 12, 2013, 07:10:03 PM
Updated for GMOD13. I'm going to lock this thread. Please see the new thread for the new version.