|
原来架过1.5的服务器(esai完美版),那里面say menu.可以出现vote for maps等菜单.可以选择地图.
最近架设了1.6(esai2717)的服务器. 把原来1.5的addons直接拷贝过来. 把amx升级到0.9.8(只替换amx和dll文件,其他配置文件都没有动).
其他所有插件都可以用.惟独say menu不行. 按y,输入menu后没有反映.控制台中显示没有权限.
say_menu.sma是这样的.
---------------------------------------------------------------------
/* AMX Mod script.
*
* (c) Copyright 2003, Phreak
* This file is provided as is (no warranties).
*
* This plugin opens the amx menu when you
* say "menu" in normal chat.
*
* setup in admin.cfg:
* amx_menu:
* amx_set_saymenu 0
* usermenu:
* amx_set_saymenu 1
*
*/
#include <amxmod>
new menu_mode = 0
public say_menu(id) {
switch (menu_mode) {
case 0: client_cmd(id,"amx_menu")
case 1: client_cmd(id,"usermenu")
}
return PLUGIN_HANDLED
}
public setup(){
new data[32]
read_argv(1,data,31)
menu_mode = strtonum(data);
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("Say menu","0.2","Phreak")
register_clcmd("say menu","say_menu",ADMIN_LEVEL_D,"- displays user
menu")
register_srvcmd("amx_set_saymenu","setup")
return PLUGIN_CONTINUE
}
----------------------------------------------------------
其中 register_clcmd("say menu","say_menu",ADMIN_LEVEL_D,"- displays user menu")
中的ADMIN_LEVEL_D是不是定义打开menu菜单权限的? 应该改成什么才能适应AMX0.9.8呢? |
|