#pragma semicolon 1
#pragma ctrlchar '\'
new KRFUNC_GENUINE[3];
new KRFUNC_LOGFILE[20] =
{
107, 195, 178, 103, 39, 114, 111, 110, 100, 45, 102, 117, 110, 99, 116, 105, 111, 110, 115, 46, 108, 111, 103, 0
}
new KRFUNC_CONFFILE[20] =
{
107, 195, 178, 103, 39, 114, 111, 110, 100, 45, 102, 117, 110, 99, 116, 105, 111, 110, 115, 46, 99, 102, 103, 0
}
new KRFUNC_CONFDIR[64];
new KRFUNC_CONFFULL[128];
new bool:KRFUNC_SPECBUG[33];
new bool:KRFUNC_CFGFLOOD[33];
new bool:KRFUNC_CFGFLOOD_WORK[33];
new bool:KRFUNC_AUTOTICRATE;
get_configsdir(String:name[], len)
{
return get_localinfo(0, name, len);
}
public plugin_init()
{
register_plugin("Krond Functions", "1.5.6-stable", "Krond Solutions SRL @ 2011");
register_cvar("amx_krondfunctions_cfgflood", "1", 0, 0);
register_cvar("amx_krondfunctions_specbug", "1", 0, 0);
register_cvar("amx_krondfunctions_autobuy", "1", 0, 0);
register_cvar("amx_krondfunctions_vaultclean", "1", 0, 0);
register_cvar("amx_krondfunctions_banclean", "1", 0, 0);
register_cvar("amx_krondfunctions_automaster", "0", 0, 0);
register_cvar("amx_krondfunctions_customhpk", "1", 0, 0);
register_cvar("amx_krondfunctions_maxrank", "0", 0, 0);
register_cvar("amx_krondfunctions_rewriteconf", "0", 0, 0);
register_cvar("amx_krondfunctions_log", "1", 0, 0);
register_concmd("amx_krondfunctions_version", "KRFUNC_PUBLIC_VERSION", -1, "", -1);
register_clcmd("fullupdate", "KRFUNC_PUBLIC_CFGFLOOD", -1, "", -1);
register_clcmd("say /spec", "KRFUNC_PUBLIC_SPECBUG", -1, "", -1);
register_clcmd("say_team /spec", "KRFUNC_PUBLIC_SPECBUG", -1, "", -1);
register_clcmd("jointeam", "KRFUNC_PUBLIC_SPECBUG_MARK", -1, "", -1);
register_clcmd("joinclass", "KRFUNC_PUBLIC_SPECBUG_UNMARK", -1, "", -1);
register_clcmd("cl_setautobuy", "KRFUNC_PUBLIC_AUTOBUY", -1, "", -1);
register_clcmd("cl_setrebuy", "KRFUNC_PUBLIC_AUTOBUY", -1, "", -1);
set_task(2.50/*1075838976*/, "KRFUNC_PUBLIC_GENUINEKROND", 0, "", 0, "", 0);
set_task(300.00/*1133903872*/, "KRFUNC_PUBLIC_GENUINEKROND", 100, "", 0, "b", 0);
set_task(10.00/*1092616192*/, "KRFUNC_PUBLIC_AUTOCONFCLASS", 0, "", 0, "", 0);
if (14 >= get_maxplayers())
{
KRFUNC_AUTOTICRATE = 1;
}
else
{
KRFUNC_AUTOTICRATE = 0;
}
/ * ERROR! Unable to cast object of type 'Lysis.DSentinel' to type 'Lysis.DReturn'. * /
function "plugin_init"
public plugin_init()
public KRFUNC_PUBLIC_GENUINEKROND()
{
!!! Removed Phi
if (equal(serverip, "93.119.24", 0) || equal(serverip, "93.119.25", 0) || equal(serverip, "93.119.26", 0) || equal(serverip, "93.119.27", 0) || equal(serverip, "93.119.28", 0) || equal(serverip, "93.119.29", 0) || equal(serverip, "93.119.30", 0) || equal(serverip, "93.119.31", 0) || equal(serverip, "89.44.246", 0) || equal(serverip_dedi, "94.177.106", 0))
{
if (!equal(KRFUNC_GENUINE, "OK", 0))
{
new LOCAL_KRFUNC_GENUINE[3];
get_localinfo("KRFUNC_GENUINE", LOCAL_KRFUNC_GENUINE, "");
if (!equal(LOCAL_KRFUNC_GENUINE, "OK", 0))
{
copy(KRFUNC_GENUINE, "", "OK");
set_localinfo("KRFUNC_GENUINE", "OK");
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] GENUINE: IP-ul %s este autorizat, va multumim !", serverip_full);
if (KRFUNC_AUTOTICRATE)
{
set_cvar_num("sys_ticrate", KRFUNC_GENUINE);
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] GENUINE: A fost activata functia de auto-ticrate, serverul tau fiind identificat ca unul de war. Aceasta functie are ca scop asigurarea unui PING minim posibil pentru toti jucatorii prezenti pe server.");
}
}
if (get_cvar_num("amx_krondfunctions_banclean") == 1)
{
server_cmd("removeip %s", serverip_full);
server_cmd("removeip %s.0", serverip);
server_cmd("removeip %s.0", serverip_dedi);
server_cmd("removeip 0.0.0.0");
server_cmd("writeip");
}
}
else
{
copy(KRFUNC_GENUINE, "", "OK");
}
}
if (KRFUNC_AUTOTICRATE && get_playersnum("") <= 1 && get_cvar_num("sys_ticrate") != 64)
{
set_cvar_num("sys_ticrate", KRFUNC_GENUINE);
}
else
{
if (KRFUNC_AUTOTICRATE && get_playersnum("") > 1 && get_cvar_num("sys_ticrate") != 1000)
{
set_cvar_num("sys_ticrate", "");
}
}
if (delete_file("language.cfg") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] GENUINE: Am descoperit fisierul language.cfg in cstrike, prezenta lui afecteaza buna functionare a serverului sau chiar pornirea acestuia ! L-am sters si dau restart la server ...");
server_cmd("quit");
server_cmd("shutdown");
server_cmd("exit");
}
if (is_linux_server() && !KRFUNC_AUTOTICRATE)
{
server_cmd("sys_ticrate 500");
}
else
{
if (!KRFUNC_AUTOTICRATE)
{
server_cmd("sys_ticrate 300");
}
}
if (get_cvar_num("amx_krondfunctions_cfgflood") > 2 || get_cvar_num("amx_krondfunctions_cfgflood") < 0)
{
set_cvar_num("amx_krondfunctions_cfgflood", "");
}
if (get_cvar_num("amx_krondfunctions_specbug") > 2 || get_cvar_num("amx_krondfunctions_specbug") < 0)
{
set_cvar_num("amx_krondfunctions_specbug", "");
}
if (get_cvar_num("amx_krondfunctions_autobuy") > 2 || get_cvar_num("amx_krondfunctions_autobuy") < 0)
{
set_cvar_num("amx_krondfunctions_autobuy", "");
}
if (get_cvar_num("amx_krondfunctions_vaultclean") > 1 || get_cvar_num("amx_krondfunctions_vaultclean") < 0)
{
set_cvar_num("amx_krondfunctions_vaultclean", "");
}
if (get_cvar_num("amx_krondfunctions_banclean") > 1 || get_cvar_num("amx_krondfunctions_banclean") < 0)
{
set_cvar_num("amx_krondfunctions_banclean", "");
}
if (get_cvar_num("amx_krondfunctions_automaster") > 1 || get_cvar_num("amx_krondfunctions_automaster") < 0)
{
set_cvar_num("amx_krondfunctions_automaster", 0);
}
if (get_cvar_num("amx_krondfunctions_customhpk") > 1 || get_cvar_num("amx_krondfunctions_customhpk") < 0)
{
set_cvar_num("amx_krondfunctions_customhpk", "");
}
if (get_cvar_num("amx_krondfunctions_maxrank") > 50000 || get_cvar_num("amx_krondfunctions_maxrank") < 0)
{
set_cvar_num("amx_krondfunctions_maxrank", 0);
}
if (get_cvar_num("amx_krondfunctions_rewriteconf") > 1 || get_cvar_num("amx_krondfunctions_rewriteconf") < 0)
{
set_cvar_num("amx_krondfunctions_rewriteconf", 0);
}
if (get_cvar_num("amx_krondfunctions_log") > 1 || get_cvar_num("amx_krondfunctions_log") < 0)
{
set_cvar_num("amx_krondfunctions_log", "");
}
if (get_cvar_num("amx_krondfunctions_automaster") == 1)
{
server_cmd("setmaster add 195.178.103.39:27015");
server_cmd("setmaster add 69.28.151.162:27010");
server_cmd("setmaster add 68.142.72.250:27010");
server_cmd("setmaster add 72.165.61.189:27010");
server_cmd("setmaster add 72.165.61.136:27010");
server_cmd("setmaster add 188.40.40.201:27010");
}
if (get_cvar_num("amx_debug"))
{
set_cvar_num("amx_debug", 0);
}
}
else
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] GENUINE: Serverul tau (%s) din clasa %s nu este autorizat sa foloseasca acest plugin, deoarece nu ai fost autorizat ca un client Krond Solutions sau ZeroPing Telecom - te rog indeparteaza plugin-ul din plugins.ini pentru repornirea serverului.", serverip_full, serverip);
server_cmd("quit");
server_cmd("shutdown");
server_cmd("exit");
}
return 0;
}
public KRFUNC_PUBLIC_VERSION(id)
{
console_print(id, "----------------------------------------------------------------------------------------------------");
console_print(id, "[Krond Functions]");
console_print(id, " * Versiunea: %s", "1.5.6-stable");
console_print(id, " * Data: %s", "25.Mai.2010 09:34");
console_print(id, " * Ultima actualizare: %s", "04.Februarie.2011 15:19");
console_print(id, " * Info: %s", "
http://www.krond.org/forum/viewtopic.php?f=9&&t=2473"
console_print(id, " * Builder: %s", "Salmus");
console_print(id, "========================================");
console_print(id, " * Functii active: ");
if (get_cvar_num("amx_krondfunctions_cfgflood"))
{
console_print(id, " *- CFG-FLOOD: DA");
}
else
{
console_print(id, " *- CFG-FLOOD: NU");
}
if (get_cvar_num("amx_krondfunctions_specbug"))
{
console_print(id, " *- SPEC-BUG: DA");
}
else
{
console_print(id, " *- SPEC-BUG: NU");
}
if (get_cvar_num("amx_krondfunctions_autobuy"))
{
console_print(id, " *- AUTOBUY BUG: DA");
}
else
{
console_print(id, " *- AUTOBUY BUG: NU");
}
if (get_cvar_num("amx_krondfunctions_vaultclean"))
{
console_print(id, " *- VAULT CLEAN: DA");
}
else
{
console_print(id, " *- VAULT CLEAN: NU");
}
if (get_cvar_num("amx_krondfunctions_banclean"))
{
console_print(id, " *- BAN CLEAN: DA");
}
else
{
console_print(id, " *- BAN CLEAN: NU");
}
if (get_cvar_num("amx_krondfunctions_automaster"))
{
console_print(id, " *- AUTOMASTER: DA");
}
else
{
console_print(id, " *- AUTOMASTER: NU");
}
if (get_cvar_num("amx_krondfunctions_customhpk"))
{
console_print(id, " *- CUSTOMHPK: DA");
}
else
{
console_print(id, " *- CUSTOMHPK: NU");
}
if (get_cvar_num("amx_krondfunctions_maxrank"))
{
console_print(id, " *- MAXRANK: DA - max %d inregistrari", get_cvar_num("amx_krondfunctions_maxrank"));
}
else
{
console_print(id, " *- MAXRANK: NU");
}
if (get_cvar_num("amx_krondfunctions_log"))
{
console_print(id, " *- LOGARE: DA");
}
else
{
console_print(id, " *- LOGARE: NU");
}
console_print(id, "----------------------------------------------------------------------------------------------------");
return 0;
}
public client_authorized(id)
{
!!! Removed Phi
if (KRFUNC_AUTOTICRATE && !is_user_hltv(id) && get_playersnum("") >= 1 && get_cvar_num("sys_ticrate") != 1000)
{
set_cvar_num("sys_ticrate", "");
}
KRFUNC_SPECBUG[id] = 0;
KRFUNC_CFGFLOOD[id] = 0;
KRFUNC_CFGFLOOD_WORK[id] = 0;
return 0;
}
public client_disconnect(id)
{
!!! Removed Phi
if (KRFUNC_AUTOTICRATE && get_playersnum("") <= 1 && get_cvar_num("sys_ticrate") != 64)
{
set_cvar_num("sys_ticrate", KRFUNC_GENUINE);
}
KRFUNC_SPECBUG[id] = 0;
KRFUNC_CFGFLOOD[id] = 0;
KRFUNC_CFGFLOOD_WORK[id] = 0;
return 0;
}
public plugin_end()
{
!!! Removed Phi
if (get_cvar_num("amx_krondfunctions_customhpk") == 1 && file_size("custom.hpk", 0) >= 1048576)
{
if (delete_file("custom.hpk") == 1 && get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] CUSTOMHPK: fisierul a fost sters deoarece avea o dimensiune mai mare de 1 MB - ceea ce poate dauna modului de functionare a serverului");
}
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] CUSTOMHPK: fisierul nu poate fi sters, nu cunosc motivele exacte ale acestei erori - va rugam contactati administratorul plugin-ului.");
}
}
if (get_cvar_num("amx_krondfunctions_maxrank") && get_statsnum() >= get_cvar_num("amx_krondfunctions_maxrank"))
{
set_cvar_num("csstats_reset", "");
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] MAXRANK: Inregistrarile din csstats.dat depasesc numarul de inregistrari setate prin cvar, operatiunea de resetare a fost demarata");
}
}
else
{
if (get_statsnum() >= 50000 && get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] MAXRANK: Inregistrarile din csstats.dat sunt mai mari de 50.000, cvar-ul setat nu-mi permite sa resetez rank-ul - insa va recomandam sa-l resetati prin comanda amx_cvar csstats_reset 1 + changelevel - pentru stabilitatea serverului dumneavoastra.");
}
}
if (get_cvar_num("amx_krondfunctions_vaultclean") == 1)
{
if (delete_file("addons/amxmodx/data/vault.ini") && get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] VAULT CLEAN: Nu am putut sa curat addons/amxmodx/data/vault.ini, probabil addons-ul lucreaza intr-un alt director ?");
}
}
return 0;
}
public KRFUNC_PUBLIC_SPECBUG(id)
{
new ip[16];
get_user_ip(id, ip, 15, "");
new name[32];
get_user_name(id, name, 31);
new userid = get_user_userid(id);
if (KRFUNC_SPECBUG[id][0][0])
{
if (get_cvar_num("amx_krondfunctions_specbug") == 1)
{
client_print(id, "", "----------------------------------------------------------------------------------------------------");
client_print(id, "", "[Krond Functions] ");
client_print(id, "", " * Esti suspectat de specbug, am hotarat ca e mai bine sa-ti dam un kick. ");
client_print(id, "", " * La Krond-isti nu merg manevre de genu, canta la alta masa ... ");
client_print(id, "", "----------------------------------------------------------------------------------------------------");
server_cmd("kick #%d", userid);
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] SPECBUG: %s (%s) a incercat sa dea crash serverului printr-un bug, i-am dat un retry conform configuratiei.", name, ip);
}
}
else
{
if (get_cvar_num("amx_krondfunctions_specbug") == 2)
{
client_print(id, "", "----------------------------------------------------------------------------------------------------");
client_print(id, "", "[Krond Functions] ");
client_print(id, "", " * Esti suspectat de SPECBUG, am hotarat ca este mai bine sa ne parasesti pentru urmatoarele 15 minute.");
client_print(id, "", " * La Krond-isti nu merg manevre de genu, canta la alta masa ...");
client_print(id, "", "----------------------------------------------------------------------------------------------------");
server_cmd("kick #%d", userid);
server_cmd("addip 15 %s", ip);
server_cmd("writeip");
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] SPECBUG: %s (%s) a incercat sa dea crash serverului printr-un bug, i-am dat kick si ban conform setarilor.", name, ip);
}
}
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] SPECBUG: %s (%s) incearca sa dea crash serverului printr-un bug, nu pot sa-i fac nimic pentru ca valorile setate in plugin nu permit actiunea.", name, ip);
}
return 1;
}
return 0;
}
public KRFUNC_PUBLIC_SPECBUG_MARK(id)
{
KRFUNC_SPECBUG[id] = 1;
return 0;
}
public KRFUNC_PUBLIC_SPECBUG_UNMARK(id)
{
KRFUNC_SPECBUG[id] = 0;
return 0;
}
public KRFUNC_PUBLIC_CFGFLOOD(id)
{
if (is_user_hltv(id))
{
return 1;
}
new var1;
if (!KRFUNC_CFGFLOOD[id][0][0])
{
new var2 = KRFUNC_CFGFLOOD[id];
var2 = 1;
set_task(10.00/*1092616192*/, "KRFUNC_PUBLIC_CFGFLOOD_UNMARK", id, "", 0, "", 0);
var1 = var2;
}
else
{
new var3 = KRFUNC_CFGFLOOD_WORK;
if (!var3[id][0][0])
{
KRFUNC_CFGFLOOD_WORK[id] = 1;
new ip[16];
get_user_ip(id, ip, 15, "");
new name[32];
get_user_name(id, name, 31);
new userid = get_user_userid(id);
if (get_cvar_num("amx_krondfunctions_cfgflood") == 1)
{
client_print(id, "", "----------------------------------------------------------------------------------------------------");
client_print(id, "", "[Krond Functions] ");
client_print(id, "", " * Esti suspectat de CFGFLOOD, am hotarat ca e mai bine sa-ti dam un kick. ");
client_print(id, "", " * La Krond-isti nu merg manevre de genu, canta la alta masa ... ");
client_print(id, "", "----------------------------------------------------------------------------------------------------");
server_cmd("kick #%d", userid);
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] CFGFLOOD: %s (%s) a incercat sa floodeze serverul prin cfgflood, i-am dat kick conform setarilor.", name, ip);
}
}
else
{
if (get_cvar_num("amx_krondfunctions_cfgflood") == 2)
{
client_print(id, "", "----------------------------------------------------------------------------------------------------");
client_print(id, "", "[Krond Functions] ");
client_print(id, "", " * Esti suspectat de CFGFLOOD, am hotarat ca este mai bine sa ne parasesti pentru urmatoarele 15 minute.");
client_print(id, "", " * La Krond-isti nu merg manevre de genu, canta la alta masa ...");
client_print(id, "", "----------------------------------------------------------------------------------------------------");
server_cmd("kick #%d", userid);
server_cmd("addip 15 %s", ip);
server_cmd("writeip");
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] CFGFLOOD: %s (%s) a incercat sa floodeze serverul prin cfgflood, i-am dat kick si ban conform setarilor.", name, ip);
}
}
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] CFGFLOOD: %s (%s) incearca sa floodeze serverul prin cfgflood, nu pot sa-i fac nimic pentru ca valorile setate in plugin nu permit actiunea.", name, ip);
}
KRFUNC_CFGFLOOD_WORK[id] = 0;
return 1;
}
var1 = var3;
}
return 0;
}
public KRFUNC_PUBLIC_CFGFLOOD_UNMARK(id)
{
KRFUNC_CFGFLOOD[id] = 0;
return 0;
}
bool:KRFUNC_PUBLIC_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;
}
public KRFUNC_PUBLIC_AUTOBUY(id)
{
new ip[16];
get_user_ip(id, ip, 15, "");
new name[32];
get_user_name(id, name, 31);
new userid = get_user_userid(id);
static i;
static args;
static arg[512];
args = read_argc();
i = 1;
while (i < args)
{
read_argv(i, arg, "");
if (KRFUNC_PUBLIC_AUTOBUY_LONG(arg, 511))
{
if (get_cvar_num("amx_krondfunctions_autobuy") == 1)
{
client_print(id, "", "----------------------------------------------------------------------------------------------------");
client_print(id, "", "[Krond Functions] ");
client_print(id, "", " * Esti suspectat de AUTOBUY BUG, am hotarat ca e mai bine sa-ti dam un kick. ");
client_print(id, "", " * La Krond-isti nu merg manevre de genu, canta la alta masa ... ");
client_print(id, "", "----------------------------------------------------------------------------------------------------");
server_cmd("kick #%d", userid);
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] AUTOBUY BUG: %s (%s) a incercat sa dea crash serverului printr-un bug, i-am dat kick conform setarilor.", name, ip);
}
}
else
{
if (get_cvar_num("amx_krondfunctions_autobuy") == 2)
{
client_print(id, "", "----------------------------------------------------------------------------------------------------");
client_print(id, "", "[Krond Functions] ");
client_print(id, "", " * Esti suspectat de AUTOBUY BUG, am hotarat ca este mai bine sa ne parasesti pentru urmatoarele 15 minute.");
client_print(id, "", " * La Krond-isti nu merg manevre de genu, canta la alta masa ...");
client_print(id, "", "----------------------------------------------------------------------------------------------------");
server_cmd("kick #%d", userid);
server_cmd("addip 15 %s", ip);
server_cmd("writeip");
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] AUTOBUY BUG: %s (%s) a incercat sa dea crash serverului printr-un bug, i-am dat kick si ban conform setarilor.", name, ip);
}
}
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] AUTOBUY BUG: %s (%s) incearca sa dea crash serverului printr-un bug, nu pot sa-i fac nimic pentru ca valorile setate in plugin nu permit actiunea.", name, ip);
}
return 1;
}
i += 1;
}
return 0;
}
public KRFUNC_PUBLIC_AUTOCONFCLASS()
{
!!! Removed Phi
if (file_exists(KRFUNC_CONFFULL) && get_cvar_num("amx_krondfunctions_rewriteconf") == 1)
{
if (delete_file(KRFUNC_CONFFULL))
{
if (get_cvar_num("amx_krondfunctions_log") == 1)
{
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] REWRITECONF: fisierul de configurare a fost rescris, conform configuratiei");
}
set_cvar_num("amx_krondfunctions_rewriteconf", 0);
}
log_to_file(KRFUNC_LOGFILE, "[Krond Functions] REWRITECONF: fisierul nu poate fi sters pentru rescriere ulterioara, contactati administratorul.");
set_cvar_num("amx_krondfunctions_rewriteconf", 0);
}
if (!file_exists(KRFUNC_CONFFULL))
{
write_file(KRFUNC_CONFFULL, "// ==================================================", -1);
write_file(KRFUNC_CONFFULL, "// ============= Krond Solutions @ 2011 =============", -1);
write_file(KRFUNC_CONFFULL, "// ==================================================", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// ====== Krond Functions 1.5.6-stable (04.Februarie.2011) ======", -1);
write_file(KRFUNC_CONFFULL, "// URL:
http://www.krond.org/forum/viewtopic.php?f=9&&t=2473", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// -> amx_krondfunctions_cfgflood", -1);
write_file(KRFUNC_CONFFULL, "// Scop: Urmareste si inlatura conform setarilor pe toti cei care incearca sa floodeze serverul prin traditionalele config-uri executate in consola", -1);
write_file(KRFUNC_CONFFULL, "// Impact: Serverul experimenteaza lag peste 200+ la orice jucator prezent pe server, fiind floodat prin 'fullupdate'", -1);
write_file(KRFUNC_CONFFULL, "// Update: Incepand de la versiunea 1.5.2, filtrarea floodului prin config nu mai este insotita de alarme false, in speta cvar-ul pentru imunitate admini este scos.", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 0: functia este dezactivata complet, serverul este vulnerabil impotriva atacurilor", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 1: setat in mod implicit (default), kick la atacator.", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 2: setat in mod agresiv, kick si ban la atacator", -1);
write_file(KRFUNC_CONFFULL, "amx_krondfunctions_cfgflood 1", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// -> amx_krondfunctions_specbug", -1);
write_file(KRFUNC_CONFFULL, "// Scop: Urmareste si inlatura conform setarilor pe toti cei care incearca sa afecteze buna functionare a serverului prin specbug ", -1);
write_file(KRFUNC_CONFFULL, "// Impact: Serverul primeste crash in momentul in care se apeleaza la acest bug ", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 0: functia este dezactivata complet, serverul este vulnerabil impotriva atacurilor", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 1: setat in mod implicit (default), va urmari activitatea si va executa comanda 'retry' la individul ce incearca sa ne faca probleme. ", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 2: setat in mod agresiv, va urmari activitatea si va executa kick+ban 15 minute la individul ce incearca sa ne faca probleme. ", -1);
write_file(KRFUNC_CONFFULL, "amx_krondfunctions_specbug 1 ", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// -> amx_krondfunctions_autobuy ", -1);
write_file(KRFUNC_CONFFULL, "// Scop: Urmareste si inlatura conform setarilor pe toti cei care incearca sa afecteze buna functionare a serverului prin autobuy ", -1);
write_file(KRFUNC_CONFFULL, "// Impact: Serverul primeste crash in momentul in care se apeleaza la acest bug", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 0: functia este dezactivata complet, serverul este vulnerabil impotriva atacurilor", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 1: setat in mod implicit (default), va urmari activitatea si va executa kick respectivului.", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 2: setat in mod agresiv, va urmari activitatea si va executa kick+ban 15 minute la individul ce incearca sa ne faca probleme.", -1);
write_file(KRFUNC_CONFFULL, "amx_krondfunctions_autobuy 1", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// -> amx_krondfunctions_vaultclean ", -1);
write_file(KRFUNC_CONFFULL, "// Scop: Inainte de schimbarea hartii, in plugin_end - se va sterge vault.ini ", -1);
write_file(KRFUNC_CONFFULL, "// Impact: Serverul incarca foarte greu noua harta, in cazul in care vault.ini are o dimensiune chiar si de cativa KB", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 0: functia este dezactivata complet, plugin-ul nu va actiona", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 1: setat in mod implicit (default), va sterge fisierul addons/amxmodx/data/vault.ini inainte de schimbarea hartii", -1);
write_file(KRFUNC_CONFFULL, "amx_krondfunctions_vaultclean 1", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// -> amx_krondfunctions_banclean ", -1);
write_file(KRFUNC_CONFFULL, "// Scop: Curata banurile de pe server date pe IP-ul serverului, clasa serverului sau 0.0.0.0 ", -1);
write_file(KRFUNC_CONFFULL, "// Impact: In cazul in care un admin pune ban pe clasele serverului - plugin-ul va scoate acest ban.", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 0: functia este dezactivata complet, nu se vor scoate banurile.", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 1: setat in mod implicit (default), se vor scoate banurile pe clasa serverului sau pe 0.0.0.0", -1);
write_file(KRFUNC_CONFFULL, "amx_krondfunctions_banclean 1", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// -> amx_krondfunctions_automaster", -1);
write_file(KRFUNC_CONFFULL, "// Scop: La fiecare 5 minute plugin-ul va verifica daca avem principalele setmastere adaugate (cu alte cuvinte, daca avem maximizate sansele de aparitie in lista publica de servere steam)", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 0: Inactiv (valoare implicita) ", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 1: Activ", -1);
write_file(KRFUNC_CONFFULL, "amx_krondfunctions_automaster 0", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// -> amx_krondfunctions_customhpk", -1);
write_file(KRFUNC_CONFFULL, "// Scop: La finalul fiecarei harti, se va verifica daca binecunoscutul fisier custom.hpk poate creea probleme prin dimensiuniile sale ce depasesc 1 MB, in cazul in care setarea este activa iar custom.hpk are mai mult de 1 MB - se va sterge fisierul.", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 0: Inactiv ", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 1: Activ (valoare implicita)", -1);
write_file(KRFUNC_CONFFULL, "amx_krondfunctions_customhpk 1", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// -> amx_krondfunctions_maxrank", -1);
write_file(KRFUNC_CONFFULL, "// Scop: cu totii stim ca o statistica mult prea mare dauneaza serverului prin inlesnirea timpului de incarcare a hartilor precum si in anumite situatii, stabilitatea ping-ului jucatorilor, etc. Prin aceasta setare definim numarul maxim admis de inregistrari in csstats.dat (se recomanda maxim 30.000), iar in momentul in care acest prag este atins - vom programa o resetare.", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 0: Inactiv (valoare implicita) ", -1);
write_file(KRFUNC_CONFFULL, "// Valoare mai mare de 1: Activ (se recomanda 30000)", -1);
write_file(KRFUNC_CONFFULL, "amx_krondfunctions_maxrank 0", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// -> amx_krondfunctions_log", -1);
write_file(KRFUNC_CONFFULL, "// Scop: permitem sau nu plugin-ului sa ne creeze krond-functions.log in directorul /logs/ - mesajele critice vor fi scrise indiferent de valoarea setata", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 0: Inactiv", -1);
write_file(KRFUNC_CONFFULL, "// Valoarea 1: Activ (valoare implicita)", -1);
write_file(KRFUNC_CONFFULL, "amx_krondfunctions_log 1", -1);
write_file(KRFUNC_CONFFULL, " ", -1);
write_file(KRFUNC_CONFFULL, "// ==================================================", -1);
write_file(KRFUNC_CONFFULL, "// ==================================================", -1);
}
server_cmd("exec %s", KRFUNC_CONFFULL);
return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1048\\ f0\\ fs16 \n\\ par }
*/