From 11a641e807cba33577e5dca07122e7088de48d3c Mon Sep 17 00:00:00 2001 From: neon <> Date: Sat, 7 Sep 2019 14:15:05 +0200 Subject: [PATCH] CF: Command -> Menu --- ChatFilter/scripting/ChatFilter.sp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ChatFilter/scripting/ChatFilter.sp b/ChatFilter/scripting/ChatFilter.sp index d8d7f870..d0d2633a 100644 --- a/ChatFilter/scripting/ChatFilter.sp +++ b/ChatFilter/scripting/ChatFilter.sp @@ -37,6 +37,9 @@ public Plugin myinfo = //---------------------------------------------------------------------------------------------------- public void OnPluginStart() { + RegConsoleCmd("sm_cf", OnToggleSettings, "ChatFilter Settings"); + RegConsoleCmd("sm_chatfilter", OnToggleSettings, "ChatFilter Settings"); + RegConsoleCmd("sm_hide_lennies", OnToggleLennies, "Toggle blocking Lennies"); g_hCookieHideLennies = RegClientCookie("lennies_blocked", "are lennies blocked", CookieAccess_Protected); @@ -52,6 +55,12 @@ public void OnPluginStart() //---------------------------------------------------------------------------------------------------- // Purpose: //---------------------------------------------------------------------------------------------------- +public Action OnToggleSettings(int client, int args) +{ + ShowSettingsMenu(client); + return Plugin_Handled; +} + public Action OnToggleLennies(int client, int args) { ToggleLennies(client);