[ANY] SM warn
v1.0.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_setup - Will create the necessary tables for the plugin. This command will requier root access or be run through the server console.sm_warn <#userid|nick> - Warn a player.sm_unwarn <#userid|nick> - Deletes a players warnings from the database completely.Cvars: Quote: // Time to ban target: 0 - permanent// -// Default: "1"sm_warn_banlenght "1"// Log the admin commands: 0 - disabled, 1 - enabled// -// Default: "1"// Minimum: "0.000000"// Maximum: "1.000000"sm_warn_logwarnings "1"// Action to set when a player reach max warnings: 0 - reset warnings, 1 - kick and reset warnings, 2 - ban and reset warnings// -// Default: "1"// Minimum: "0.000000"// Maximum: "2.000000"sm_warn_max_punishment "1"// Set max warnings reached before action// -// Default: "3"// Minimum: "1.000000"// Maximum: "3.000000"sm_warn_maxwarns "3"// Print previous warnings on connect to admins: 0 - disabled, 1 - enabled// -// Default: "1"// Minimum: "0.000000"// Maximum: "1.000000"sm_warn_printtoadmins "1"// Action to set when a player gets a warning: 0 - nothing, 1 - message player, 2 - slap player and message, 3 - slay player and message, 4 - kick player, 5 - ban player// -// Default: "2"// Minimum: "0.000000"// Maximum: "5.000000"sm_warn_punishment "2"// Slap player with damage: 0 - no damage// -// Default: "0"// Minimum: "0.000000"// Maximum: "100.000000"sm_warn_slapdamage "0" Installation:Drag and drop the precompiled version into addons/sourcemod/plugins and if you want you could also drop the uploaded config file with the cvars to cfg/sourcemod/.Requirements:SourcemodSdktoolsAdminmenuSourcebans (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:L 10/08/2012 - 16:27:31: ADMIN (NICK: ecca | ID: STEAM_0:0:xxxxxx | IP: 10.0.0.4) issued a warning on PLAYER (NICK: ecca | ID: STEAM_xxxxxx | IP: 10.0.0.4)
Setup:Edit your databases.cfg (addons/sourcemod/configs/) and add following lines PHP Code:"warn"{ "driver" "mysql" "host" "" "database" "" "user" "" "pass" "" //"timeout" "0" //"port" "0"}
Changelog:- v1.0.0 (08/10/12)
- Initial release



Wyświetl pełny artykuł