|
发表于 2008-2-4 20:12:45
|
显示全部楼层
来自 中国–福建–漳州
回复: 点通能做个菜单吗?
把这行:
server_cmd("addip %d %s;writeip", g_menuSettings[id], ipa)
改成
server_cmd("amx_banip %s %d", ipa, g_menuSettings[id])
把
public cmdBanMenu(id, level, cid)
{
if (!cmd_access(id, level, cid, 1))
return PLUGIN_HANDLED
g_menuOption[id] = 1
g_menuSettings[id] = 5
displayBanMenu(id, g_menuPosition[id] = 0)
return PLUGIN_HANDLED
}
中的
g_menuOption[id] = 1
g_menuSettings[id] = 5
改成
g_menuOption[id] = 0
g_menuSettings[id] = 0
即可。 |
|