In-game Help Menu (Support Translation)
-
Apply to | 適用於
Any Source Game
-
Image
-
Require | 必要安裝
-
Data & Translation Example
-
"Help" { "MENU1" { "title" "MENU1" "type" "text" //<-- choose text or list "items" { "" "AAA" "" "BBB" } } "Chat Commands" { "title" "Chat Commands" "type" "list" //<-- choose text or list "items" { "say !help" "Default Description" } } // Add more menu if you want ... }
-
translations/helpmenu.phrases.txt
"Phrases" { "MENU1" { "en" "Write down translation for MENU1 Title" } "AAA" { "en" "Write down translation for AAA description" } "BBB" { "en" "Write down translation for BBB description" } "Chat Commands" { "en" "Write down translation for Chat Commands Title" } "say !help" { "en" "Write down translation for !help command description" } }
-
-
ConVar | 指令
- cfg/sourcemod/helpmenu.cfg
// Show a list of online admins in the menu. sm_helpmenu_admins "1" // Automatically reload the configuration file when changing the map. sm_helpmenu_autoreload "1" // Path to configuration file. sm_helpmenu_config_path "configs/helpmenu.cfg" // Show 'Don't display again' and 'Display again next time' item in the menu. sm_helpmenu_do_not_display "1" // Show 'Join our steam group' item in the menu. sm_helpmenu_steam_group "1" // Show welcome message and help menu to newly connected users. sm_helpmenu_welcome "1"
- cfg/sourcemod/helpmenu.cfg
-
Command | 命令
- Display the help menu.
sm_help sm_helpmenu sm_helpcommands sm_helpcomands sm_helpcommand sm_helpcomand sm_commands sm_comands sm_cmds sm_cmd
- Reload the help menu configuration file (Adm required: ADMFLAG_ROOT)
helpmenu_reload
- Disable the help menu forever.
sm_helpoff
- Enable the help menu next time.
sm_helpon
- Display the help menu.
-
Translation Support | 支援翻譯
translations/helpmenu.phrases.txt
-
Related Plugin | 相關插件
- readyup: Ready Plugin
- 準備插件
- readyup: Ready Plugin
-
Changelog | 版本日誌
- v0.8 (2022-11-29)
- Convert All codes to new syntax.
- Translation support.
- Add more convars
- Add more commands
- Support readyup plugin
- v0.3
- v0.8 (2022-11-29)
輸入!helpmenu顯示選單,用來幫助玩家瞭解你的伺服器內容
-
圖示
-
原理
- 玩家進來伺服器的時後自動顯示或者玩家自己輸入選單
- 選單內容可以自訂新增或修改,是用來幫助玩家更快速瞭解你的伺服器有什麼內容與玩法
-
指令中文介紹 (點我展開)
- cfg/sourcemod/helpmenu.cfg
// 為1時,選單顯示 "在線管理員" sm_helpmenu_admins "1" // 為1時,換圖時重新載入文件 sm_helpmenu_autoreload "1" // 文件路徑 sm_helpmenu_config_path "configs/helpmenu.cfg" // 為1時,選單顯示 "不要再顯示" 和 "下次繼續顯示" sm_helpmenu_do_not_display "1" // 為1時,選單顯示 "加入我們的steam群組" sm_helpmenu_steam_group "1" // 為1時,新玩家連線至伺服器時顯示選單與提示 sm_helpmenu_welcome "1"
- cfg/sourcemod/helpmenu.cfg
-
文件設定 範例
-
選單配置: configs/helpmenu.cfg
"Help" { "MENU1" //MENU1 選單標題,名稱可自取,翻譯文件會用到 { "title" "MENU1" //MENU1 選單標題 "type" "text" //<-- 請寫 text 或是 list "items" { "" "AAA" //選單上AAA的內容,名稱可自取,翻譯文件會用到 "" "BBB" //選單上BBB的內容,名稱可自取,翻譯文件會用到 } } "Chat Commands" //Chat Commands 選單標題,名稱可自取,翻譯文件會用到 { "title" "Chat Commands" //Chat Commands 選單標題 "type" "list" //<-- 請寫 text 或是 list "items" { "say !help" "Default Description" //選單上say !help的內容,名稱可自取,翻譯文件會用到 } } // 自行新增其他選單配置 .... }
-
翻譯文件: translations/helpmenu.phrases.txt
"Phrases" { "MENU1" { "zho" "請寫下 MENU1 的選單標題" } "AAA" { "zho" "請寫下 AAA 的詳細內容" } "BBB" { "zho" "請寫下 BBB 的詳細內容" } "Chat Commands" { "zho" "請寫下 Chat Commands 的選單標題" } "say !help" { "zho" "請寫下 say !help 的詳細內容" } }
-