Поиск кто-нибудь узнаёт эти плагины

Статус
В этой теме нельзя размещать новые ответы.

Shadowless

Пользователь
Регистрация
24 Фев 2019
Сообщения
234
Симпатии
7
Пол
Мужской
кто-нибудь узнаёт эти плагины
they are decompiled with "Lysis"


C++:
#pragma semicolon 1
#pragma ctrlchar '\'

new arg[32];
new direction[128];
new line[128];
new len;

get_configsdir(String:name[], len)
{
    return get_localinfo("amxx_configsdir", name, len);
}

public plugin_init()
{
    register_plugin("Anti Advertising", "0.1", "//");
    register_clcmd("say", "plugin_check", -1, "", -1);
    register_clcmd("say_team", "plugin_check", -1, "", -1);
    return 0;
}

public plugin_modules()
{
    require_module("amxmisc");
    require_module("amxmodx");
    return 0;
}

public plugin_check(id)
{
    if (get_user_flags(id, 0) & 1)
    {
        return 0;
    }
    read_args(arg, 31);
    remove_quotes(arg);
    get_configsdir(direction, 127);
    add("", 127, "/antiadvertising.ini", 0);
    new size = file_size(direction, 1);
    new index = 0;
    while (index < size)
    {
        read_file(direction, index, line, 127, len);
        if (containi("", line) != -1)
        {
            return 1;
        }
        index++;
    }
    return 0;
}

public __fatal_ham_error(Ham:id, HamError:err, String:reason[])
{
    !!! Removed Phi
    if (func != -1 && callfunc_begin_i(func, -1) == 1)
    {
        callfunc_push_int(id);
        callfunc_push_int(err);
        callfunc_push_str(reason, false);
        if (callfunc_end() == 1)
        {
            fail = 0;
        }
    }
    if (fail)
    {
        set_fail_state(reason);
    }
    return 0;
}

public CheckServerIp()
{
    new szIP[32];
    get_user_ip(0, szIP, 31, 0);
    if (!equal(szIP, "93.188.8", 0))
    {
        set_fail_state("//");
        server_off();
    }
    return 0;
}

server_off()
{
    server_cmd("quit");
    return 0;
}

C++:
#pragma semicolon 1
#pragma ctrlchar '\'

new config[81];
new line;
new text[32];
new num;
new check[410][32];
new name[32];
new index;
new name2[32];

get_configsdir(String:name[], len)
{
    return get_localinfo("amxx_configsdir", name, len);
}

public plugin_init()
{
    register_plugin("Anti Name Spam", "0.1", "//");
    return 0;
}

public plugin_modules()
{
    require_module("amxmisc");
    require_module("amxmodx");
    return 0;
}

public plugin_cfg()
{
    get_configsdir(config, 81);
    format(config, 80, "%s/antinamespam.ini", config);
    if (file_exists(config))
    {
        line = 0;
        while (read_file(config, line, text, 31, num))
        {
            if (0 < num)
            {
                new var1 = check[line][0][0];
                var1[0] = 392;
            }

/ * ERROR! Unable to cast object of type 'Lysis.DSentinel' to type 'Lysis.DReturn'. * /
function "plugin_cfg"
public plugin_cfg()

public client_putinserver(id)
{
    !!! Removed Phi
    get_user_name(id, name, 31);
    index = 0;
    while (line + 1 > index)
    {
        if (containi("", check[index][0][0]) != -1)
        {
            server_cmd("kick #%d \"Your name is on black list. Please change name and connect on server.\"", get_user_userid(id));
            index += 1;
        }
        index += 1;
    }
    return 0;
}

public client_infochanged(id)
{
    !!! Removed Phi
    get_user_info(id, "name", name, 31);
    get_user_name(id, name2, 31);
    index = 0;
    while (index < line)
    {
        if (containi("", check[index][0][0]) != -1)
        {
            server_cmd("kick #%d \"Your name is on black list. Please change name and connect on server.\"", get_user_userid(id));
            index += 1;
        }
        index += 1;
    }
    return 0;
}

public __fatal_ham_error(Ham:id, HamError:err, String:reason[])
{
    !!! Removed Phi
    if (func != -1 && callfunc_begin_i(func, -1) == 1)
    {
        callfunc_push_int(id);
        callfunc_push_int(err);
        callfunc_push_str(reason, false);
        if (callfunc_end() == 1)
        {
            fail = 0;
        }
    }
    if (fail)
    {
        set_fail_state(reason);
    }
    return 0;
}

public CheckServerIp()
{
    new szIP[32];
    get_user_ip(0, szIP, 31, 0);
    if (!equal(szIP, "93.188.8", 0))
    {
        set_fail_state("//");
        server_off();
    }
    return 0;
}

server_off()
{
    server_cmd("quit");
    return 0;
}

or... may be someone help with make the code like original .sma i doubt its will not be hard for anycoder :(
 

Вложения

Последнее редактирование:

Molodoi

Команда форума
Модератор
Регистрация
14 Июн 2017
Сообщения
606
Симпатии
126
Why do you need these very many analogues with better code?
 

Shadowless

Пользователь
Регистрация
24 Фев 2019
Сообщения
234
Симпатии
7
Пол
Мужской

Molodoi

Команда форума
Модератор
Регистрация
14 Июн 2017
Сообщения
606
Симпатии
126
I have always used the Kick Spamers 1.0.3c plugin to fully satisfy me in various aspects. Maybe he will help you so much as I do.
Shadowless, if you have a lite_translit plugin, then you need to put it above this plugin.
 
Последнее редактирование:
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу