网吧里内网(本网)玩家进入服务器时自动踢外网的玩家的插件!
诚心求一个插件网吧里内网(本网)玩家进入服务器时自动踢外网的玩家的插件!
知道的朋友提供一下,链接地址也可以!
QQ 258031256
http://djeyl.net/forum/index.php?showtopic=4568
这里有,可是下不了 我也想要 可是没有 Post by dqwb8888
诚心求一个插件
网吧里内网(本网)玩家进入服务器时自动踢外网的玩家的插件!
知道的朋友提供一下,链接地址也可以!
QQ 258031256
http://djeyl.net/forum/index.php?showtopic=4568
这里有,可是下不了
我晕 打开后 复制用记事本保存 兄弟,能下也用不了,如果你试成了给我说一声! 请问这是哪个版本amxx 还是amx 下的? 请问这个插件怎么用啊?
是AMXX版还是AMX版吗? 好好顶呀111 那位大侠会设置啊?我真的不会设置...请指教啊
请问有支持AMXX的slots_reservation_by_ip.amx吗?
急需呀 难道真的没有人帮帮手吗?郁闷哦 我这里有一个..朋友给我发的..到现在还不知道怎么用...-_-!!
我的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)
{
new ipb1
new ipb2
new ipb3
new ipb4
new ip
new nipb1
new nipb2
new nipb3
new nipb4
new uip
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
new sipaddr
new sipmask
new len
new userip
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
}
页:
[1]
2