konsol komutlarini yasaklama
Gönderilme zamanı: Çrş Ağu 03, 2016 11:43 pm
Yasaklıyamazsın.
Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "Flood Block"
#define VERSION "1.0 Beta"
#define AUTHOR "FORUM.CSDURAGI.COM"
#define NUMOFMESSAGES 9
new messages[NUMOFMESSAGES+1][192]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("amx_help", "floodBlock")
register_clcmd("exec", "floodBlock")
register_clcmd("amx_revive", "floodBlock")
register_clcmd("amx_glow2", "floodBlock")
register_clcmd("amx_slap", "floodBlock")
register_clcmd("amx_slay2", "floodBlock")
register_clcmd("amx_uberslap", "floodBlock")
register_clcmd("amx_transfer", "floodBlock")
register_clcmd("amx_csay", "floodBlock")
register_clcmd("amx_tsay", "floodBlock")
register_clcmd("amx_chat", "floodBlock")
register_clcmd("amx_bury", "floodBlock")
register_clcmd("amx_unbury", "floodBlock")
register_clcmd("amx_rocket", "floodBlock")
register_clcmd("amx_weapon", "floodBlock")
register_clcmd("amx_noclip", "floodBlock")
register_clcmd("amx_ban", "floodBlock")
register_clcmd("amx_rocket", "floodBlock")
register_clcmd("amx_weapon", "floodBlock")
register_clcmd("amx_banip", "floodBlock")
register_clcmd("amx_unban", "floodBlock")
register_clcmd("amx_heal", "floodBlock")
register_clcmd("amx_stack", "floodBlock")
register_clcmd("amx_revive", "floodBlock")
register_clcmd("amx_gravity", "floodBlock")
register_clcmd("amx_godmode", "floodBlock")
register_clcmd("amx_glow", "floodBlock")
register_clcmd("amx_swap", "floodBlock")
register_clcmd("amx_speed", "floodBlock")
}
public floodBlock(id)
{
new i
for (i=NUMOFMESSAGES; i>0; i--) messages[i] = messages[i-1]
read_args(messages[0], 191)
for (i=1; i<=NUMOFMESSAGES; i++)
if (equal(messages[0], messages[i])) {
console_print(id,"[Forum.CSDuragi.CoM] Girmeye Calistiginiz Bu Kod Yonetici Tarafindan Yasaklanmistir")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/
FearLess yazdı:SMA CEVIRIRSIN KARDEŞİM ;
Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <hamsandwich> #define PLUGIN "Flood Block" #define VERSION "1.0 Beta" #define AUTHOR "NONE" #define NUMOFMESSAGES 9 new messages[NUMOFMESSAGES+1][192] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("exec", "floodBlock") } public floodBlock(id) { new i for (i=NUMOFMESSAGES; i>0; i--) messages[i] = messages[i-1] read_args(messages[0], 191) for (i=1; i<=NUMOFMESSAGES; i++) if (equal(messages[0], messages[i])) { console_print(id,"[Forum.CSDuragi.COM] Girmeye Calistiginiz Bu Kod Yonetici Tarafindan Yasaklanmistir") return PLUGIN_HANDLED } return PLUGIN_CONTINUE } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par } */
Hmmm....By.Dehset yazdı:FearLess yazdı:SMA CEVIRIRSIN KARDEŞİM ;
Kod: Tümünü seç
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #include <cstrike> #include <hamsandwich> #define PLUGIN "Flood Block" #define VERSION "1.0 Beta" #define AUTHOR "NONE" #define NUMOFMESSAGES 9 new messages[NUMOFMESSAGES+1][192] public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_clcmd("exec", "floodBlock") } public floodBlock(id) { new i for (i=NUMOFMESSAGES; i>0; i--) messages[i] = messages[i-1] read_args(messages[0], 191) for (i=1; i<=NUMOFMESSAGES; i++) if (equal(messages[0], messages[i])) { console_print(id,"[Forum.CSDuragi.COM] Girmeye Calistiginiz Bu Kod Yonetici Tarafindan Yasaklanmistir") return PLUGIN_HANDLED } return PLUGIN_CONTINUE } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par } */
Attığın art ara iki defa aynı komudu girememe eklentisidir. engelleme vs. söz konusu değildir. Exec Komudunu Engelliyemezsin.
Gördüğüm kötü eklentilerden biri.