|
发表于 2005-7-11 00:42:25
|
显示全部楼层
来自 中国–广东–广州–天河区
刚才我用AMXX1.0和AMXX1.01按以上改动测试过
外网玩家可以正常用回say menu了
但内网的由于say_menu.amxx识别有问题,,需要将say_menu.sma源码修改下
源代码:
#include <amxmodx>
public say_menu(id) {
if ((get_user_flags(id) & ADMIN_IMMUNITY) || (get_user_flags(id) & ADMIN_RESERVATION)) {
client_cmd(id,"amxmodmenu")
}
else
client_cmd(id,"amx_menu")
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("Say menu","1.0","skywalker")
register_clcmd("say menu","say_menu",ADMIN_LEVEL_D,"- displays User menu")
return PLUGIN_CONTINUE
}
改为:
#include <amxmodx>
public say_menu(id) {
if (get_user_flags(id) & ADMIN_IMMUNITY) {
client_cmd(id,"amxmodmenu")
}
else
client_cmd(id,"amx_menu")
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("Say menu","1.0","skywalker")
register_clcmd("say menu","say_menu",ADMIN_LEVEL_D,"- displays User menu")
return PLUGIN_CONTINUE
} |
|