CF: Command -> Menu
This commit is contained in:
parent
982f9951b6
commit
11a641e807
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user