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; }