在玩家在對話欄輸入!helpmenu時會顯示一個協助選單。這個選單可以自己(設伺服器者)更變,這個插件還會多了兩個有用的功能:當前地圖輪候和在線管理員
CFG檔在configs/helpmenu.cfg CFG檔從0.2版時大大改善了 (在更新本插件時,請把舊的helpmenu.cfg刪掉)
新的配置格式取消老"標準" 規則、隊伍信息和閒談命令的菜單和讓您自訂協助。 使用以下格式,新增選單內的新項目:
複製內容到剪貼板
代碼:
"清單名稱"
{
"title" "清單標題"
"type" "list"
"items"
{
"" "Here's an informational item"
"sm_browse www.mysite.com" "This launches a client command when selected"
}
}
如果你想選單內是顯示文本的話,你可以在類型type那裡由list改為text。helpmenu.cfg內已有一個例子
OP可以把插件指令製成捷徑,方便玩家使用
以下是例子
複製內容到剪貼板
代碼:
"Chat Commands"
{
"title" "Chat Commands"
"items"
{
"在Conosle中的指令" "在選單顯示出來的文字"
"say !helpmenu" "!helpmenu - This help menu"
"say !maprate" "!maprate - Rate the current map"
"say !maprating" "!maprating - View map ratings"
"say !radio" "!radio - Play a radio station"
"say !radiooff" "!radiooff - Stop playing a radio station"
"say !talkhelp" "!talkhelp - UberTalk keybindings"
"say rtv" "rtv - Have all users vote on the next map"
"say votealltalk" "votealltalk - Vote to turn alltalk on/off"
"say voteban" "voteban - Vote to ban a player"
"say voteextend" "voteextend - Vote to extend the current map"
"say votekick" "votekick - Vote to kick a player"
"say votemap" "votemap - Vote to change the map"
"say votemelee" "votemelee - Vote to activate melee mode"
"say votenextmap" "votenextmap - Vote for the next map"
"say votescramble" "votescramble - Vote to scramble the teams and restart"
"say votetaunt" "votetaunt - Vote to activate taunt mode"
}
}
引用:
CVars插數:
sm_helpmenu_version - 本插件版本
sm_helpmenu_welcome - 在玩家進入伺服器時顯示訊息,告訴他們在對話欄中輸入!helpmenu這個功能 1 = 開啟, 0 = 關閉. (默認 1)
sm_helpmenu_admins - 顯示在線管理員清單 1 = 開啟, 0 = 關閉. (默認 1)
引用:
Commands指令:
sm_helpmenu(或在對話欄中輸入!helpmenu) - 顯示選單
引用:
Installing安裝:
helpmenu.smx -> addons/sourcemod/plugins/
helpmenu.sp -> addons/sourcemod/scripting/
helpmenu.cfg -> addons/sourcemod/configs/
plugin.helpmenu.cfg (要自行建立。除非你要改變參數,否則可以不用理會) -> cfg/sourcemod/