AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Player Warnings v1.1.3 (Updated: 6/23/12) (https://forums.alliedmods.net/showthread.php?t=164861)

thetwistedpanda 08-16-2011 12:47

Player Warnings v1.1.3 (Updated: 6/23/12)
 
3 Attachment(s)
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

island55 08-16-2011 12:55

Re: [ANY] Player Warnings
 
very nice.

TnTSCS 08-16-2011 14:21

Re: [ANY] Player Warnings
 
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 :)

sinblaster 08-16-2011 18:47

Re: [ANY] Player Warnings
 
AWESOME EFFORT

thetwistedpanda 08-17-2011 13:47

Re: [ANY] Player Warnings
 
Version 1.0.2 released; minor bug fix.

ecca 08-17-2011 20:07

Re: [ANY] Player Warnings
 
Very nice Twistedpanda

micazoid 11-12-2011 09:28

Re: [ANY] Player Warnings
 
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

thetwistedpanda 12-08-2011 09:57

Re: Player Warnings v1.0.4 (Updated: 12/8/11)
 
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.

xomp 12-08-2011 17:19

Re: Player Warnings v1.0.4 (Updated: 12/8/11)
 
Awesome work dude!

micazoid 12-09-2011 03:53

Re: Player Warnings v1.0.4 (Updated: 12/8/11)
 
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


All times are GMT -4. The time now is 07:21.

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