Плагин делает скрин при бане

Плагин делает скрины при бане

\Compilation\include\amxbans) и скомпилировать amxbans_main.sma
Скомпилированный плагин заменить на сервере.

Да, компилировать нужно, только не этот код.
Нужно открыть файл cmd_ban.inl, найти 919 строку
заменить на:
после чего закинуть этот файл в папку компилятора (

\Compilation\include\amxbans) и скомпилировать amxbans_main.sma
Скомпилированный плагин заменить на сервере.

Да, компилировать нужно, только не этот код.
Нужно открыть файл cmd_ban.inl, найти 919 строку
заменить на:
после чего закинуть этот файл в папку компилятора (

\Compilation\include\amxbans) и скомпилировать amxbans_main.sma
Скомпилированный плагин заменить на сервере.

Я не могу найти файл cmd_ban.inl помогите пожалуйста!

\scripting\include\amxbans там будет много фалов среди которых есть и cmd_ban.inl

У меня не делает скриншот бана, зашел в папку cstrike. а там окно motd.html и все. Как можно сделать скриншоты. В amxmodmenu у меня Amxbans:screens не активные вообще.

Количество пользователей, читающих эту тему: 0

0 пользователей, 0 гостей, 0 анонимных

Лицензия зарегистрирована на: CSBans.Ru

Скриншоты при бане

У меня не делает скриншот бана, зашел в папку cstrike. а там окно motd.html и все. Как можно сделать скриншоты. В amxmodmenu у меня Amxbans:screens не активные вообще.

1)Ищите в пу amxbans нажимайте

2)Заходите в amxbans.cfg
3) Ищите

1)Ищите в пу amxbans нажимайте

2)Заходите в amxbans.cfg
3) Ищите

Описания идут ПЕРЕД параметром, а не после

Описания идут ПЕРЕД параметром, а не после

Делает скриншот motd окна, слишком поздно. И сохраняет как motd_****.html Точно не помню. Или может не нашел, как название его?

При чём тут motd? Он делает скриншот экрана забаненного игрока.

При чём тут motd? Он делает скриншот экрана забаненного игрока.

Я на себе проверил, забанил. Файл посмотрел в cstrike, а там motd_****.html, открыл и motd окно просто. Никакого скрина бана не нашел. Или я плохо ищу?

Я на себе проверил, забанил. Файл посмотрел в cstrike, а там motd_****.html, открыл и motd окно просто. Никакого скрина бана не нашел. Или я плохо ищу?

Скрин должен называться форматом имя_картычасмин.bmp например de_dust2_2x20013.bmp

Источник статьи: http://dom-srub-banya.ru/plagin-delaet-skriny-pri-bane/

Скриншоты при бане

#1 AlexandrB

  • Пользователь
  • 112 сообщений
  • У меня не делает скриншот бана, зашел в папку cstrike. а там окно motd.html и все. Как можно сделать скриншоты. В amxmodmenu у меня Amxbans:screens не активные вообще.

    #2 plaCSa

  • Пользователь
  • 477 сообщений
  • 1)Ищите в пу amxbans нажимайте

    2)Заходите в amxbans.cfg
    3) Ищите

    amxbans_snapshot если 0 ,то ставим 1

    Сообщение отредактировал plaCSa: 02 Январь 2014 — 17:00

    #3 Santiago

  • Модератор
  • 5 052 сообщений
  • 1)Ищите в пу amxbans нажимайте

    2)Заходите в amxbans.cfg
    3) Ищите

    amxbans_time_offset » 0 » если 0 ,то ставим 1

    Читайте также:  Баня изба на семиреченской

    Описания идут ПЕРЕД параметром, а не после

    #4 plaCSa

  • Пользователь
  • 477 сообщений
  • Ай блин ошибся
    Спасибо.

    #5 AlexandrB

  • Пользователь
  • 112 сообщений
  • Ай блин ошибся
    Спасибо.

    Описания идут ПЕРЕД параметром, а не после

    Делает скриншот motd окна, слишком поздно. И сохраняет как motd_****.html Точно не помню. Или может не нашел, как название его?

    #6 Santiago

  • Модератор
  • 5 052 сообщений
  • При чём тут motd? Он делает скриншот экрана забаненного игрока.

    #7 AlexandrB

  • Пользователь
  • 112 сообщений
  • При чём тут motd? Он делает скриншот экрана забаненного игрока.

    Я на себе проверил, забанил. Файл посмотрел в cstrike, а там motd_****.html, открыл и motd окно просто. Никакого скрина бана не нашел. Или я плохо ищу?

    #8 Santiago

  • Модератор
  • 5 052 сообщений
  • Я на себе проверил, забанил. Файл посмотрел в cstrike, а там motd_****.html, открыл и motd окно просто. Никакого скрина бана не нашел. Или я плохо ищу?

    Скрин должен называться форматом имя_картычасмин.bmp например de_dust2_2x20013.bmp

    #9 AlexandrB

  • Пользователь
  • 112 сообщений
  • Источник статьи: http://forum.myarena.ru/index.php?/topic/16445-skrinshoty-pri-bane/

    Как делать скрины при бане

    Скриншот при бане (SuperBan)

    Tequilaa

    Стаж: 7 лет 9 месяцев

    Сообщений: 69
    Благодарностей: 17
    Полезность: 12

    Сообщений: 1145
    Благодарности: выкл.

    зачем скриншот при бане? фотошоп все может

    Стаж: 7 лет 9 месяцев

    Сообщений: 69
    Благодарностей: 17
    Полезность: 12

    Стаж: 8 лет 4 месяца
    Город: Югорск

    Сообщений: 10964
    Благодарностей: 6297
    Полезность: 1759

    Меценат

    Как делать скрины при бане

    Femidion писал(а): Ты вот пришёл в мою ветку, выкабениваешься здесь, пишешь охинею, пытаешься всё высмеять. пользы от тебя никакой, только понты и хамство. зачем? Может ты тот самый лживый чурка-паразит?

    amx_banss не делает скрины при бане!

    Модератор: liFe iS GoOD

    Правила форума
    1. Запрещено материться и оскорблять других участников форума.
    2. Запрещен флуд, оффтоп, дабл постинг во всех разделах форума, кроме раздела «Болтовня».
    3. Запрещено взламывать сайт/форум или наносить любой вред проекту.
    4. Запрещено рекламировать другие ресурсы.
    5. Запрещено создавать темы без информативного названия. Название темы должно отображать ее смысл.

    В данном разделе форума разрешено создавать темы, касающие только вопросов по AMX Mod X и его плагинам.

    amx_banss не делает скрины при бане!

    Re: amx_banss не делает скрины при бане!

    Re: amx_banss не делает скрины при бане!

    Re: amx_banss не делает скрины при бане!

    открываешь plmenu.sma находишь
    [pawn]

    и добавляешь [pawn]

    Re: amx_banss не делает скрины при бане!

    открываешь plmenu.sma находишь
    [pawn]

    и добавляешь [pawn]

    Добавлено спустя 6 минут 18 секунд:
    вот как у меня plmenu ща
    Код: Выделить всё /* AMX Mod X
    * Players Menu Plugin
    *
    * by the AMX Mod X Development Team
    * originally developed by OLO
    *
    * This file is part of AMX Mod X.
    *
    *
    * This program is free software; you can redistribute it and/or modify it
    * under the terms of the GNU General Public License as published by the
    * Free Software Foundation; either version 2 of the License, or (at
    * your option) any later version.
    *
    * This program is distributed in the hope that it will be useful, but
    * WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    * General Public License for more details.
    *
    * You should have received a copy of the GNU General Public License
    * along with this program; if not, write to the Free Software Foundation,
    * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
    *
    * In addition, as a special exception, the author gives permission to
    * link the code of this program with the Half-Life Game Engine («HL
    * Engine») and Modified Game Libraries («MODs») developed by Valve,
    * L.L.C («Valve»). You must obey the GNU General Public License in all
    * respects for all of the code used other than the HL Engine and MODs
    * from Valve. If you modify this file, you may extend this exception
    * to your version of the file, but you are not obligated to do so. If
    * you do not wish to do so, delete this exception statement from your
    * version.
    */

    /** skip autoloading since it’s optional */
    #define AMXMODX_NOAUTOLOAD
    #include

    new g_menuPosition[33]
    new g_menuPlayers[33][32]
    new g_menuPlayersNum[33]
    new g_menuOption[33]
    new g_menuSettings[33]

    new g_menuSelect[33][64]
    new g_menuSelectNum[33]

    #define MAX_CLCMDS 24

    new g_clcmdName[MAX_CLCMDS][32]
    new g_clcmdCmd[MAX_CLCMDS][64]
    new g_clcmdMisc[MAX_CLCMDS][2]
    new g_clcmdNum

    new g_coloredMenus
    new g_cstrike = 0

    new Array:g_bantimes;
    new Array:g_slapsettings;

    public plugin_init()

    public plmenu_setbantimes()
    ^» ban and kick ^»%s <>^» (minutes ^»%d^») (reason ^»%s^»)», name, get_user_userid(id), authid, name2, userid2, authid2, g_menuSettings[id], reason)

    public actionBanMenu(id, key)
    ^» ban and kick ^»%s <>^» (minutes ^»%d^»)», name, get_user_userid(id), authid, name2, userid2, authid2, g_menuSettings[id])

    if (g_menuSettings[id]==0) // permanent
    g_menuPlayersNum[id])
    end = g_menuPlayersNum[id]

    for (new a = start; a 0)

    else

    displayBanMenu(id, g_menuPosition[id] = 0)

    public actionSlapMenu(id, key)

    new authid[32], authid2[32], name[32]

    get_user_authid(id, authid, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(id, name, 31)

    if (g_menuOption[id])
    ^» slap with %d damage ^»%s <>^»», name, get_user_userid(id), authid, g_menuSettings[id], name2, get_user_userid(player), authid2)

    show_activity_key(«ADMIN_SLAP_1», «ADMIN_SLAP_2», name, name2, g_menuSettings[id]);
    > else ^» slay ^»%s <>^»», name, get_user_userid(id), authid, name2, get_user_userid(player), authid2)

    show_activity_key(«ADMIN_SLAY_1», «ADMIN_SLAY_2», name, name2);
    >

    displaySlapMenu(id, pos)
    g_menuPlayersNum[id])
    end = g_menuPlayersNum[id]

    for (new a = start; a 0)

    else

    displaySlapMenu(id, g_menuPosition[id] = 0)

    get_user_authid(id, authid, 31)
    get_user_authid(player, authid2, 31)
    get_user_name(id, name, 31)
    get_user_name(player, name2, 31)

    new userid2 = get_user_userid(player)

    log_amx(«Kick: ^»%s <>^» kick ^»%s <>^»», name, get_user_userid(id), authid, name2, userid2, authid2)

    show_activity_key(«ADMIN_KICK_1», «ADMIN_KICK_2», name, name2);

    server_cmd(«kick #%d», userid2)
    server_exec()

    displayKickMenu(id, pos)
    g_menuPlayersNum[id])
    end = g_menuPlayersNum[id]

    show_activity_key(«ADMIN_TRANSF_1», «ADMIN_TRANSF_2», name, name2, g_CSTeamNames[g_menuOption[id] % 3]);

    if (g_cstrike)

    // This modulo math just aligns the option to the CsTeams-corresponding number
    cs_set_user_team(player, (g_menuOption[id] % 3) + 1)
    cs_reset_user_model(player)
    > else

    displayTeamMenu(id, pos)
    g_menuPlayersNum[id])
    end = g_menuPlayersNum[id]

    for (new a = start; a = g_menuPlayersNum[id])
    start = pos = g_menuPosition[id] = 0

    if (end > g_menuPlayersNum[id])
    end = g_menuPlayersNum[id]

    for (new a = start; a 3)

    g_clcmdMisc[g_clcmdNum][1] = read_flags(szFlags)
    g_clcmdMisc[g_clcmdNum][0] = read_flags(szAccess)
    g_clcmdNum++
    >
    >

    amx_ssmsg_type 3 // 1- chat | 2- hud | 3- chat+hud (Def.: 3)
    amx_ssnumber 7 // Number of snapshots to take (Def.: 3)
    amx_ssdelay 1.2 // Delay between snapshots (Def.: 1.0)
    */

    #define PLUGIN_NAME «experience. Falcon»
    #define PLUGIN_VERSION «0.7»
    #define PLUGIN_AUTHOR «experience. Falcon»

    #pragma semicolon 1

    // uncomment the line below if you want this plugin to
    // load old bans from the banned.cfg and listip.cfg files
    //#define KEEP_DEFAULT_BANS

    // uncomment the line below if you want the history to be in one file
    //#define HISTORY_ONE_FILE

    // if you must have a maximum amount of bans to be compatible with AMXX versions before 1.8.0
    // change this number to your maximum amount
    // if you would rather have unlimited (requires AMXX 1.8.0 or higher) then set it to 0
    #define MAX_BANS 0

    #define REGEX_IP_PATTERN «\b(254|218|[01]?88?)\.(254|223|[01]?25?)\.(253|225|[01]?96?)\.(251|228|[01]?96?)\b»
    #define REGEX_STEAMID_PATTERN «^^STEAM_0:(0|1):\d+$»

    new Regex:g_IP_pattern;
    new Regex:g_SteamID_pattern;
    new g_regex_return;

    #define IsValidIP(%1) (regex_match_c(%1, g_IP_pattern, g_regex_return) > 0)

    /*bool:IsValidAuthid(const authid[])
    0;
    >*/

    #define IsValidAuthid(%1) (regex_match_c(%1, g_SteamID_pattern, g_regex_return) > 0)

    enum // for name displaying
    ;
    new const g_admin_activity[] =
    ;
    new const g_normal_activity[] =
    ;

    ab_website = register_cvar(«ab_website», «http://eff.serv.ru»);
    ab_immunity = register_cvar(«ab_immunity», «1»);
    ab_unbancheck = register_cvar(«ab_unbancheck», «5.0»);

    register_concmd(«amx_ss», «ss_menu», ADMIN_KICK, «- Make snapshots on user(menu)»);
    g_MsgType = register_cvar(«amx_ssmsg_type», «3»); // 1- chat | 2- hud | 3- chat+hud (Def.: 3)
    g_SnapShot = register_cvar(«amx_ssnumber», «7»); // Number of snapshots to take (Def.: 3)
    g_DelaySS = register_cvar(«amx_ssdelay», «1.2»); // Delay between snapshots (Def.: 1.0)

    amx_show_activity = register_cvar(«amx_show_activity», «2»);

    #if MAX_BANS 0
    static banned_authid[35], bool:is_ip;
    for( new i = 0; i maxlength) )

    AddBan(target_name, target_authid, arg, length, unban_time, admin_name, admin_ip);
    AddBan(target_name, target_ip, arg, length, unban_time, admin_name, admin_ip);

    PrintBanInformation(target, target_name, target_authid, arg, length, unban_time, admin_name, admin_ip, true, true);
    PrintBanInformation(client, target_name, target_authid, arg, length, unban_time, admin_name, admin_ip, false, false);

    new Param[2];
    Param[0] = client;
    Param[1] = target;
    set_task(0.1, «SS_Ban», target, Param,2);

    new Float:DelayBan = get_pcvar_float(g_DelaySS) * float(get_pcvar_num(g_SnapShot)) + 0.2;
    set_task(DelayBan, «TaskDisconnectPlayer», target);

    #if MAX_BANS maxlength) )

    AddBan(target_name, target_ip, arg, length, unban_time, admin_name, admin_ip);

    PrintBanInformation(target, target_name, target_ip, arg, length, unban_time, admin_name, admin_ip, true, true);
    PrintBanInformation(client, target_name, target_ip, arg, length, unban_time, admin_name, admin_ip, false, false);

    new Float:DelayBan = get_pcvar_float(g_DelaySS) * float(get_pcvar_num(g_SnapShot)) + 0.2;
    set_task(DelayBan, «TaskDisconnectPlayer», target);

    return PLUGIN_HANDLED;
    >
    else if( is_ip )
    0 )

    #if MAX_BANS maxlength) )

    AddBan(target_name, target_authid, reason, length, unban_time, admin_name, admin_ip);

    PrintBanInformation(client, target_name, target_authid, reason, length, unban_time, «», «», false, false);

    Log(«%s banned %s || Reason: ^»%s^» || Ban Length: %s», admin_name, admin_ip, target_name, target_authid, reason, unban_time);

    #if MAX_BANS > 0
    static banned_authid[35];
    for( new i = 0; i unbanned %s || Ban Reason: ^»%s^»», admin_name, authid, name, arg, reason);

    return PLUGIN_HANDLED;
    >
    >
    #else
    if( TrieKeyExists(g_trie, arg) )

    #endif

    console_print(client, «[experience. Falcon] %L», client, «AB_NOT_IN_BAN_LIST», arg);

    new last = min(start + 10, g_total_bans);

    console_print(client, «%L», client, «AB_BAN_LIST_NUM», start + 1, last);

    for( new i = start; i «);
    return PLUGIN_HANDLED;
    >

    g_maxban_flags[g_total_maxban_times] = flags;
    g_maxban_times[g_total_maxban_times] = minutes;
    #endif
    g_total_maxban_times++;

    // c = current
    // u = unban

    new c_hours = str_to_num(_hours);
    new c_minutes = str_to_num(_minutes);
    new c_seconds = str_to_num(_seconds);
    new c_month = str_to_num(_month);
    new c_day = str_to_num(_day);
    new c_year = str_to_num(_year);

    static unban_time[32];
    static u_hours, u_minutes, u_seconds, u_month, u_day, u_year;

    for( new i = 0; i new client = Param[1];
    new timer[32], hostname[64], name[32], name2[32], ip[32], authid2[32], country[33], site[64];

    get_user_name(id, name, 31);
    get_user_name(client, name2, 31);
    get_user_authid(client, authid2, 31);
    get_user_ip(client, ip, 31, 1);

    get_cvar_string(«hostname», hostname, charsmax(hostname));
    get_pcvar_string(ab_website, site, charsmax(site));

    set_task(Float:get_pcvar_float(g_DelaySS), «SS_DO», 0, Param,2, «a», get_pcvar_num(g_SnapShot));

    /* Stock colors for chat messages */
    stock client_printc(const id, const string[], . )
    #endif

    new f = fopen(g_ban_file, «a+»);

    fprintf(f, «^»%s^» ^»%s^» %i ^»%s^» ^»%s^» ^»%s^» ^»%s^»^n»,\
    target_steamid,\
    target_name,\
    length,\
    unban_time,\
    reason,\
    admin_name,\
    admin_steamid
    );

    #if MAX_BANS 0
    if( g_total_bans == MAX_BANS )

    #endif
    >

    new hours = str_to_num(_hours);
    new minutes = str_to_num(_minutes);
    new seconds = str_to_num(_seconds);
    new month = str_to_num(_month);
    new day = str_to_num(_day);
    new year = str_to_num(_year);

    formatex(unban_time, len, «%i:%02i:%02i %i/%i/%i», hours, minutes, seconds, month, day, year);
    >

    Источник статьи: http://dom-srub-banya.ru/kak-delat-skriny-pri-bane/

    Оцените статью
    Про баню