[VIP] Ban

Тема в разделе "Модули", создана пользователем code++, 12 ноя 2015.

  1. code++

    code++

    Сообщения:
    250
    Симпатии:
    28
    [VIP] Ban

    Версия: 1.0.2

    Требование:
    [VIP] Core версии не ниже 1.1.0 R

    Описание:
    Возможность забанить игрока из VIP-меню.

    Парметры:
    Код:
    "Ban"        "1"
    Настройки в файле: addons/sourcemod/data/vip/modules/ban.ini

    Код:
    1.0.0 - Релиз
    1.0.2 - Добавлено отображение забаненых игроков в Sourcebans
    
     

    Вложения:

    Последнее редактирование: 5 авг 2016
  2. R1KO

    R1KO Супер-модератор

    Сообщения:
    6.000
    Симпатии:
    2.992
    code++, 1. Вынеси время в кфг, а лучше еще и причины.
    2. Залей файл сюда, а не на сторонний ресурс.
    3. Архив кажись пустой
     
  3. Hejter

    Hejter Mapper Source Engine

    Сообщения:
    1.771
    Симпатии:
    259
    Научишь?

    Добавлено через 51 секунду
    code++, не знаю зачем ты меня просил доработать, ведь это легко сделать, а вот вынести в кфг не очень.
     
    Последнее редактирование: 12 ноя 2015
  4. White Wolf

    White Wolf [] (int _n) -> double { return (_n % 2) == 0;}); Супер-модератор

    Сообщения:
    1.193
    Симпатии:
    424
  5. code++

    code++

    Сообщения:
    250
    Симпатии:
    28

    да нет не на работает тоесть плагин загружаеться но при выборе функции Забанить Игрока закрываеться меню випов и все при этом в консоль выдает

    Tried to look up command say as if it were a variable.
     
  6. Hejter

    Hejter Mapper Source Engine

    Сообщения:
    1.771
    Симпатии:
    259
    Это то понятно. Мне нужно вынести время бана в конфиг, а как его получить?
    Посмотрел исходник basebans, но что-то не вкурил.
    Могу в квар, но в конфиг не могу.
     
  7. R1KO

    R1KO Супер-модератор

    Сообщения:
    6.000
    Симпатии:
    2.992
    Ошибок уйма. начал переделывать.

    неее, можно куда более удобнее через кв.
     
  8. R1KO

    R1KO Супер-модератор

    Сообщения:
    6.000
    Симпатии:
    2.992
    Пробуйте так. исправил причины, добавил время бана, исправил ошибки, изменил файл перевода кика на перевод бана.
     

    Вложения:

    • ban vip.zip
      Размер файла:
      11 КБ
      Просмотров:
      50
  9. code++

    code++

    Сообщения:
    250
    Симпатии:
    28
    L 11/13/2015 - 02:16:06: [SM] Native "SetMenuTitle" reported: Language phrase "Ban player" not found
    L 11/13/2015 - 02:16:06: [SM] Displaying call stack trace for plugin "vip/VIP_Ban_1.0.0.smx":
    L 11/13/2015 - 02:16:06: [SM] [0] Line 91, C:\Users\XE\Desktop\sourcemod-1.7.3-git5275-windows\addons\sourcemod\scripting\VIP_Ban_1.0.0.sp::CreatePlayersMenu()
    L 11/13/2015 - 02:16:06: [SM] [1] Line 82, C:\Users\XE\Desktop\sourcemod-1.7.3-git5275-windows\addons\sourcemod\scripting\VIP_Ban_1.0.0.sp::OnSelectItem()
     
  10. Andy Freeman

    Andy Freeman Fatal error Супер-модератор

    Сообщения:
    409
    Симпатии:
    63
    Не найден перевод Ban player в vip_modules.phrases.txt
     
  11. R1KO

    R1KO Супер-модератор

    Сообщения:
    6.000
    Симпатии:
    2.992
    Andy Freeman, не не, там из перевода банов должно браться. Поправлю как дома буду
     
  12. R1KO

    R1KO Супер-модератор

    Сообщения:
    6.000
    Симпатии:
    2.992
    вродь поправил
     

    Вложения:

  13. pracc

    pracc

    Сообщения:
    480
    Симпатии:
    128
    Вип может забанить - это уже слишком.
     
  14. R1KO

    R1KO Супер-модератор

    Сообщения:
    6.000
    Симпатии:
    2.992
    Оффтоп

    Я ж не придумал это. Что попросили то и сделали.
     
  15. code++

    code++

    Сообщения:
    250
    Симпатии:
    28
    В меню випов есть пункт бана входит в выбор игроков но при выборе игрока закрываеться все меню в логах ошибок нет в консоль выдает
    Tried to look up command say as if it were a variable.
     
    Последнее редактирование: 13 ноя 2015
  16. pracc

    pracc

    Сообщения:
    480
    Симпатии:
    128
    Я думаю, что это бесполезный модуль, как и кик, но на вкус и цвет приятеля нет.
     
  17. R1KO

    R1KO Супер-модератор

    Сообщения:
    6.000
    Симпатии:
    2.992
    Выложил в 1-й пост нормальную версию
     
  18. destiny

    destiny

    Сообщения:
    100
    Симпатии:
    7
    Модуль хороший, но выглядит на ряду с киком - как мини-админка. А есть возможность сделать лимит банов например в день?
     
  19. NiGaByte

    NiGaByte

    Сообщения:
    501
    Симпатии:
    84
    на V 2.0 этот модуль не работает.
    Код:
    L 12/07/2015 - 23:54:37: SourceMod error session started
    L 12/07/2015 - 23:54:37: Info (map "awp_lego_2") (file "errors_20151207.log")
    L 12/07/2015 - 23:54:37: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/07/2015 - 23:54:37: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/07/2015 - 23:54:37: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/07/2015 - 23:54:37: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    
    Код:
    L 12/08/2015 - 00:05:05: SourceMod error session started
    L 12/08/2015 - 00:05:05: Info (map "awp_lego_2") (file "errors_20151208.log")
    L 12/08/2015 - 00:05:05: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:05:05: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:05:05: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:05:05: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:09: SourceMod error session started
    L 12/08/2015 - 00:22:09: Info (map "de_dust2") (file "errors_20151208.log")
    L 12/08/2015 - 00:22:09: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:09: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:09: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:09: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:09: [SM] Native "CloseHandle" reported: Handle 56660691 is invalid (error 4)
    L 12/08/2015 - 00:22:09: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:09: [SM]   [0]  Line 274, vip/clients.sp::SQL_Callback_OnClientAuthorized()
    L 12/08/2015 - 00:22:25: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:25: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:25: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:25: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:39: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:39: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:39: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:39: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:45: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:45: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:45: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:45: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:47: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:47: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:47: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:47: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:47: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:47: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:47: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:47: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:48: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:48: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:48: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:48: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:49: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:49: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:49: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:49: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:49: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:49: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:49: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:49: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:49: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:49: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:49: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:49: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:50: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:50: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:50: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:50: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:50: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:50: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:50: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:50: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:51: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:51: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:51: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:51: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:51: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:51: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:51: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:51: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:51: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:51: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:51: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:51: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:52: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:52: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:52: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:52: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:52: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:52: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:52: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:52: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:53: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:53: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:53: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:53: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:53: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:53: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:53: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:53: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:53: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:53: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:53: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:53: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:54: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:54: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:54: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:54: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:54: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:54: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:54: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:54: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:22:55: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:22:55: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:22:55: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:22:55: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:25:46: SourceMod error session started
    L 12/08/2015 - 00:25:46: Info (map "de_dust2") (file "errors_20151208.log")
    L 12/08/2015 - 00:25:46: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:25:46: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:25:46: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:25:46: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:25:55: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:25:55: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:25:55: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:25:55: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:26:04: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:26:04: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:26:04: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:26:04: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:26:08: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:26:08: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:26:08: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:26:08: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:26:15: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:26:15: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:26:15: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:26:15: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:26:34: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:26:34: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:26:34: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:26:34: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:26:39: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:26:39: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:26:39: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:26:39: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:26:43: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/08/2015 - 00:26:43: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/08/2015 - 00:26:43: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/08/2015 - 00:26:43: [SM]   [0]  Line 206, vip/vipmenu.sp::Handler_VIPMenu()
    L 12/08/2015 - 00:31:02: Error log file session closed.
    SM, MM последние... Игра CSGO
     
  20. sanja838

    sanja838

    Сообщения:
    12
    Симпатии:
    0
    Привет! Когда я поставиль только Бан для випки, работал, как только я подключил другие мудили перестал отображатся в меню

    L 12/23/2015 - 02:37:43: [SM] Plugin encountered error 4: Invalid parameter or parameter type
    L 12/23/2015 - 02:37:43: [SM] Native "FormatEx" reported: Language phrase "Ban" not found
    L 12/23/2015 - 02:37:43: [SM] Displaying call stack trace for plugin "vip/VIP_Core.smx":
    L 12/23/2015 - 02:37:43: [SM] [0] Line 178, vip/vipmenu.sp::Handler_VIPMenu()