Raised This Month: $416 Target: $400
 104% 

[ANY] SM Warn System 1.1.0


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ecca
Sexy Santa
Join Date: Jan 2011
Plugin ID:
3280
Plugin Version:
1.1.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    47 
    Plugin Description:
    Allows admins to warn a player when they are breaking rules instead of kick / ban them.
    Old 10-08-2012 , 10:51   [ANY] SM Warn System 1.1.0
    Reply With Quote #1

    [ANY] SM warn

    v1.1.0

    Description:
    Basically it allows server administrators to warn a player when they are breaking rules or just behaving bad. This plugin is useful because you won't lose your players as you do with kick / ban command. The plugin comes with fully customizable cVars and Sourcebans support for those who want it. The plugin also come with built in admin menu support and also cvars for punishments when they get warned.

    Commands:
    sm_warn <#userid|nick> "reason" - Warn a player.

    sm_unwarn <#userid|nick> "reason" - Deletes the newest warning on the player

    sm_checkwarn <#userid|nick> - Check a players previous warnings.

    sm_resetwarn <#userid|nick> "reason" - Erase the players warning history

    Natives:
    Spoiler



    Cvars:
    Spoiler


    Installation:

    Drag and drop the precompiled smx into (addons/sourcemod/plugins/)
    Drag and drop the translations into (addons/sourcemod/translations/)
    Drag and drop the following files into (addons/sourcemod/configs/)
    - sm_warn_reasons.cfg
    - sm_unwarn_reasons.cfg
    - sm_resetwarn_reasons.cfg
    - sm_warn_agreement.cfg

    Drag and drop SM_warn.cfg into (cfg/sourcemod/)

    Edit your databases.cfg (addons/sourcemod/configs/) and add following lines
    Spoiler


    Requirements:
    Sourcemod
    Sdktools
    Adminmenu
    Sourcebans (OPTIONAL)

    Information:
    If the cvar for logging is enabled, the plugin will create a log in addons/sourcemod/logs/SM_warn.log.

    Example log entry.

    PHP Code:
    // When an administrator warns a player
    L 10/08/2012 16:27:31ADMIN (NICKecca IDSTEAM_0:0:xxxxxx IP10.0.0.4issued a warning on PLAYER (NICKecca IDSTEAM_xxxxxx  IP10.0.0.4with reasonAbusive

    // When an administrator resets a players warnings
    L 10/08/2012 16:27:31ADMIN (NICKecca IDSTEAM_0:0:xxxxxx IP:  10.0.0.4reseted warnings on PLAYER (NICKecca IDSTEAM_xxxxxx  |  IP10.0.0.4with reasonAbusive 


    Features:
    • Warn players with reason
    • Unwarn players (will delete their history)
    • Show number of warnings for admins on connect
    • Supports logging
    • Both sqlite and MySQL support
    • Fully customizable cVars for every handle
    • Supports both sourcebans and local bans
    • Admin menu interface with reasons
    • Uses showactivity to show the warn / unwarn handles
    • Support phrases
    • Can play sounds
    • Can show motd panel
    • Can lookup players old history
    • Checking for updates automatically
    • Natives provided
    Todo:
    Translations:
    Changelog:
    Plugin:
    Quote:
    v.1.1.0 (3/02/13)
    - [Added] Natives are now provided in a small area.
    - [Added] Updater is now capable to show if the update is: recommended or critical
    - [Changed] Timer has been changed to check every third hour instead.

    v1.0.7 (19/01/13)
    - [Added] Plugin can now notify when a new version is out. Requires socket extension
    - [Fixed] Warn reason not displayed on kick
    - [Fixed] Hostname should not cause problems anymore. Please do not use unicode characters in the hostname!

    v1.0.6 Patch (24/10/12)
    - [Fixed] MySQL query problem caused by server hostname

    v1.0.6 (22/10/12)
    - [Removed] Warningscount variable not in use
    - [Removed] Warnigns bool not in use
    - [Added] Last warning reason when ban for max warnings
    - [Added] Hostname when user is warned
    - [Fixed] Warn through admin menu should work smooth again (thanks drunkenbombers)
    - [WARNING] Drop your old database!

    v1.0.5 (12/10/12)
    - [Added] The admins name & steamid are now saved to database
    - [Added] Agreement menu as punishment
    - [Added] Cute color on [SM warn] tag.
    - [Fixed] Plugin version should be correct now.
    - [Fixed] sm_checkwarn should now look a bit nice'r
    - [Fixed] sm_checkwarn date output was wrong
    - [Added] Plugin should try to reconnect to database if it loses it's connection
    - [Edited] cVar sm_warn_punishment , check the config file!+
    - [Notice] You can't use motd and warn menu option 4 togheter
    - [WARNING] Drop your old database!

    v1.0.4 (10/10/12)
    - [Added] sm_checkwarn to the admin menu
    - [Added] sm_resetwarn to the admin menu
    - [Fixed] erorr caused by the datapacket
    - [Changed] sm_unwarn, command now only resets one of the players warnings.
    - [Added] sm_resetwarn, command will erase the players warnings history completely.
    - [Added] Reason support for the new command "sm_resetwarn"
    - [Added] commands can now be found under menu category "Warnings commands"
    - [Fixed] cVars is a bit more sorted now (sorry for that)
    - [Fixed] Increased max warnings to 10
    - [Added] cVar "sm_warn_reset_warnings": Reset warnings when they reach the max warnings: 0 - Keep warnings, 1 - Delete warnings
    - If cVar is set to keep warnings the "sm_resetwarn" will be set to root flag
    - [WARNING] Delete your old database or plugin will not work as expected!

    v1.0.3 (09/10/12)
    - [Added] Whole plugins is now using translations
    - [Added] sm_unwarn to admin menu
    - [Added] 3 new translations
    - Swedish
    - German
    . French
    - [Added] Reasons is now using cfg file
    - [Added] Ability to check the players warning history (sm_checkwarn <#userid|name>)
    - [Added] Kick reason if case 4 or 5 is selected as punish
    - [Fixed] Code that waren't in use
    - [Fixed] Possible mysql injection exploit
    - [WARNING] You need to delete your old table because of sql update.

    v1.0.2 (08/10/12)
    - [Added] phrases support.
    - [Edited] Output text a little bit
    - [Added] Reasons on reseting warnings
    - [Added] Sound on warning
    - [Added] MOTD panel on warning
    - [Added] Reason support for sm_unwarn

    v1.0.1 (08/10/12)
    - [Fixed] Spell mistake: banlenght -> banlength.
    - [Added] SQLITE support
    - [Added] Reason support
    - [Removed] Command sm_warn_setup
    - [Edited] The text a little bit

    v1.0.0 (08/10/12)
    - Initial release


    Changelog:

    Translations:
    Quote:
    v1.0.7 (19/01/13)
    - [Added] Phrase "warn_update"

    v1.0.6 Patch (24/10/12)
    - [Fixed] error in the phrase "warn_warnconnect" v1.0.6 (22/10/12)
    - [Fixed] some phrases i think

    v1.0.5 (12/10/12)
    - [Fixed] Translations should now be completed

    v1.0.4 (10/10/12)

    - [Added] alot of translations because of new command
    - [Fixed] French translation incompleted
    - [Fixed] German translation incompleted
    - [Fixed] Swedish translation grammar

    v1.0.3 (09/10/12)

    Supported languages:
    Swedish
    French
    German
    Dutch
    Russian (https://forums.alliedmods.net/showpo...&postcount=136) Included in next update
    NOTE:
    Translations and plugin version is not the same. I'll post them seperate and i've created a own changelog for translations above

    Download here: Github

    Last edited by ecca; 03-24-2015 at 04:42. Reason: Updated link
    ecca is offline
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 10-08-2012 , 11:18   Re: [ANY] SM Warn 1.0.0
    Reply With Quote #2

    Sound interesting but:
    - you cannot choose what kind of warning you send to the player, like camping, swearing, spaming(...) ?
    - Would the command be available in the admin menu (i.e. in the player commands), like the kick/ban options?
    Mirandor is offline
    FaTony
    BANNED
    Join Date: Aug 2008
    Old 10-08-2012 , 11:31   Re: [ANY] SM Warn 1.0.0
    Reply With Quote #3

    You could use clientprefs to store the number of warnings.

    Quote:
    sm_warn_banlenght "1"
    Length.

    Last edited by FaTony; 10-08-2012 at 11:31.
    FaTony is offline
    ecca
    Sexy Santa
    Join Date: Jan 2011
    Old 10-08-2012 , 11:47   Re: [ANY] SM Warn 1.0.0
    Reply With Quote #4

    @Mirandor

    You can already use the command through the admin menu. It will be sorted under menu "Player Commands".

    I will add reason's to my todo list.

    @FaTony

    I will add a sqlite version when i understand sqlite. Also im going to correct that spell mistake

    Last edited by ecca; 10-08-2012 at 11:49.
    ecca is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 10-08-2012 , 12:23   Re: [ANY] SM Warn 1.0.0
    Reply With Quote #5

    I hate to ask, but I have to:

    Why choosing this over Twisted Pandas one?

    What does a warning look like? A chatmessage? With TwistedPandas Plugin I am able to set a webpage to show in MOTD-Window and I am able to play a warning Sound.

    Does this Plugin show how many warnings a player gained in the after he joined?

    I would love to replace TwistedPandas with your Plugin, but can you please add this features?

    - Warning reason
    - Sound
    - MOTD-Panel

    Regards Mic
    __________________
    micazoid is offline
    ecca
    Sexy Santa
    Join Date: Jan 2011
    Old 10-08-2012 , 12:59   Re: [ANY] SM Warn 1.0.1
    Reply With Quote #6

    Updated:
    • v1.0.1 (08/10/12)
      • Corrected spell mistake: banlenght -> banlength.
      • Added SQLITE version. (please delete your old MySQL table)
      • Added reason support.
      • Removed command sm_warn_setup -> Replaced with automatic database setup
      • Changed text a little bit

    @micazoid
    Could you please explain the feature "motd" panel.

    ---

    Also i added a feature list in the first post of the plugin

    Last edited by ecca; 10-08-2012 at 13:01.
    ecca is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 10-08-2012 , 13:14   Re: [ANY] SM Warn 1.0.1
    Reply With Quote #7

    Quote:
    Also i added a feature list in the first post of the plugin
    Sorry I have not seen that ^^

    MOTD-Panel:
    If you warn someone the warned one gets the Panel where the MOTD is in. (MOTD=Message of the Day, the screen that appears if you connect to a server) The Admin can set, what URL is shown in the panel. For example on our Server this Page is shown.
    __________________
    micazoid is offline
    ecca
    Sexy Santa
    Join Date: Jan 2011
    Old 10-08-2012 , 13:16   Re: [ANY] SM Warn 1.0.1
    Reply With Quote #8

    Sure i will add that to the next version of the plugin.
    ecca is offline
    Mirandor
    Senior Member
    Join Date: Jun 2006
    Location: Ile de France
    Old 10-08-2012 , 13:23   Re: [ANY] SM Warn 1.0.1
    Reply With Quote #9

    Code:
    SM_warn.sp(6) : fatal error 120: cannot read from file: "sourcebans"
    sourceban is needed to re-compile?
    Mirandor is offline
    ecca
    Sexy Santa
    Join Date: Jan 2011
    Old 10-08-2012 , 13:27   Re: [ANY] SM Warn 1.0.1
    Reply With Quote #10

    It shouldnt be. My plugin uses

    PHP Code:
    #undef REQUIRE_PLUGIN 
    Which should remove the requirement from sourcebans inc file

    Last edited by ecca; 10-08-2012 at 13:28.
    ecca is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 15:09.


    Powered by vBulletin®
    Copyright ©2000 - 2017, vBulletin Solutions, Inc.
    Theme made by Freecode