Skocz do zawartości

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse
 

Zdjęcie

[ANY] SM Warn 1.0.0


  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 489
  • Lokalizacja:AMXX.PL
Offline

Napisano 08.10.2012 15:51

[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
Attached Files Dołączona grafika Get Plugin or Get Source (SM_warn.sp - 13.9 KB) Dołączona grafika SM_warn.smx (10.4 KB) Dołączona grafika SM_warn.cfg (1.3 KB)

Wyświetl pełny artykuł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych