Shadowless
Пользователь
- Регистрация
- 24 Фев 2019
- Сообщения
- 237
- Симпатии
- 4
- Пол
- Мужской
кто-нибудь узнаёт эти плагины
they are decompiled with "Lysis"
or... may be someone help with make the code like original .sma i doubt its will not be hard for anycoder
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
Вложения
-
3,8 KB Просмотры: 0
-
7,1 KB Просмотры: 0
Последнее редактирование: