搜索
查看: 2015|回复: 7

请看这个原码对吗?

[复制链接]
发表于 2008-1-31 11:58:28 | 显示全部楼层 |阅读模式 来自 中国–广西–南宁
#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    register_plugin("duoKick", "1.0", "A.mi");
    register_event("DeathMsg","eDeathMsg","a");
}

public eDeathMsg(id)
{
    new killer = read_data(1);
    new victim = read_data(2);
    if(is_user_connected(killer))
    {
        if(get_user_frags(killer)-get_user_deaths(killer)>=13){
        new pname[32]
        get_user_name(killer, pname, 31)
        {
        if (contain(pname, "[NO-sXe-I]") != -1){
        new ipStr[16]
        get_user_ip( id, ipStr, 15, 1 )
        server_cmd( "kick #%d ^"你没有安装SXE被服务器踢出。^"", id)
        }
        }
        }
    }
    if(is_user_connected(victim))
    {
        if(get_user_frags(victim)-get_user_deaths(victim)>=13){
        new pname[32]
        get_user_name( victim, pname, 31)
        {
        if (contain(pname, "[NO-sXe-I]") != -1){
        new ipStr[16]
        get_user_ip( id, ipStr, 15, 1 )
        server_cmd( "kick #%d ^"你没有安装SXE被服务器踢出。^"", id)
        }
        }
        }
        }
    return PLUGIN_CONTINUE
}  
发表于 2008-1-31 12:09:32 | 显示全部楼层 来自 中国–湖北–襄阳

回复: 请看这个原码对吗?

加个  show_motd(id,"http://xxxxx/sxe.exe","")
就可以让玩家自动下载反作弊了。
回复

使用道具 举报

 楼主| 发表于 2008-1-31 12:37:11 | 显示全部楼层 来自 中国–广西–百色

回复: 请看这个原码对吗?

Post by '[Grief.QQ
']加个  show_motd(id,"http://xxxxx/sxe.exe","")
就可以让玩家自动下载反作弊了。
谢谢指点,但我和机器人测试打到13:0好像不被踢出来......什么回事呢?
回复

使用道具 举报

发表于 2008-1-31 14:25:42 | 显示全部楼层 来自 中国–广西–百色

回复: 请看这个原码对吗?

哈哈哈哈,闻讯赶来,终于有了个点通号,哈哈哈哈哈哈哈~~~~~~~~~~~~
回复

使用道具 举报

发表于 2008-1-31 14:26:15 | 显示全部楼层 来自 中国–广西–百色

回复: 请看这个原码对吗?

哈哈哈哈,闻讯赶来,终于有了个点通号,哈哈哈哈哈哈哈~~~~~~~~~~~~
发的第一个贴
回复

使用道具 举报

发表于 2008-1-31 15:24:04 | 显示全部楼层 来自 中国–广西–百色

回复: 请看这个原码对吗?

Post by '[Grief.QQ
']加个 show_motd(id,"http://xxxxx/sxe.exe","")
就可以让玩家自动下载反作弊了。

不是很明白你的意思啊
能在说说吗
回复

使用道具 举报

发表于 2008-2-1 00:32:38 | 显示全部楼层 来自 中国–广东–惠州

回复: 请看这个原码对吗?

[php]
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("duoKick", "1.0", "A.mi");
register_event("DeathMsg","eDeathMsg","a");
}
public eDeathMsg()
{
new killer = read_data(1);
new victim = read_data(2);
if(is_user_connected(killer))
{
  if(get_user_frags(killer)-get_user_deaths(killer)>=13)
  {
   new pname[32]
   get_user_name(killer, pname, 31)
   if (contain(pname, "[NO-sXe-I]") != -1)
   server_cmd( "kick #%d ^"你没有安装SXE被服务器踢出。^"", get_user_userid(killer));
  }
}

if(is_user_connected(victim))
{
  if(get_user_frags(victim)-get_user_deaths(victim)>=13)
  {
   new pname[32]
   get_user_name( victim, pname, 31)
   if (contain(pname, "[NO-sXe-I]") != -1)
   server_cmd( "kick #%d ^"你没有安装SXE被服务器踢出。^"", get_user_userid(victim));
  }
}
return PLUGIN_CONTINUE
}
[/php]
回复

使用道具 举报

发表于 2008-2-3 11:25:30 | 显示全部楼层 来自 中国–湖南–怀化–鹤城区

回复: 请看这个原码对吗?

要是能在 amxx.cfg里面设置

XXXXX  多少人    的数量限制的话 那就更加完美了``
回复

使用道具 举报

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

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