Added "motd" chat trigger to basetriggers (bug 2694, r=dvander)

This commit is contained in:
Erik Minekus 2009-08-24 09:13:37 +12:00
parent d6cf9bd8ae
commit 2f3e172162

View File

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