Raised This Month: $51 Target: $400
 12% 

[ANY]Warning system[UPDATED 2011-12-12]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
MindeLT
Senior Member
Join Date: Dec 2010
Location: Lithuania
Plugin ID:
2369
Plugin Version:
1.0b
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    Advanced players warning system. Very helpful for warning and punishing players. Stores info to MySQL.
    Unapprover:
    Reason for Unapproving:
    Potential for SQL Injection, see #106 for more information.
    Old 06-04-2011 , 07:27   [ANY]Warning system[UPDATED 2011-12-12]
    Reply With Quote #1



    Requirements:
    MySQL database.
    Colors snippet
    SourceBans


    MySQL table(execute this in your database):
    PHP Code:
    CREATE TABLE user_warn (
      
    id int(10unsigned NOT NULL auto_increment,
      
    nick varchar(65NOT NULL,
      
    steam_id varchar(65NOT NULL,
      
    warn int(10NOT NULL,
      
    reason varchar(65NOT NULL,
      
    admin varchar(65NOT NULL,
      
    PRIMARY KEY (id)
    ); 
    Descripction:

    This plugin gives admin ability to warn player. After the player reaches warnings thereshold, he gets punished. There are two ways to punish player: KICK, or BAN. BAN time is currently changeable in .cfg. All the data is stored in MySQL(id, nick, steam_id, warn, admin, reason).

    Features:

    Admin can warn player easily, without saying him anything, or begging.
    Option to choose punishment.
    Option to choose max warning thereshold.
    Option to choose punishments reason.
    Option to choose ban lenght.
    Players can check their warnings by typing in chat !mywarn or /mywarn.

    v1.0alpha features:
    Option to punish player every warn.
    Option to enable warn sound.
    6 Different EVERY warn punishment options:
    1- Kick
    2- Freeze
    3- Slap
    4- Slay
    5- Freeze until agreement(player must read rules, before unfreeze)
    6- Ban
    Option to customize freeze time
    Option to customize slap damage
    Option to customize agreement word(chat triggered)
    Option to customize ban lenght
    Option to double ban time, each warn player gets.
    Warn system announcement.
    Adminmenu integration
    Reasons storage in MySQL
    Admin storage in MySQL
    SourceBans support
    Translanslations support





    Command Usage:

    sm_warn <nick> <reason>
    !mywarn or /mywarn - displays your warnings status.

    ConVars:
    warn_version : Plugin version

    warn_system "1" : Enables/disables Warning System plugin. Default: 1

    warn_ban_reason "[WARN] You've been bad boy. Take a rest" : Ban punishment reason. Default: "[WARN] You've been bad boy. Take a rest"

    warn_ban_time "60" : Ban punishment lenght in minutes. Default: 60 minutes.

    warn_kick_reason "[WARN] Slow down, Bieber" : Kick punishment reason. Default: "[WARN] Slow down, Bieber"

    warn_max "5" : Maximum warnings thereshold. Default: "5"

    warn_punishment "2" : Punishment. 1-Kick 2- Ban. Default: 2

    v1.0alpha ConVars:

    warn_punish_every "1" : Ability to punisher client every warn they get <1-enable, 2-disable>

    warn_punishment_sound "1" : Punishment sound for client, every warn. <1-enable, 2-disable>

    warn_every_warn_bantime "5" : How long to ban player every warn. Minutes.

    warn_every_warn_bantime_double "1" : Double bantime then getting more warns.

    warn_every_punishment "5" : Punishment for every warn client gets. <1-kick, 2-freeze, 3-slap, 4-slay, 5-chat agreement(with freeze) 6- ban>.

    warn_agreemen_word "sutinku" : Agreement word, which must be typed. Required: <warn_every_punishment 5>

    warn_freeze_time "5.0" : Warn freeze time. Required: <warn_every_punishment 2>

    warn_slap_damage "30" : Warn slap time. Required: <warn_every_punishment 3>"

    warn_announce "1" : Warning announcement."

    Languages supported:
    • Lithuanian
    • English

    Special thanks:

    Peace-Maker - you helped me a lot with those MySQL functions. Thanks
    EuroCSS.LT - inspires me to develop something new.

    Changes:
    v1.0alpha

    • Option to punish player every warn.
    • Option to enable warn sound.
    6 Different EVERY warn punishment options:
    1- Kick
    2- Freeze
    3- Slap
    4- Slay
    5- Freeze until agreement(player must read rules, before unfreeze)
    6- Ban
    • Option to customize freeze time
    • Option to customize slap damage
    • Option to customize agreement word(chat triggered)
    • Option to customize ban lenght
    • Option to double ban time, each warn player gets.
    • Warn system announcement.
    • Adminmenu integration
    Reasons storage in MySQL
    Admin storage in MySQL
    SourceBans support
    Translanslations support

    v0.4a
    • Replaced all the queries to SQL_TQueries(Thearded), and added Thearded connection, so it wont lag anymore(Thanks to Peace-Maker)
    • Added ConsoleCmd for /mywarn
    • Added Public notify cvar.
    Attached Files
    File Type: txt plugin.warn_system.txt (4.6 KB, 614 views)
    File Type: sp Get Plugin or Get Source (warn_sistema_v1.0b.sp - 606 views - 21.6 KB)
    File Type: smx warn_sistema_v1.0b.smx (16.7 KB, 506 views)

    Last edited by MindeLT; 12-14-2011 at 16:44. Reason: 1.0b release
    MindeLT is offline
    Send a message via Skype™ to MindeLT
     



    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 17:21.


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