CF: Command -> Menu

This commit is contained in:
neon 2019-09-07 14:15:05 +02:00
parent 982f9951b6
commit 11a641e807

View File

@ -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);