Raised This Month: $32 Target: $400
 8% 

Player Warnings v1.1.3 (Updated: 6/23/12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Plugin ID:
2498
Plugin Version:
1.1.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Provides configurable support for warning players, placing them in timeout, as well as tracking the infraction count.
    Old 08-16-2011 , 12:47   Player Warnings v1.1.3 (Updated: 6/23/12)
    Reply With Quote #1

    Description:
    • Provides the ability for your administrators to warn players who are violating server rules, and place the ones that are simply not listening in timeout for a specifiable period of time.
    Features:
    • The warning command, sm_warn, and the timeout command, sm_timeout, can be configured to play a specific sound upon issue, force the client to execute a specific command, execute a specific server command on the client, and/or display a motd panel upon the client.
    • For example, you can force the client to "say !rules" or display your rules web page, or sm_slay {clientUser}, or both.
    • Database (sqlite/mysql) and ClientPrefs support for tracking the total number of warnings and timeouts a player has been issued, as well as for saving current timeout information for multiple server support, in addition to logging past punishments.
    • Provides an in-game list command, sm_warnlist, which allows you to view current warning/timeout values as well as any current timeouts.
    • Provides a forgive command, sm_forgive, if punishments are accidental or you feel bad for picking on an annoying child.
    ConVars:
    • sm_warnings_database: Controls what database configuration to use for warnings. Use "" for ClientPrefs.
    • sm_warnings_database_table: Controls what table the database will utilize if non-clientprefs.
    • sm_warnings_logging_database: Controls what database configuration to use for logging warnings. Use "" for Log files.
    • sm_warnings_logging_database_table: Controls what table the database will utilize if non log files.
    • sm_warnings_logging_database_path: Controls what table log file the plugin will use for logging if non-database.
    • sm_warnings_warn_cmd: The client command to be issued on the client upon being warned by an administrator.
    • sm_warnings_warn_url: The address to be issued to the client in a motd window upon being warned by an administrator.
    • sm_warnings_warn_sound: The sound to be played to the client upon being warned by an administrator.
    • sm_warnings_warn_duration: The number of seconds the center print will appear for a warned player. (0.0 = Disable Repeating Prints)
    • sm_warnings_timeout_cmd: The client command to be issued on the client upon being placed in time out.
    • sm_warnings_timeout_url: The address to be issued to the client in a motd window upon being placed in time out by an administrator.
    • sm_warnings_timeout_sound: The sound to be played to the client upon being placed in time out by an administrator.
    • sm_warnings_timeout_duration: The number of seconds the center print will appear for a player placed in timeout. (0.0 = Disable Repeating Prints)
    • sm_warnings_timeout_notify: If enabled, clients in timeout will receive a continuous center notification displaying the remaining time. (0 = Disabled, 1 = Enabled)
    • sm_warnings_expire_duration: The number of seconds the center print will appear for a player whos timeout has expired. (0.0 = Disable Repeating Prints)
    • sm_warnings_notify_warnings: The minimum number of warnings needed to warn in-game administrators of connection. (0 = Disabled)
    • sm_warnings_notify_timeouts: The minimum number of timeouts needed to warn in-game administrators of connection. (0 = Disabled)
    • sm_warnings_notify_admins: Players with this flag currently in-game will be notified of a player connecting that meet warning criteria, if they do not have the defined override.
    • sm_warnings_notify_admins_override: Players with this override currently in-game will be notified of a player connecting that meet warning criteria. ("" = Disabled)
    Installation:
    Spoiler
    - Database: SQLite
    Spoiler
    - Database: MySQL
    Spoiler
    Attached Files
    File Type: txt sm_player_warnings.phrases.txt (4.9 KB, 838 views)
    File Type: sp Get Plugin or Get Source (sm_player_warnings.sp - 460 views - 51.9 KB)
    File Type: smx sm_player_warnings.smx (28.5 KB, 469 views)
    __________________

    Last edited by thetwistedpanda; 06-23-2013 at 04:34.
    thetwistedpanda is offline
    island55
    Senior Member
    Join Date: Aug 2010
    Location: charleston
    Old 08-16-2011 , 12:55   Re: [ANY] Player Warnings
    Reply With Quote #2

    very nice.
    island55 is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 08-16-2011 , 14:21   Re: [ANY] Player Warnings
    Reply With Quote #3

    this will come in handy... It will be perfect for when someone asks "why blah blah" and I can point them and force them to look at and read the MOTD which explains 99% of all questions
    TnTSCS is offline
    sinblaster
    Grim Reaper
    Join Date: Feb 2010
    Location: Australia
    Old 08-16-2011 , 18:47   Re: [ANY] Player Warnings
    Reply With Quote #4

    AWESOME EFFORT
    __________________
    Happy Happy Joy Joy

    sinblaster is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 08-17-2011 , 13:47   Re: [ANY] Player Warnings
    Reply With Quote #5

    Version 1.0.2 released; minor bug fix.
    __________________
    thetwistedpanda is offline
    ecca
    Sexy Santa
    Join Date: Jan 2011
    Old 08-17-2011 , 20:07   Re: [ANY] Player Warnings
    Reply With Quote #6

    Very nice Twistedpanda
    __________________
    ecca is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 11-12-2011 , 09:28   Re: [ANY] Player Warnings
    Reply With Quote #7

    Plugin doesnt work

    Quote:
    15:27:59 [SM] Plugin encountered error 4: Invalid parameter or parameter type
    15:27:59 [SM] Native "Format" reported: Language phrase "Prefix_Chat" not found
    15:27:59 [SM] Displaying call stack trace for plugin "sm_player_warnings.smx":
    15:27:59 [SM] [0] Line 190, sm_player_warnings.sp::OnConfigsExecuted()
    Didn't compile it by myself (laaaazy XD )

    I used the compiled version

    EDIT:
    Selcompiled version works. Nice Plugin Panda
    __________________

    Last edited by micazoid; 11-12-2011 at 09:44.
    micazoid is offline
    thetwistedpanda
    Good Little Panda
    Join Date: Sep 2008
    Old 12-08-2011 , 09:57   Re: Player Warnings v1.0.4 (Updated: 12/8/11)
    Reply With Quote #8

    Revision 1.0.4 Released
    • Plugin now hides all SM activity messages when silencing/unsilencing players due to Timeout.
    • Fixed a bug where late loading didn't grab a player's steamid, preventing the plugin from working until map change / reconnect.
    • Expanded the general functionality of Player Warnings: Now with SQLite/MySQL Support
      • Tracks a player's number of warnings and timeouts.
      • Timeouts are stored in the database, rather than temporary Trie, so punishments do not end early.
      • Reverts to the temporary Trie if the database isn't configured or invalid.
      • Due to database support, now functions across multiple servers.
      • If sm_warnings_database isn't defined, defaults to "storage-local", a local sqlite database.
    • Added sm_warnlist, an admin command that displays information stored by the database.
      • Displays a player's total number of warnings and timeouts, as well as information pertaining to their current timeout, if applicable.
    • The cvar sm_warnings_timeout_duration is now sm_warnings_timeout_notify and has modified functionality.
    • The timeout notification now keeps track of the decreasing time, letting the punished player know just how long he/she has left.
    • Portions of the code have been rewritten/reworked to improve performance and functionality.
    • Translations have been rewritten to be a tad more descriptive.
    __________________
    thetwistedpanda is offline
    xomp
    BANNED
    Join Date: Jul 2008
    Old 12-08-2011 , 17:19   Re: Player Warnings v1.0.4 (Updated: 12/8/11)
    Reply With Quote #9

    Awesome work dude!
    xomp is offline
    Send a message via Skype™ to xomp
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 12-09-2011 , 03:53   Re: Player Warnings v1.0.4 (Updated: 12/8/11)
    Reply With Quote #10

    Is the SQL Database now needed for any sake, or can I run it still without? I choose this plugin over others, because I haven't to put up a Database. I am not that kind of database guy XD
    __________________
    micazoid 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 09:53.


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