Raised This Month: $ Target: $400
 0% 

Advanced Spam Protection v4.5.1 [3 Jan 2015]


Post New Thread Reply   
 
Thread Tools Display Modes
souvikdas95
Senior Member
Join Date: Mar 2012
Old 04-20-2014 , 03:37   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3 ]
Reply With Quote #81

Quote:
Originally Posted by DonKisgot View Post
Thanks bro! Really nicework!

1 more suggestion from me ;


Can you please make an admin command like : amx_warn , as ı see when we use this plugin we don't need to use another external gag plugin. So , if you can make an admin command admins can warn players ? (with motd)

Anyways NJ
What I feel is that these are Misc features i.e. these are not related to the motive of the plugin. However, since the code is open, you can yourself define it in the plugin. functions like : "ASP_Motd" and "ASP_Punish" readily maintain the information and execution of spammers + as I mentioned, a developmental API has been made out of the entire plugin. You can add your own scripts for other types of spams as well ( if there are any )
Specifically in your case, you would need to register a concmd/clcmd command in plugin_init() to point to a function eg. "ASP_gag" or whatever you want to name it. eg.

PHP Code:
ASP_Gag id )
{
    static 
iTargetargcarg[32];
    
    
argc read_argc ( ) - 1;
    if ( !
argc /* min. 1 argument */
        
return PLUGIN_HANDLED
    
    
// Read Argument 1 eg. SteamID or #UserID or Name
    
read_argv 1argcharsmax arg ) );
    
iTarget cmd_target idarg );
    if ( !
iTarget // Player not Found
        
return PLUGIN_HANDLED
    
    
// Read Argument 2 eg. 0 - MODE_CHAT, 1 - MODE_NAME, 2 - BOTH
    
static boolMODE_GAG;
    
MODE_GAG 0;
    if ( 
argc >= )
    {
        
read_argv 2argcharsmax arg ) );
        
MODE_GAG str_to_num arg );
    }
    
    
// Read Argument 3 eg. 30.0 ( in Seconds Duration )
    
static FloatfDurationszDuration[32];
    
fDuration 0.0;
    if ( 
argc >= /* actual 3 arguments */
    
{
        
read_argv 3argcharsmax arg ) );
        
fDuration str_to_float arg );
        
formatex szDurationcharsmax szDuration ), "[ Duration - %0.0f Seconds ]"fDuration );
    }

    static 
FloatfStore;
    
fStore 0.0;
    
    if ( 
MODE_GAG == || MODE_GAG == )
    {
        
// Check for Duration
        
if ( fDuration )
        {
            
// Store Original Duration
            
fStore FloatCONFIG[Chat_PunishDuration];
            
CONFIG[Chat_PunishDuration] = _:fDuration;
                
            
// Punish and Restore Original Duration
            
ASP_Punish iTargetSPAM_NULLMODE_CHAT );
            
CONFIG[Chat_PunishDuration] = _:fStore;
            
            
// Show MOTD
            
if ( MODE_GAG == )
                
ASP_Motd iTarget"Your Chat Has Been Blocked For Spamming"szDuration );
        }
        else
        {
            
// Simply Punish and Show Motd
            
ASP_Punish iTargetSPAM_NULLMODE_CHAT );
            if ( 
MODE_GAG == )
                
ASP_Motd iTarget"Your Chat Has Been Blocked For Spamming"CONFIG[Chat_PunishDuration] );
        }
    }
    
    if ( 
MODE_GAG == || MODE_GAG == )
    {
        
// Check for Duration
        
if ( fDuration )
        {
            
// Store Original Duration
            
fStore FloatCONFIG[Name_PunishDuration];
            
CONFIG[Name_PunishDuration] = _:fDuration;

            
// Punish and Restore Original Duration
            
ASP_Punish iTargetSPAM_NULLMODE_NAME );
            
CONFIG[Name_PunishDuration] = _:fStore;
        
            
// Show MOTD
            
if ( MODE_GAG == )
                
ASP_Motd iTarget"You have been Prevented from Changing Name For Spamming"szDuration );
        }
        else
        {
            
// Simply Punish and Show Motd
            
ASP_Punish iTargetSPAM_NULLMODE_NAME );
            if ( 
MODE_GAG == )
                
ASP_Motd iTarget"You have been Prevented from Changing Name For Spamming"FloatCONFIG[Name_PunishDuration] );
        }
    }
    
    
// Just a little different MOTD for "Both" case
    
if ( MODE_GAG == )
        
ASP_Motd iTarget"Your Chat and Name, both have been Blocked For Spamming"fDurationszDuration : ( FloatCONFIG[Name_PunishDuration] ) );
    
    return 
PLUGIN_HANDLED


Last edited by souvikdas95; 04-20-2014 at 04:38.
souvikdas95 is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 04-21-2014 , 02:06   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3.1 ]
Reply With Quote #82

Version 4.3.1 Released :

New Changes -
  1. Optimized: BlackList/WhiteList Check
  2. Added: New Config: "IgnoreCase"
souvikdas95 is offline
Enterctrl
Junior Member
Join Date: Jan 2014
Old 04-24-2014 , 06:00   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3.1 ]
Reply With Quote #83

i want to add this function: "Check for Chat/Name Block/Change, on Spammer Reconnect" and the chat's player stay still blocked in plugin version 4.1 how to do that can you write me the cvar command?
Enterctrl is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 04-24-2014 , 11:17   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3.1 ]
Reply With Quote #84

is there any way to prohibit only the word ?

Example : ı want to prohibit word "exp" but ı don't want to prohibit word "experiance"

so how to make only word "exp" prohibited. because our language is diffrent from englih. we have so many words which made of other words. so ı can't whitelist all of them. (ı can't figure out what he gonna say.) so can you make a command

ex : if ı wrote "**exp**" into the blacklist.ini so plugin only prohibit "exp" word not "experiance" or other words containing "exp" is that possible ?
DonKisgot is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 04-24-2014 , 13:40   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3.1 ]
Reply With Quote #85

@Enterctrl - Sorry, no support for older version. But I would like to know why you insist on using the older version when the newer version is much smarter and less resource consuming than before?

@DonKisgot - add "exp" to blacklist and "experience" to whitelist. Unfortunately I haven't included any "Intra-list Exceptions" but I find your concern valid and this would be in my ToDo list for next release. Thank you

Last edited by souvikdas95; 04-24-2014 at 14:49.
souvikdas95 is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 04-25-2014 , 07:42   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3.2 ]
Reply With Quote #86

As ı told you , Turkish Language is diffrent. there are thousands of words that can be derived by one word. For example : we have a word "oku" and we have many other words "okumak" , "okul" , "okuyan" , "okutulan" .... and more be like this.. so ı can't think about what player gonna say.. so it's impossible to whitelist all the words except "oku".

At least you understand my bad english and my concern. I'm looking for your plugins new version
DonKisgot is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 04-27-2014 , 23:00   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3.3 ]
Reply With Quote #87

Version 4.3.3 Released :

New Changes -
  1. Removed: Trimming of White Spaces from Start and End of Lines in ASP_BlackList.ini and ASP_WhiteList.ini
  2. Added: Support for Individual Words ( Now you can add words like "exp" like %exp% inside Blacklist File. )

Last edited by souvikdas95; 04-27-2014 at 23:01.
souvikdas95 is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 04-28-2014 , 14:56   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3.3 ]
Reply With Quote #88

Quote:
Originally Posted by souvikdas95 View Post
Version 4.3.3 Released :

New Changes -
  1. Removed: Trimming of White Spaces from Start and End of Lines in ASP_BlackList.ini and ASP_WhiteList.ini
  2. Added: Support for Individual Words ( Now you can add words like "exp" like %exp% inside Blacklist File. )
I saw your plugins new version now. I'm insta-testing now Thanks for care our suggestions.

1 More suggestions ;

can you please make lang.txt file? I need to translate whole plugin again and again every update. Next version maybe you can make it via lang.txt file ?

Also if you make it like this I can provide you Turkish translate and much more translates will come and make your plugin multilingual (I think )
DonKisgot is offline
DonKisgot
Senior Member
Join Date: Dec 2010
Old 04-28-2014 , 16:12   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3.3 ]
Reply With Quote #89

I tested , plugin seems ON , but didn't warn , kick , or hide blacklisted words ?

why this can be happen ?

here is my blacklist.ini

//Use // or ; to comment the Line
//-----Write Below This Line-----
%a.m.k%
%amk%
%a.q%
%aq%
%0c%
%0.c%
%o.c%
%am.k%
%am.q%
%yarrak%
%oc%
%anani%
%anneni%
%sikeyim%
%sikerim%
%siktim%
%sikicem%
%sikecem%
%orospu cocugu%
%orospu%
%yavsak%
%evladi%
%aptal%
%salak%
gerizekali
geri zekali
beyinsiz
%kahpe%
%fahise%
%amcik%
%got%
%g0t%
%pic%
%p1c%
%p!c%
%p.i.c%
.com
.net
.org
hepoyuncu
revenge
oynucaz
csduragi
oyunsunucum
oyunyoneticisi
%lan%
%lamer%
%velet%
%bot%
%noob%
%orosbu%
%orusbu%
%cocugu%
%evladi%

did ı something wrong ?

Last edited by DonKisgot; 04-28-2014 at 16:15.
DonKisgot is offline
souvikdas95
Senior Member
Join Date: Mar 2012
Old 04-28-2014 , 23:39   Re: [CS1.6/CZ] Advanced Spam Protection [ v4.3.4 ]
Reply With Quote #90

Version 4.3.4 Released :

New Changes -
  1. Fixed: Broken BlackList

@DonKisgot - Thanks for Informing

Last edited by souvikdas95; 04-29-2014 at 00:43.
souvikdas95 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 16:24.


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