CSPLague
Otoban - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87)
+---- Thread: Otoban (/showthread.php?tid=7579)



Otoban - melof - 12-05-13

Serverde reklam atan playere benim belırledıgım reason ve süre seklınde ban atıcak yanlız reklam kelimelerini yazmam icin .ini'de yapsanız cok iyi olur


Cevap: Otoban - kApO - 12-05-13

İlk önce istediğiniz şeyleri biraz forumda dolaşıp da arasanız bulacaksınız.

Buyur Link => IP Reklam Engelleyici Plugini ( Reklam Yapan Kick & Ban )



Cevap: Otoban - melof - 12-05-13

emin ol 10 dakıka aradım bulsam burda paylasmazdım
zaten istedigim plugin bu degl gereksız yorum atma Wink
Ben reason ve banı belırleyebılecegım ve .ini dosyalı bı plugin istemistim..


Cevap: Otoban - kApO - 12-05-13

içine girdinmi daha önce?


Cevap: Otoban - melof - 13-05-13

.ini ?


Cevap: Otoban - akcaliberkk - 13-05-13

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Reklam Onleyici"
#define VERSION "1.0"
#define AUTHOR "akcaliberkk"

new const file[] = "addons/amxmodx/configs/reklamban.ini";

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    if(!
file_exists(file)) {
        new 
fopen(file,"wt");
        
fclose(f);
    }
    
    
register_clcmd("say","HookSay")
    
register_clcmd("say_team","HookSay")
}
public 
HookSay(id) {
    new 
szSaid[248];
    
read_args(szSaid,247)
    
remove_quotes(szSaid)
    new 
szWord[64],szReason[64],szFlag[10];
    new 
LineText[148],txtlen;
    new 
maxlines file_size(file,1);
    new 
name[32];
    
get_user_name(id,name,31)
    for(new 
line;line<maxlines;line++) {
        
read_file(file,line,LineText,147,txtlen);
        
parse(LineText,szWord,63,szReason,63,szFlag,9)
        if(
containi(szSaid,szWord) != -1) {
            if(
equali(szFlag,"b")) {
                
server_cmd("amx_ban #%d 0 ^"%s^"",get_user_userid(id),szReason)
                
client_print(0,print_chat,"[OTOBAN] %s Adli Oyuncu Reklam Icerikli Mesajdan Dolayi Banlandi.",name)
            }
            else {
                
server_cmd("kick #%d ^"%s^"",get_user_userid(id),szReason)
                
client_print(0,print_chat,"[OTOKICK] %s Adli Oyuncu Reklam Icerikli Mesajdan Dolayi Atildi.",name)
            }
            break;
        }
    }
    return 
PLUGIN_HANDLED
    


reklamban.ini:
Code:
//"yasakli kelime" "atilma sebebi" "atilma metodu"
//Atılma metodları = b: Ban, k: Kick
//Örnek
"www.csplague.com" "Reklamdan dolayi banlandiniz" "b"
"123.123.123.123" "Reklamdan dolayi atildiniz" "k"



Cevap: Otoban - melof - 13-05-13

İşte bu. sagol


Cevap: Otoban - akcaliberkk - 14-05-13

Çözülmüş İsteklere taşındı.