搜索
查看: 5075|回复: 16

另类的反作弊插件

[复制链接]
发表于 2008-5-7 11:47:42 | 显示全部楼层 |阅读模式 来自 中国–广东–东莞
前段时间测试服务器没开任何反作弊。发现一个共性,就是很多开作弊器的进来都带有广告信息。估计是免费的。

修改了一下 yanexp老大以前发布的 插件

我只是修改了一下适合我使用,没有精简也没有删除代码



[PHP]/* AMX Mod Script.
*
* (c) Copyright 2002-2003, RAV
* This file is provided as is (no warranties).
*
* Swearing will be filtered.
*
* Changelog:
* 1.20 - Fixed some bugs
* 1.10 - Initial Release
*/

#include <amxmod>

// max number of words in word list
#define MAX_WORDS 64
/*
// Number of random messages.
#define MESSAGES   4

new g_messages[MESSAGES][] = {
"三次警告内容!",
"你再发广告我就踢你出去!",
"你再发广告我就封你IP!",
"你再发广告我就长封你IP!"}  
*/
// file to read words from
new g_wordList[] = "addons/amxmodx/data/wordlist.txt"
new g_swears[MAX_WORDS][32]
new g_swearsNum
  new count=0
public plugin_init()
{
    register_plugin("Word_Auto_Ban","0.1","YanOnline")
    register_clcmd("say","swearFilter")
    register_clcmd("say_team","swearFilter")
    register_cvar("amx_word_ban","60")
     
    if (file_exists(g_wordList))
    {
      new len, i = 0
      while( read_file(g_wordList,i++,g_swears[g_swearsNum],31,len) )
          if (len) ++g_swearsNum
    }
    else log_message("[AMX] Swear file not found (name ^"%s^")",g_wordList)
}


public swearFilter(id)
{
   new said[128],says[3],names[32],ips[16],bans[5]
   read_args(said,127)
  
   for (new i=0; i<g_swearsNum; ++i)
   {
        if ( containi(said,g_swears) != -1 )
        {   
                count=count+1

                if (count>1){
                get_user_ip(id,ips,16)

                numtostr(get_cvar_num( "amx_word_ban"),bans,5)
                client_print(0,print_center,"*公告:[%s]使用外挂被系统自动封%s分钟!",ips,bans)
                server_cmd("amx_ban %s %s",bans,ips)
                count=0
                }
                get_user_name(id,names,31)
                numtostr(count,says,3)
                //client_cmd(id,"say %s %s",says,g_messages[ random_num(0,MESSAGES-1) ])
                //if (count>0)
                //client_print(0,print_chat,"*第%s次警告[%s], %s",says,names,g_messages[count])
                new userid = get_user_userid( id)
                server_cmd( "kick #%d ^"请文明游戏,不要作弊!^"", userid)
                return PLUGIN_HANDLED
        }
   }
   
   return PLUGIN_CONTINUE
} [/PHP]


附上作弊器的广告词 也就是我用的wordlist.txt文件 经测试还是有一定的反作弊效果的。

Hook
C.C.A
-=911=-
-=TJC=-
-=CB=-
-=52Q=-
[H]*oo*[K]
*][-=uCa=-][*
-=w00t=-
-=[Emix]=-
--==M!ss==--
-==] C B [==-
-=D.G=-
Tiv0.01
-=D/G=-
***sky***
33660668
I feel lucky
www.cs.sushko.net
WWW.HouDao.CoM
www.cn762.com
united-cheaters
forumable.net/tc cfegames.com
ecoo168.com
飓风
飓風
顶级暴力
飄移路
5d6d
topzj.com
[老头]
[Mo Gui]



效果可以去我签名的2#服务器测试。只需要按Y输入 如Hook 就可以。
发表于 2008-5-7 12:55:02 | 显示全部楼层 来自 中国–广东–深圳–宝安区

回复: 另类的反作弊插件

不错,顶你一下!!!!!
回复

使用道具 举报

发表于 2008-5-7 12:57:54 | 显示全部楼层 来自 中国–广东–深圳–宝安区

回复: 另类的反作弊插件

感觉不错,顺便问问你服务器排行是怎么做的?谢谢~~~
回复

使用道具 举报

发表于 2008-5-7 13:19:01 | 显示全部楼层 来自 中国–台湾

回复: 另类的反作弊插件

因为是nosteam 可以修改为BAN IP?
回复

使用道具 举报

发表于 2008-5-7 14:32:04 | 显示全部楼层 来自 中国–香港

回复: 另类的反作弊插件

請問有沒有amxx版...
回复

使用道具 举报

发表于 2008-5-7 14:37:04 | 显示全部楼层 来自 中国–广东–深圳–宝安区

回复: 另类的反作弊插件

Post by lhping
前段时间测试服务器没开任何反作弊。发现一个共性,就是很多开作弊器的进来都带有广告信息。估计是免费的。

修改了一下 yanexp老大以前发布的 插件

我只是修改了一下适合我使用,没有精简也没有删除代码



[php]/* AMX Mod Script.
*
* (c) Copyright 2002-2003, RAV
* This file is provided as is (no warranties).
*
* Swearing will be filtered.
*
* Changelog:
* 1.20 - Fixed some b...

呵呵,有点效果。。
什么时候开发zbq的全死了就好了。。。
回复

使用道具 举报

发表于 2008-5-7 15:35:41 | 显示全部楼层 来自 中国–湖南–湘西土家族苗族自治州–吉首市

回复: 另类的反作弊插件

现在用免费的人少了,因为看的出来,现在多是没有广告的作弊器或脚本,烦人的很
回复

使用道具 举报

发表于 2008-5-7 17:33:15 | 显示全部楼层 来自 中国–重庆–重庆–渝中区

回复: 另类的反作弊插件

好!
只要是跟反作弊有关的 都顶你!!:sexy_girl
回复

使用道具 举报

发表于 2008-5-7 19:36:43 | 显示全部楼层 来自 中国–北京–北京

回复: 另类的反作弊插件

感觉不错,顺便问问你服务器排行是怎么做的?谢谢~~~
回复

使用道具 举报

发表于 2008-5-7 21:45:17 | 显示全部楼层 来自 中国–广东–东莞

回复: 另类的反作弊插件

为什么我的服务器就没见过这样的作弊器呢?
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表