From 2f3e17216251b25a0f8e3b813787b887f0e9a9f0 Mon Sep 17 00:00:00 2001 From: Erik Minekus Date: Mon, 24 Aug 2009 09:13:37 +1200 Subject: [PATCH] Added "motd" chat trigger to basetriggers (bug 2694, r=dvander) --- plugins/basetriggers.sp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/basetriggers.sp b/plugins/basetriggers.sp index 336aa70d..b3428134 100644 --- a/plugins/basetriggers.sp +++ b/plugins/basetriggers.sp @@ -80,6 +80,7 @@ public OnPluginStart() RegConsoleCmd("timeleft", Command_Timeleft); RegConsoleCmd("nextmap", Command_Nextmap); + RegConsoleCmd("motd", Command_Motd); HookConVarChange(g_Cvar_TimeleftInterval, ConVarChange_TimeleftInterval); @@ -207,6 +208,13 @@ public Action:Command_Nextmap(client, args) return Plugin_Handled; } +public Action:Command_Motd(client, args) +{ + ShowMOTDPanel(client, "Message Of The Day", "motd", MOTDPANEL_TYPE_INDEX); + + return Plugin_Handled; +} + public Action:Command_Say(client, args) { decl String:text[192], String:command[64]; @@ -309,6 +317,10 @@ public Action:Command_Say(client, args) } } } + else if (strcmp(text[startidx], "motd", false) == 0) + { + ShowMOTDPanel(client, "Message Of The Day", "motd", MOTDPANEL_TYPE_INDEX); + } return Plugin_Continue; }