|
发表于 2004-8-10 02:06:24
|
显示全部楼层
来自 中国–北京–北京
0.9.9确实没有那个。。。给你一个。。。是我以前用的。。。
/* 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
* amxmodmenu:
* 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,"amxmodmenu")
}
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)
register_srvcmd("amx_set_saymenu","setup")
return PLUGIN_CONTINUE
} |
|