ULX

Author Topic: A warning system  (Read 6677 times)

0 Members and 1 Guest are viewing this topic.

Offline Dylan

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
A warning system
« on: October 31, 2010, 10:03:07 AM »
I jsut think it would be awesome to setup a database that keeps count of warnings per user, so instead of manually administrating and keeping track of minges in your head, you can see where other admins have warned him, there could be a table kept of how many times and why a user has been warned, and "after x warnings the user is x" could be handled in a text file

and jsut in the above mentioned text file could be like
Quote
1 slap 1
2 slap 5
3 slay
4 kick
5 ban 60
etc.

command: ulx warn [User] {reason} {add this many points to their warn level instead of +1}

maybe another command: ulx viewwarnings [user]
would bring up a derma showing their past offenses


and your record is cleaned after like, 30 days after your last offense? or some convar variabled amount

just had this thought while standing around on the server I admin on, probably some flaws but that's why this is a suggestions subforum I guess

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: A warning system
« Reply #1 on: October 31, 2010, 02:42:03 PM »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: A warning system
« Reply #2 on: October 31, 2010, 03:23:22 PM »
Huh, what?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: A warning system
« Reply #3 on: October 31, 2010, 06:35:55 PM »
Just mentioning to Dylan that a warning module exists for non-SVN, and stating that once ULib SVN goes release, you can update it to work with current codebase, and perhaps take some of his ideas into consideration for additional feature.

Now, you can go back to your nap. :P
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: A warning system
« Reply #4 on: October 31, 2010, 07:04:53 PM »
Funny story is.. I actually had a completely rewritten update for my warning plugin ready to release as soon as I could test it...

Well.. it's not so funny.. I lost it.. oh well. I'll rewrite it soon. It's on my list of things to do.. as well as my AFK Script.

Offline Dylan

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: A warning system
« Reply #5 on: November 04, 2010, 02:23:06 PM »
doh, never saw that
anyways, I'll probably adapt it to use SQL and store that info overtime assuming mr.president doesn't mind that I modify it?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: A warning system
« Reply #6 on: November 04, 2010, 04:02:12 PM »
*sigh* I really need to find time and motivation to dig into our codebase.
I think ULib now has some SQL, or at the least, SQL Lite, capabilities now.
(Hmm. Just checked out http://www.ulyssesmod.net/docs . Not sure it updates when we SVN commit, but, couldn't find any)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Dylan

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: A warning system
« Reply #7 on: November 04, 2010, 07:51:55 PM »
yah, checked too, nothing popped up in search for "sql", "lite", or "MySQL"

it's cool though it'll only take a few minutes to set it up

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: A warning system
« Reply #8 on: November 05, 2010, 08:13:27 AM »
I don't mind. Though I was planning on using SQLite in a future update of my own, but I don't have any idea when that will be so...

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: A warning system
« Reply #9 on: November 06, 2010, 07:21:34 AM »
*sigh* I really need to find time and motivation to dig into our codebase.
I think ULib now has some SQL, or at the least, SQL Lite, capabilities now.
(Hmm. Just checked out http://www.ulyssesmod.net/docs . Not sure it updates when we SVN commit, but, couldn't find any)


No native SQL functionality, just really easy to add it if someone wants to. :)
Experiencing God's grace one day at a time.

Offline riki137

  • Newbie
  • *
  • Posts: 44
  • Karma: 0
  • lol wuttermelon
    • SapphireWebsites
Re: A warning system
« Reply #10 on: November 09, 2010, 08:38:04 AM »
I agree this update for ulx warn would be good.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: A warning system
« Reply #11 on: November 10, 2010, 08:07:37 AM »
No promises.. but I have the next 4 days off with nothing to do...

Maybe I can engineer something.