|
发表于 2006-2-8 13:56:26
|
显示全部楼层
来自 中国–四川–成都
回复: 【求助】麻烦Enigmaya抽个时间帮忙修改下plmenu插件让它显示内网玩家
displayBanMenu(id,pos) 里
new ip[15]
for (new a = start; a < end; ++a) {
i = g_menuPlayers[id][a]
get_user_name(i,name,31)
if ( is_user_bot(i) || access(i,ADMIN_IMMUNITY) ){
++b
if ( g_coloredMenus )
len += format(menuBody[len],511-len,"\d%d. %s^n\w",b,name)
else
len += format(menuBody[len],511-len,"#. %s^n",name)
}
else if( get_user_ip(i,ip,14), !contain( ip,"**1**") ){
++b
if ( g_coloredMenus )
len += format(menuBody[len],511-len,"\d%d. %s(**2**)^n\w",b,name)
else
len += format(menuBody[len],511-len,"#. %s(**2**)^n",name)
}
else {
keys |= (1<<b)
len += format(menuBody[len],511-len,"%d. %s^n",++b,name)
}
}
看看行不? |
|