Raised This Month: $51 Target: $400
 12% 

AD Blocker [ Improved Swear Replacement ]


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
WorldGod
BANNED
Join Date: Aug 2016
Location: Top of the World
Old 11-10-2016 , 06:18   AD Blocker [ Improved Swear Replacement ]
Reply With Quote #1

WarGods AD Blocker: block all the community claims, no matter if you put space or special characters, it is working 100%.

The words you will put in wargods_adblock.ini from addons/amxmodx/configs.

Cvars:
Code:
wgods_adblock 0 // enable, -1 = disable -- activeaza/dezactiveaza pluginul
wgods_adblock_resetcfg -1 // (default: -1) -> 0 = enable, -1 = disable
wgods_adblock_debug 0 // (default: 0) -> 0 = enable, -1 = disable -- creaza un log cu toate reclamele facute pe server (util pentru a vedea cazurile false)
wgods_adblock_punish 1 // (default: -1)
wgods_adblock_punish_min 3 // (default: 3) -> cate minute de pedeapsa
wgods_adblock_maxsay 5 // (default: 3) -> de cate ori are voie sa faca reclama pe chat inainte de a i se aplica pedeapsa (daca exista) [reclamele nu se vor vedea in acest timp]
wgods_adblock_leet_check 1 // (default: 1) -> se converteste anumite caractere din leet, in cifre pentru a vedea daca exista reclama in ele
wgods_adblock_leet "1234567890" // caracterele de baza leet (se pot adauga, dar trebuie sa respecte ordinea cu non-leet)
wgods_adblock_nonleet "ireasbtbgo" // caracterele convertite din leet (se pot adauga, dar dimensiuniile celor 2 stringuri trebuie sa fie neaparat egale!!!)
Attached Files
File Type: ini wargods_adblock.ini (4.3 KB, 299 views)
File Type: sma Get Plugin or Get Source (WarGods AD Block.sma - 607 views - 2.3 KB)

Last edited by WorldGod; 11-10-2016 at 08:07.
WorldGod is offline
Send a message via Yahoo to WorldGod
JusTGo
Veteran Member
Join Date: Mar 2013
Old 11-10-2016 , 07:36   Re: AD Blocker [ Improved Swear Replacement ]
Reply With Quote #2

you are not allowed to upload .amxx files.
__________________
JusTGo is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-10-2016 , 07:42   Re: AD Blocker [ Improved Swear Replacement ]
Reply With Quote #3

Quote:
Originally Posted by WorldGod View Post
I don't have the sma
That's a no-no here.

EDIT: Ow, JusTGo was quicker.

Last edited by klippy; 11-10-2016 at 07:42.
klippy is offline
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 11-10-2016 , 07:45   Re: AD Blocker [ Improved Swear Replacement ]
Reply With Quote #4

Decompiled...
PHP Code:
#include <amxmodx>

#pragma semicolon 1
#pragma ctrlchar '\'

new nr;
new 
cuv[100][256];
new 
wargods[2];

public 
plugin_init()
{
    
register_plugin("WarGods SayBind Blocker""1.21""Tiger");
    
register_clcmd("say""handleSay", -1"", -1);
    
register_clcmd("say_team""handleSay", -1"", -1);
    return 
0;
}

public 
plugin_precache()
{
    
wargods[0] = register_cvar("wgods_saybind_blocker""1"00.00);
    
wargods[1] = register_cvar("wgods_saybind_debug""1"00.00);
    if (
get_pcvar_num(wargods[0]))
    {
        new 
szDatadir[64];
        new 
g_szFile[128];
        
get_localinfo("amxx_configsdir"szDatadir63);
        
formatex(szDatadir63"%s"szDatadir);
        if (!
dir_exists(szDatadir))
        {
            
mkdir(szDatadir);
        }
        
formatex(g_szFile127"%s/wargods_saybind_expcetion.ini"szDatadir);
        if (!
file_exists(g_szFile))
        {
            return 
1;
        }
        new 
Data[256];
        new 
cuvant[32];
        new 
iFile fopen(g_szFile"rt");
        while (!
feof(iFile))
        {
            if (
nr == 99)
            {
                return 
1;
            }
            
fgets(iFileData255);
            
parse(Datacuvant31);
            
format(cuv[nr], 255"%s"cuvant);
            
nr += 1;
        }
        
fclose(iFile);
        return 
0;
    }
    return 
1;
}

public 
handleSay(id)
{
    if (
get_pcvar_num(wargods[0]))
    {
        new 
args[50];
        
read_args(args49);
        if (
args[0] != 34)
        {
            if (
nr)
            {
                new 
0;
                while (
<= nr)
                {
                    if (
equal(argscuv[i]))
                    {
                        return 
0;
                    }
                    
i++;
                }
            }
            new 
name[32];
            
get_user_name(idname31);
            
// message_begin(MSG_ONE, 76, _, id);
            // write_byte(id);
            // write_string(103516);
            // message_end();
            
if (get_pcvar_num(wargods[1]) == 1)
            {
                
log_to_file("WarGods SayBind Blocker.log""Nick: %s [Say: %s]"nameargs);
            }
            return 
1;
        }
        return 
0;
    }
    return 
0;

Mistrick is offline
WorldGod
BANNED
Join Date: Aug 2016
Location: Top of the World
Old 11-10-2016 , 08:03   Re: AD Blocker [ Improved Swear Replacement ]
Reply With Quote #5

Wow well done Mistrick, thank you very much, now I will edit.
WorldGod is offline
Send a message via Yahoo to WorldGod
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 11-10-2016 , 08:11   Re: AD Blocker [ Improved Swear Replacement ]
Reply With Quote #6

WorldGod, This is only automated decompilation. It doesn't guarantee the correct plugin work.
Mistrick is offline
WorldGod
BANNED
Join Date: Aug 2016
Location: Top of the World
Old 11-10-2016 , 08:12   Re: AD Blocker [ Improved Swear Replacement ]
Reply With Quote #7

Did you use amxx dump ?
WorldGod is offline
Send a message via Yahoo to WorldGod
Mistrick
Senior Member
Join Date: Aug 2012
Location: Russia
Old 11-10-2016 , 08:17   Re: AD Blocker [ Improved Swear Replacement ]
Reply With Quote #8

WorldGod, I used Lysis for AMXX. And I made a mistake with the topic of the post. Source of SayBind Blocker.
Mistrick is offline
Adryyy
Member
Join Date: Oct 2011
Old 11-12-2016 , 04:37   Re: AD Blocker [ Improved Swear Replacement ]
Reply With Quote #9

Quote:
Originally Posted by Mistrick View Post
WorldGod, I used Lysis for AMXX. And I made a mistake with the topic of the post. Source of SayBind Blocker.
Stupid :-j
Adryyy is offline
Send a message via Yahoo to Adryyy Send a message via Skype™ to Adryyy
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-08-2017 , 10:01   Re: AD Blocker [ Improved Swear Replacement ]
Reply With Quote #10

Wrong source code, author did not fixed it.
__________________
HamletEagle is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:13.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode