|
发表于 2008-11-24 19:26:53
|
显示全部楼层
来自 中国–广东–深圳–宝安区
回复: Rulzy斑竹一定要进来!
这样也是可以的。有优先通道的都可以进
[PHP]
public client_authorized(id)
{
if(!access(id, ADMIN_RESERVATION))
{
new ip[20], b1[4], b2[4], b3[4], b4[4], iip, userid
get_user_ip(id, ip, 19, 1)
replace_all(ip, 19, ".", " ")
parse(ip, b1, 3, b2, 3, b3, 3, b4, 3)
iip = str_to_num(b1)*0x1000000+str_to_num(b2)*0x10000+str_to_num(b3)*0x100+str_to_num(b4)
for(new i=0;i<g_IpCount;i++)
{
if(g_iplist[0]<=iip && iip<=g_iplist[1])
{
userid = get_user_userid(id)
server_cmd("kick #%d 对不起,管理员禁止你的IP登录", userid)
break;
}
}
}
}
[/PHP] |
|