Иконка ресурса

Другое SourceComms (0.9.266 - 22/11/2014)

Поддерживаемые игры
  1. CS: Source (OrangeBox)
  2. CS: Source (v34)
  3. CS: GO
  4. Team Fortress 2
  5. DOD: Source
  6. L4D 1 & 2
  7. Half-Life 2: Deathmatch
  8. Synergy
  9. Codename Cure
Плагин sourcemod, который обеспечивает расширенные, временные и постоянные наказания (глушлка игрока) с полным сохранением истории в системе sourcebans. Также включает файлы и инструкции по интеграции с существующими веб-страницами sourcebans.
  • Provides a straightforward category in the sm_admin menu where administrators can punish players as well as view current comm punishments.
    • The original BaseComm menu option still exist, and will still function.
    • SourceComms plugin support toring history of punishments from BaseComm and another plugins.
    • The category provides options for issuing new punishments, removing and viewing current punishments (categorized based on the punishment), as well as a List feature that provides information about current punishments.
    • The category also modifies the player's names in all of the options to show what their current punishment is. [ ] = None, [G] = Gagged, [M] = Muted, = Silenced. I used Twisted|Panda menu code :)

    • All punishments (temporary, extended or permanent) are saved in MySQL database and are automatically reapplied (except temporary) when the punished player connects to the server. This allows punishments to be applied across multiple servers.
      • Extended punishments will automatically expire in-game at the designated time.
      • Permanent punishments remain on the player until an administrator removes them.
      • If the server has problems with access to the database, the punishments will store in SQLite database and would be added in the main database when connection is restored. (like in sourcebans plugin, yes)
    • Also you could apply punishments to multi-targets (such as @all[, @ct, @blue, etc...):
      • Multi-target punishments will not be saved in db.
      • Removing punishments from multi-targets will remove punishments temporary (not from db).
      • Allowed session (temporary) punishments and extended with length less than 30 minutes and less than DefaultTime setting.
      • Permanent multi-target punishments is not available.
    • SourceComms has support for protecting current punishments based on immunity levels.
      • When a punishment is issued, the administrator responsible has their immunity level attached to the punishment. In order to remove that punishment, the second administrator must have higher immunity level or special admin flag (ADMFLAG_CUSTOM2 by default. You may change it in sourcecode). Also, punishment can be removed by console or his author.
      • Punishments issued by CONSOLE has some immunity level (which is set in config, option "ConsoleImmunity").
      • Immunity checking system could be disabled by setting option "DisableUnblockImmunityCheck" to value 1 in config file.
      • One more important moment. When somebody removes punishment - plugin retrieves "punishment issuer admin id" from database. If the request fails - punishment could be temporary removed (on server, not in database) only by console, admin with special flag or with higher immunity.
    • Плагин имеет функцию Белого списка серверов. Если включено, плагин будет применять наказания к игрокам только с текущего сервера или серверов, перечисленных в Белом списке.
    • Причины и время наказаний, сохраненные в конфигурации. Более подробная информация о конфигурации приведена ниже.
    • SourceComms поддерживает автоматическое обновление auto-update.
  • Полная история наказаний (включает время, сервер, администратора, причину, длину блока, комментарии и т.д.).
  • Отображение типа блока в виде значка в первом столбце.
  • Отображение количества других блоков для этого игрока (steam-id) в правом конце столбца "Имя игрока" (это позволяет быстро идентифицировать обычных нарушителей).
  • Администраторы с необходимыми правами могут редактировать, удалять блоки, а также "отключать" или "отключать" (например, unban) игрока.
  • Если блокировка все еще действует, во время разблокировки или удаления веб-часть отправляет команду для отключения или включения проигрывателя на все серверы.
  • Поле поиска для быстрого поиска наказаний на всех страницах и расширенные параметры поиска на странице связи.
  • Админ-страница "Comms" для добавления новых наказаний.
  • Команда "Block Comms" в контекстном меню плеера на странице серверов

Образец веб-части вы можете посмотреть there (Логин/Пароль test/test)
Требования
  • Рабочая система sourcebans (да, вам нужен сервер MySQL и веб-сервер с PHP). В настоящее время поддерживаются версии 1.4.* (и 1.5.0 для плагина sourcebans). Integration into sourcebans 2.0 currently in development.
  • SourceMod 1.5.0-hg3761 или более новая версия требуется для использования плагина на сервере.
  • SourceMod 1.6 требуется для компиляции плагина. (Скомпилированный плагин также работает на SourceMod 1.5)
Совместимости:
  • В теории - все игры на движке Source 2009 engine.
  • Плагин тестировался в играх TF2, CS:S, CS:GO servers.
Переменные
ourcecomms_version - Версия плагина
Команды
  • sm_comms - Показывает игроку их статус связи. (Also may be used in chat as /comms)
  • sm_mute <player> <optional:time> <optional:reason> - Удаляет возможность игрока использовать голос в игре.
  • sm_gag <player> <optional:time> <optional:reason> - Удаляет возможность игрока использовать внутриигровой чат.
  • sm_silence <player> <optional:time> <optional:reason> - Удаляет возможность игрока использовать голос и чат в игре.
  • sm_unmute <player> <optional:reason> - Восстанавливает способность игрока использовать голос в игре.
  • sm_ungag <player> <optional:reason> - Восстанавливает способность игрока использовать внутриигровой чат.
  • sm_unsilence <player> <optional:reason> - Восстанавливает способность игрока использовать голос и чат в игре.
The player parameter could be Name (only as single word, without whitespaces), UserID (#127) or magic targets (like @all or @red). Look at sourcemod wiki for more details about targets.
The time parameter controls how long the player is punished. (< 0 == Temporary, 0 == Permanent, # == Minutes). If not specified it will be "DefaultTime" minutes (default value is 30).

Параметры конфигурации:
  • DefaultTime. When admin run sm_gag (mute, silence) command only with player name - player will be gagged on "DefaultTime" value minutes. (if "DefaultTime" setted in -1 -> player will be blocked only on session (until reconnect)). Value 0 (permanent) is not allowed.
  • DisableUnblockImmunityCheck (0, 1). Default value is 0. If setted to 1, player can be ungagged only by issuer admin, console or admin with special flag. Also, If 0 player maybe unblocked by Admin with higher immunity level than issuer admin had.
  • ConsoleImmunity. Default value is 0. Immunity Level of server console.
  • MaxLength, which works following way: Plugin will hide (for admins without ADMFLAG_CUSTOM 2) from menu all durations more than MaxLength and restricts punishments commands with time > MaxLength argument (or permanent).
  • OnlyWhiteListServers. Default value is 0. Set this option to 1 to applying on players punishments only from this server and servers listed in WhiteList. Value 0 applies on players punishments from any server.
Установка
Инструкции по установке Прежде всего, загрузите этот репозиторий в виде zip-файла.

  1. Загрузите все содержимое каталога game_upload из zip-файла на свой игровой сервер в папку /addons/sourcemod .
  2. Отредактируйте addons/sourcemod/configs/databases.cfg на вашем игровом сервере и добавьте секцию SourceComms. Вот такого формата:
    C-подобный:
    "sourcecomms"
    {
         "driver"            "mysql"
         "host"                "your_mysql_host"
         "database"            "your_sourcebans_database"
         "user"                "your_mysql_login"
         "pass"                "your_mysql_password"
         //"timeout"            "0"
         "port"                "your_database_port(default_3306)"
    }
  3. (ОПИЦИОНАЛЬНО) Отредактируйте /addons/sourcemod/configs/adminmenu_sorting.txt. Find } в конце файла и добавьте после:
    C-подобный:
    "sourcecomm_cmds"
    {
         "item" "sourcecomm_gag"
         "item" "sourcecomm_mute"
         "item" "sourcecomm_silence"
         "item" "sourcecomm_ungag"
         "item" "sourcecomm_unmute"
         "item" "sourcecomm_unsilence"
         "item" "sourcecomm_list"
    }
  1. Проверьте префикс таблиц sourcebans в вашей базе! Замените в запросе ниже префикс sb на свой, если вы используете другой. Выполните следующий запрос в базе данных sourcebans
  2. SQL:
    CREATE TABLE `sb_comms` (
    `bid` int(6) NOT NULL AUTO_INCREMENT,
    `authid` varchar(64) NOT NULL,
    `name` varchar(128) NOT NULL DEFAULT 'unnamed',
    `created` int(11) NOT NULL DEFAULT '0',
    `ends` int(11) NOT NULL DEFAULT '0',
    `length` int(10) NOT NULL DEFAULT '0',
    `reason` text NOT NULL,
    `aid` int(6) NOT NULL DEFAULT '0',
    `adminIp` varchar(32) NOT NULL DEFAULT '',
    `sid` int(6) NOT NULL DEFAULT '0',
    `RemovedBy` int(8) DEFAULT NULL,
    `RemoveType` varchar(3) DEFAULT NULL,
    `RemovedOn` int(11) DEFAULT NULL,
    `type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '1 - Mute, 2 - Gag',
    `ureason` text,
    PRIMARY KEY (`bid`),
    KEY `authid` (`authid`),
    KEY `created` (`created`),
    KEY `RemoveType` (`RemoveType`),
    KEY `type` (`type`),
    KEY `sid` (`sid`),
    KEY `aid` (`aid`),
    FULLTEXT KEY `authid_2` (`authid`),
    FULLTEXT KEY `name` (`name`),
    FULLTEXT KEY `reason` (`reason`)
    ) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
    или импортируйте файл sb_comms.sql (пожалуйста, проверьте префикс таблицы в файле!) в базу данных вместо копирования кода из этого руководства. 2. Если вы хотите импортировать наказания из плагина ExtendedComm:
    • Проверьте префикс таблицы sourcebans и имя таблицы extendedcomm.
    • If you have different prefix (not sb_) or table_name (not extendedcomm) - replace their in code below (or in import.sql file) to your values.
    • If your extendedcomm table is in the different database - replace in code below (or in import.sql file) extendedcomm to 'database_with_table'.'name_of_extendedcomm_table'
    • Execute folowing queries on your sourcebans database (or import import.sql file)
      C-подобный:
        INSERT INTO sb_comms (authid, name, created, length, ends, reason, type) SELECT steam_id, name, mute_time, mute_length, mute_time+mute_length, mute_reason, 1 FROM extendedcomm WHERE (mute_type='1' OR mute_type='2');
        INSERT INTO sb_comms (authid, name, created, length, ends, reason, type) SELECT steam_id, name, gag_time, gag_length, gag_time+gag_length, gag_reason, 2 FROM extendedcomm WHERE (gag_type='1' OR gag_type='2');

Установка веб - части​

  1. Загрузите все содержимое каталога web_upload из zip-файла на ваш веб-сервер в корневую папку sourcebans (которая содержит такие файлы, как index.php, config.php, getdemo.php). Размещать файлы из sourcecomms-web.zip архивируйте в свою веб-папку sourcebans.
  2. Вам нужно отредактировать несколько файлов (ПЕРЕД ЭТИМ СОХРАНИТЕ ЭТИ ФАЙЛЫ НА СВОЙ РАБОЧИЙ СТОЛ В СЛУЧАЕ НЕПРАВИЛЬНОЙ ПРОПИСИ ФАЙЛА) Инструкции по редактированию размещены в файле files_to_edit.txt from zip. Пример из этого файла: \includes\page-builder.php
  3. На линии 38 -- case "servers": -- Добавить ПЕРЕД
  4. C-подобный:
    case "commslist":
        RewritePageTitle("Communications Block List");
        $page = TEMPLATES_PATH ."/page.commslist.php";
        break;</code></pre>
  5. Это означает, что вам необходимо открыть файл <sourcebans_web_folder>\includes\page-builder.php с вашего веб-сервера найдите в нем секция "servers": на 38-ой линии (или недалеко от него) и добавить перед этой строкой следующий код:
    C-подобный:
    case "commslist":
            RewritePageTitle("Communications Block List");
            $page = TEMPLATES_PATH ."/page.commslist.php";
            break;
Автор
ppalex
Скачивания
296
Просмотры
1,180
Первый выпуск
Обновление
Оценка
0.00 звёзд 0 оценок
Сверху Снизу