ULX

Author Topic: Warning Module v2.0 - UPDATE  (Read 25581 times)

0 Members and 1 Guest are viewing this topic.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Warning Module v2.0 - UPDATE
« 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.
« Last Edit: January 12, 2013, 07:11:39 PM by MrPresident »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Warning System
« Reply #1 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.
Experiencing God's grace one day at a time.

Mp6

  • Guest
Re: Warning System
« Reply #2 on: February 05, 2008, 05:05:02 PM »
I do not see a link to dl, is it not finished yet?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Warning System
« Reply #3 on: February 05, 2008, 05:56:18 PM »
Sign up for an account and you can see it.
Experiencing God's grace one day at a time.

Offline WildWill

  • Global Moderator
  • Full Member
  • ****
  • Posts: 100
  • Karma: 15
    • Beast_Building_Server
Re: Warning System
« Reply #4 on: February 06, 2008, 04:38:51 AM »
It's weird, I'm signed in but i can't see anything either.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Warning System
« Reply #5 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Warning System
« Reply #6 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.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline WildWill

  • Global Moderator
  • Full Member
  • ****
  • Posts: 100
  • Karma: 15
    • Beast_Building_Server
Re: Warning System
« Reply #7 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.
« Last Edit: February 07, 2008, 04:19:17 AM by WildWill »

Offline MathieuG89

  • Newbie
  • *
  • Posts: 28
  • Karma: 1
Re: Warning System
« Reply #8 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!

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Warning System
« Reply #9 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 =)

Offline MathieuG89

  • Newbie
  • *
  • Posts: 28
  • Karma: 1
Re: Warning System
« Reply #10 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!

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Warning System
« Reply #11 on: April 03, 2008, 03:34:58 PM »
New Version.. check it!

Offline MathieuG89

  • Newbie
  • *
  • Posts: 28
  • Karma: 1
Re: Warning System v2.0 - UPDATE
« Reply #12 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.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Warning System v2.0 - UPDATE
« Reply #13 on: April 03, 2008, 08:14:17 PM »
Sweet, you rock out loud MrPresident!
Experiencing God's grace one day at a time.

Offline MathieuG89

  • Newbie
  • *
  • Posts: 28
  • Karma: 1
Re: Warning System v2.0 - UPDATE
« Reply #14 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..