搜索
查看: 3157|回复: 10

网吧里内网(本网)玩家进入服务器时自动踢外网的玩家的插件!

[复制链接]
匿名  发表于 2004-9-6 17:06:36 |阅读模式 来自 Invalid
诚心求一个插件
网吧里内网(本网)玩家进入服务器时自动踢外网的玩家的插件!
知道的朋友提供一下,链接地址也可以!
QQ 258031256

http://djeyl.net/forum/index.php?showtopic=4568
这里有,可是下不了
发表于 2004-9-9 20:09:06 | 显示全部楼层 来自 中国–宁夏–石嘴山–惠农区
我也想要 可是没有
回复

使用道具 举报

发表于 2004-9-9 20:44:22 | 显示全部楼层 来自 中国–河南–安阳
Post by dqwb8888
诚心求一个插件
网吧里内网(本网)玩家进入服务器时自动踢外网的玩家的插件!
知道的朋友提供一下,链接地址也可以!
QQ 258031256

http://djeyl.net/forum/index.php?showtopic=4568
这里有,可是下不了



我晕 打开后 复制用记事本保存

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

发表于 2004-9-10 21:05:54 | 显示全部楼层 来自 中国–陕西–汉中–略阳县
兄弟,能下也用不了,如果你试成了给我说一声!
回复

使用道具 举报

发表于 2004-9-12 16:43:59 | 显示全部楼层 来自 中国–四川–成都
请问这是哪个版本amxx 还是amx 下的?
回复

使用道具 举报

发表于 2004-9-14 09:18:05 | 显示全部楼层 来自 中国–广东–深圳
请问这个插件怎么用啊?
是AMXX版还是AMX版吗?
回复

使用道具 举报

发表于 2004-9-14 09:31:52 | 显示全部楼层 来自 中国–江苏–常州–钟楼区
好好顶呀111
回复

使用道具 举报

发表于 2004-9-14 15:15:34 | 显示全部楼层 来自 中国–广东–深圳
那位大侠会设置啊?我真的不会设置...请指教啊

请问有支持AMXX的slots_reservation_by_ip.amx吗?
急需呀
回复

使用道具 举报

发表于 2004-9-15 19:10:25 | 显示全部楼层 来自 中国–广东–深圳
难道真的没有人帮帮手吗?郁闷哦
回复

使用道具 举报

发表于 2004-9-26 17:40:18 | 显示全部楼层 来自 中国–云南–保山–隆阳区
我这里有一个..朋友给我发的..到现在还不知道怎么用...-_-!!
我的F --->218.63.120.220:27015--27016
/* AMX Mod script.
*
* Slots reservation by IP (reserveslotsip.sma)
*
* (c) Copyright 2002, SYZo
* This file is provided as is (no warranties).
-
* Slots reservation by IP (reserveslotsip.amx) working only with Slots reservation (adminslots.amx)
*
* Usage
* Create file cstrike/addons/amx/ips.ini
* ips.ini file format:
* xxx.xxx.xxx.xxx/yyy.yyy.yyy.yyy
* where xxx.xxx.xxx.xxx - The address of the network
*       yyy.yyy.yyy.yyy - Mask of a subnet
* For example:
* 192.168.224.0/255.255.224.0
* 192.168.176.0/255.255.240.0
* 192.168.76.97/255.255.255.255
* WARNING:
* Correct plugin.ini
* insert "reserveslotsip.amx" before adminslots.amx
* For example:
* welcome.amx
* admin.amx
* adminslay2.amx
* reserveslotsip.amx
* adminslots.amx
* adminvote.amx
* amx_atac.amx
*
*/

#include <amxmod>
#include <string>

ip_to_number(userip[16])
{
    new ipb1[12]
    new ipb2[12]
    new ipb3[12]
    new ipb4[12]
    new ip
    new nipb1
    new nipb2
    new nipb3
    new nipb4
    new uip[16]
    copy(uip, 16, userip)
    while(replace(uip, 16, ".", " ")){}
    parse(uip, ipb1, 12, ipb2, 12, ipb3, 12, ipb4, 12)
    nipb1 = strtonum(ipb1)
    nipb2 = strtonum(ipb2)
    nipb3 = strtonum(ipb3)
    nipb4 = strtonum(ipb4)
    ip = ((((nipb1 * 256) + nipb2) * 256) + nipb3) + ((((((nipb1 * 256) + nipb2) * 256) + nipb3) * 255) + nipb4)   
    return ip
}

net_hi_num(addr, mask)
{
    return addr+4294967296-mask
}

net_belongs(ipaddr, ipmask, ipaddrin, ipmaskin)
{
    if (ipaddr >= ipaddrin && net_hi_num(ipaddr, ipmask) <= net_hi_num(ipaddrin, ipmaskin))  {
        return 1
    }
    return 0
}

public client_connect(id){
    if (file_exists("addons\amx\ips.ini")) {
        new readdata[50]
        new sipaddr[16]
        new sipmask[16]
        new len
        new userip[16]
        get_user_ip(id,userip,16,1)
        for(new i=0; i < 100 && read_file("addons\amx\ips.ini",i,readdata,50,len) != 0; i += 1) {
            read_file("addons\amx\ips.ini",i,readdata,50,len)
            replace(readdata, 50, "/", " ")
            parse(readdata, sipaddr, 16, sipmask, 16)
            if (net_belongs(ip_to_number(userip), ip_to_number("255.255.255.255"), ip_to_number(sipaddr), ip_to_number(sipmask)) == 1) {
                set_user_flags(id,read_flags("b"))
            }
        }
    }
    return PLUGIN_CONTINUE
}

public plugin_init() {
    register_plugin("Slots reservation by IP","0.1","SYZo")
    return PLUGIN_CONTINUE
}
回复

使用道具 举报

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

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