AE86 发表于 2007-12-21 07:57:34

收集作弊D入服自动发出的作弊网站信息

有的麻烦写上来啊,我把它加到插件里,作弊的进服后,发出作弊器自带的信息后就banIP.至少可以防住部分作弊器。
#include <amxmodx>
#include <amxmisc>

new cheater_banned = 0

// Cheat Messages
stock const CheatReports

// !!! add more to file addons/amxmodx/configs/antisay.ini !!!

public plugin_init()
{
register_plugin("Cheat Messages Ban","1.3","dr.aft")

register_clcmd("say", "CheckCheatReport")
register_clcmd("say_team", "CheckCheatReport")

register_cvar("anti_say_bantime", "7200") // 5 Days BAN (7200 minutes)
register_cvar("anti_say_bantype", "2") // 3 - Kicking only 2 - AMXBANS, 1 - IP, 0 - SteamID

set_task(1.0, "EnableAntiCheat")
}

public EnableAntiCheat()
{
        new antisayconfig
        get_configsdir(antisayconfig, 64)
      format(antisayconfig, 63, "%s/antisay.ini", antisayconfig)
        new line = 0
        new textsize = 0
        new text
        new tempstr
        new i = 0

      if (file_exists(antisayconfig))
      {
                while(read_file(antisayconfig,line,text,255,textsize))
                {
                        format(tempstr,128,"%s",text)
                        CheatReports=tempstr
                        line++
                }
      }
}


public Ban(id)
{
        new cheatername
        get_user_name(id, cheatername, 32)       
       
        client_print(0, print_chat, " - Player '%s' - Cheat 'MultiHack' - Banning...", cheatername)
        switch(get_cvar_num("anti_say_bantype"))
        {
                case 0:
                server_cmd("amx_ban #%d %d Multihack", get_user_userid(id), get_cvar_num("anti_say_bantime"))               
                case 1:
                server_cmd("amx_banip #%d %d Multihack", get_user_userid(id), get_cvar_num("anti_say_bantime"))               
                case 3:
                server_cmd("amx_kick #%d Cheating", get_user_userid(id))
                default:
                server_cmd("amx_ban %d #%d Multihack", get_cvar_num("anti_say_bantime"), get_user_userid(id))               
               
        }
        cheater_banned = 1
}

public CheckCheatReport(id)
{
        new said
        cheater_banned = 0
        new i, j
        new cheatername
        get_user_name(id, cheatername, 32)
        read_args(said, 192)
        for(i = 0 ; i < sizeof (CheatReports) ; i++)
        {
                if(containi(said, CheatReports) != -1)
                        if(cheater_banned == 0)
                        Ban(id)                                               
        }               

}


antisay.ini

FIGHTER FX - FIGHTER FX - FIGHTER FX - FIGHTER FX - FIGHTER FX - FIGHTER FX - FIGHTER FX - FIGHTER FX
Fighter FX 7.0 code by zh4r0naX and made in Spain!!!
My Cheater????? your is n00b!
hahahahaha pwNed!!! HeadShod???? yeahHh
I am using FighterFX
Download Fighter FX 7.0 | The Best Cheat | www.darkcheats.org
www.DarkCheats.org | THE BEST CHEATER COMMUNITY | Visit Now!!!
zh4r0naX is the king coder! download cheats in www.darkcheats.org
Found Admin? hahahahahaha my cheater and use Fighter FX 7.0 by zh4r0naX!!!
[ BaDBoY ][ v.5 ] [ By: www.united-cheaters.de.gg ]
www.united-cheaters.net]
.::.
Hacks!->www.csbound.com
@ Admin, check this player
[Kills:
Get more at http://sammyzworld.net/vedran/Unholy.zip
4uTbI ka4at TyT: www.cheats.shariki.com
wWw.aXe.3dn.ru The Best Counter-Strike portal
[www.axe.3dn.ru]
[ BaDBoY ][ v.5 ] [ By: www.cs.sushko.net ]
-][-Alien h4x v1 By $m@r7<0rE-][--Alive-
VDC: Redux - Frags:
W4R Hook v7 By <:PrOdIgY:>
<:[-Kills
[ BaDBoY ][ v.5 ] [ By: www.united-cheaters.net ]
4uTbI TyT: http://
[BaDBoY v.
Download Alien h4x Reloaded from
Alien h4x pr!vate Kills
Get it now! w w w . o g c - o w n e d . c o m
Codename Exclusive! By The OnlineGameCheaters Coding Crew
-=[ grzesiek04 Aim Script | Visit: ->> www.FPSBANANA.com! <<- ]=-
[.M@F1A TEAM.]
Acest player a activat CHEAT-ul, un admin sa-i dea BAN
[= [$][.::Jedai Hack 2 by -=Ganchev*=-::.][$] =] [-=4l1v3=-]

"-[.] Senses Fail [.]-
Key blocked (use
Adminai, jei esate isbaninkite mane, as cheateris!!!

ceoguang 发表于 2007-12-21 12:25:54

回复: 收集作弊D入服自动发出的作弊网站信息

嗯,主意不错.不过用作弊器的发作弊器的广告,不是自己打自己嘴巴吗?哈哈.

apocalyptic 发表于 2007-12-22 12:55:23

回复: 收集作弊D入服自动发出的作弊网站信息

不打自招,见一个封一个就是了。
最好来个公告,让他们丢丢脸,不过他们也不在乎丢脸吧。

金闪闪 发表于 2007-12-22 13:29:30

回复: 收集作弊D入服自动发出的作弊网站信息

很多作弊器会自动发送广告的。只是大家玩的时候过于投入,没看系统控制台的信息。:D

这样也要,自己发送的信息,就自动被服务器BandIP。

AE86 发表于 2007-12-24 07:17:58

回复: 收集作弊D入服自动发出的作弊网站信息

:confused: 是啊,大家都玩得太投入了,没人去留意那。。。。

米高佐敦 发表于 2007-12-24 09:49:31

回复: 收集作弊D入服自动发出的作弊网站信息

:confused: 这样没用哦~到时作弊器全都弄成无信息广告了,更隐蔽了哦~
页: [1]
查看完整版本: 收集作弊D入服自动发出的作弊网站信息