|
楼主 |
发表于 2006-9-26 09:15:20
|
显示全部楼层
来自 中国–黑龙江–哈尔滨
回复: 【C.H.M.发布】AMX Mod X 1.76 中文版
Post by coolkim
开启 服务器 时 出现这个 /》?》 怎么 回事?
Client menu item 1 added to Client Menus Front-End: "褰撳墠鏃堕棿" from plugin "
TimeLeft"
Client menu item 2 added to Client Menus Front-End: "鍓╀綑鏃堕棿" from plugin "
TimeLeft[...
中文UTF-8 编码,在单纯console下面是看不到的。是添加到玩家菜单的,amx_menu命令。amx_addclientmenuitem "当前时间" "say thetime" "uz" "TimeLeft"
amx_addclientmenuitem "剩余时间" "say timeleft" "uz" "TimeLeft"
amx_addclientmenuitem "当前地图" "say currentmap" "uz" "NextMap"
amx_addclientmenuitem "下幅地图" "say nextmap" "uz" "NextMap"
amx_addclientmenuitem "排名前15名" "say /top15" "uz" "StatsX"
[color="Magenta"]再搞下面一个插件,就可以符合部分人的say “menu” 习惯。[color="Blue"]已经修改!从控制台输入也有效。
[PHP]/* AMX Mod X script */
#include <amxmodx>
new const PLUGIN_NAME[] = "Hook Say"
new const PLUGIN_VERSION[] = "1.0"
new const PLUGIN_AUTHOR[] = "KinSprite"
public plugin_init() {
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
register_clcmd("say","hook_say")
register_clcmd("say_team","hook_say")
}
public hook_say (id) {
new said[32]
read_args(said,31)
if (equali(said, "^"menu^"") || equali(said, "^"/menu^"") || equali(said, "/menu") || equali(said, "menu"))
client_cmd(id, "amx_menu")
return PLUGIN_CONTINUE
}[/PHP] |
|