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.