View Single Post
Author Message
potatoz
AlliedModders Donor
Join Date: Nov 2016
Old 02-25-2017 , 10:55   [ANY] Simple Warn (UPDATE 17/08/2018)
Reply With Quote #1

SIMPLE WARN
as made by potatoz



DESCRIPTION
this is the public version of my plugin "Warn". This plugin is quite basic really, it allows admins to warn players and easily check how many warnings a player has. Admins are also automatically notified when a player with any warnings joins the server. Last but not least, if a player gets 3 or more warnings in a single round, this player will get banned in 10 minutes with reason "S-WARN: Too many Warnings".

COMMANDS
!warn <name|#userid> [reason] - Warn client (ADMFLAG_BAN)
!resetwarnings <name|#userid> - Reset a client's warnings (ADMFLAG_ROOT)
!warnings <name|#userid> - Check how many warnings a client has on record

CVARS
sm_warn_maxwarnings_enabled - Enable automatic ban after max amount of warnings reached? 1 = Enabled 0 = Disabled, Default = 1
sm_warn_maxwarnings - Max amount of total warnings before banning a player (if enabled), 0 = Disabled, Default = 0
sm_warn_maxwarnings_reset - Reset warnings after automatic ban? 1 = Enabled 0 = Disabled, Default = 1
sm_warn_banduration - How long shall a player be banned after recieving max amount of warnings (in minutes)? Default = 15
sm_warn_maxroundwarnings - Max amount of warnings in a single round before banning a player (if enabled), Default = 3

NOTE
All ConVars are easily changed in <gamefolder>/cfg/sourcemod/plugin_simplewarnings.txt (This file is auto-generated on first launch)
Attached Files
File Type: sp Get Plugin or Get Source (simple_warn.sp - 954 views - 6.0 KB)
__________________

Last edited by potatoz; 08-17-2018 at 07:06. Reason: - New Convars
potatoz is offline