|
楼主 |
发表于 2004-6-4 15:36:17
|
显示全部楼层
来自 中国–浙江–宁波
:37: :37: :37: 不会呀 usermenu.ini路径怎么添加?
#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
} |
|