Raised This Month: $ Target: $400
 0% 

AntiAdvertising/AntiBad language


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
draklia
Junior Member
Join Date: Jan 2016
Old 04-04-2016 , 17:01   AntiAdvertising/AntiBad language
Reply With Quote #1

Hello, I made a plugin, the bad lanaguage / ads. This plugin works prefect makes it a player as they submit. di **, this message is sent automatically expires. Writes 3x curse, so it's Kick. Writes 3x ad will be kicked. Sorry for me bad english.



PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <xs>
#include <colorchat>
#include <cstrike>

#define PLUGIN "Anti-AD/BADLANAGUAGE"
#define VERSION "1.0"
#define AUTHOR "Kalendarky(Draklia)"

new name[32],authid[32]

new 
Warning[36];
new 
Acheat[36][3];

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say""bad_say")
    
register_clcmd("say_team""bad_say")
}
public 
kickBad(id

    
get_user_name(id,name,31)
    
get_user_authid(id,authid,31)
    
ColorChat0GREEN"^1[^4AntiCheat^1] ^3Player %s has been kicked for ^4bad lanaguage!",name);
    
server_cmd("kick #%d ^"Do not say bad lanaguage!!!^"",get_user_userid(id))
}
public 
kickAD(id

    
get_user_name(id,name,31)
    
get_user_authid(id,authid,31)
    
ColorChat0GREEN"^1[^4AntiCheat^1] ^3Player %s has been kicked for ^4Advertising!",name);
    
server_cmd("kick #%d ^"Do not say AD messages!!!^"",get_user_userid(id))
}
public 
bad_say(id
{    
    new 
Speech[192]
    
read_args(Speech,192)
    
remove_quotes(Speech)
    
//Anti Bad Lanaguages
    /********************************************************/
    
if((containi(Speech"retard") != -1) || 
    (
containi(Speech"asshole") != -1) || 
    (
containi(Speech"dick") != -1) || 
    (
containi(Speech"dic*") != -1) || 
    (
containi(Speech"bitch") != -1) || 
    (
containi(Speech"fuck") != -1))
         {
    
ColorChatidGREEN"^1[^4AntiCheat^1] ^1|^4Bad Lanaguage^1| ^3testifies about your intelligence!");
    
set_task(1.0"check_warn"12);
    
Warning[id] += 1;
    
Acheat[id][1] = true;
    return 
PLUGIN_HANDLED
         
}
//Anti Advertising
/********************************************************/
if((containi(Speech"gamesites") != -1) || 
(
containi(Speech"www") != -1) ||
(
containi(Speech"http://") != -1) ||
(
containi(Speech".eu") != -1) || 
(
containi(Speech".com") != -1) || 
(
containi(Speech"hack") != -1) ||
(
containi(Speech"csko") != -1) ||
(
containi(Speech"gs") != -1) ||
(
containi(Speech"OH.cz") != -1) ||
(
containi(Speech"oneheroes.cz") != -1) ||
(
containi(Speech"oneheroes.cz") != -1) ||
(
containi(Speech"kotelna") != -1))
{
ColorChatidGREEN"^1[^4AntiCheat^1] ^1|^4Advertising^1| ^3It is prohibited!");
set_task(1.0"check_warn"12);
Acheat[id][2] = true;
return 
PLUGIN_HANDLED
}
return 
PLUGIN_HANDLED;
}
public 
check_warn(id)
{
    if(
Warning[id] >= 3)
    {
        if(
Acheat[id][2] = true)
        {
            
kickAD(id)
        }
        if(
Acheat[id][1] = true)
        {
            
kickBad(id)
        }
        
    }
    

Attached Files
File Type: sma Get Plugin or Get Source (acheat.sma - 707 views - 2.7 KB)
File Type: inc colorchat.inc (5.9 KB, 187 views)
__________________
You want to say?

Last edited by draklia; 04-05-2016 at 07:59.
draklia is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-04-2016 , 17:07   Re: AntiAdvertising/AntiBad language
Reply With Quote #2

Already have Advanced Spam Protection ( ASP )
And inst your plugin. Is by Amxmodx.cz forum! I think this plugin will be unapproved.

Edit: Where is colorchat.inc? Dafuq
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-04-2016 at 17:08.
EFFx is offline
draklia
Junior Member
Join Date: Jan 2016
Old 04-04-2016 , 17:12   Re: AntiAdvertising/AntiBad language
Reply With Quote #3

Im from amxmodx.cz, me nick name is: Kalendarky. Im posted this plugin in here and in amxmodx.cz. this plugin is on section "odpad"
__________________
You want to say?
draklia is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-04-2016 , 19:26   Re: AntiAdvertising/AntiBad language
Reply With Quote #4

Oh Kalendarky , i'm using this plugin in my furien v0.7.
Its a good idea but already have a better plugin with that function.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 04-04-2016 at 19:27.
EFFx is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 04-05-2016 , 02:26   Re: AntiAdvertising/AntiBad language
Reply With Quote #5

Just by reading the code the plugin sucks pretty hard.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 04-05-2016 , 06:21   Re: AntiAdvertising/AntiBad language
Reply With Quote #6

Quote:
Originally Posted by rautamiekka View Post
Just by reading the code the plugin sucks pretty hard.
No, is not
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-05-2016 , 10:15   Re: AntiAdvertising/AntiBad language
Reply With Quote #7

There are much more advanced plugins around here that do this. You don't even indented your code properly. Also hardcoding some words is not acceptable. Unapproved.
__________________

Last edited by HamletEagle; 04-05-2016 at 10:15.
HamletEagle is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 04-05-2016 , 13:25   Re: AntiAdvertising/AntiBad language
Reply With Quote #8

Quote:
Originally Posted by HamletEagle View Post
There are much more advanced plugins around here that do this. You don't even indented your code properly. Also hardcoding some words is not acceptable.
Exactly my words which I left up to you.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
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 03:18.


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