Added "motd" chat trigger to basetriggers (bug 2694, r=dvander)
This commit is contained in:
parent
d6cf9bd8ae
commit
2f3e172162
@ -80,6 +80,7 @@ public OnPluginStart()
|
|||||||
|
|
||||||
RegConsoleCmd("timeleft", Command_Timeleft);
|
RegConsoleCmd("timeleft", Command_Timeleft);
|
||||||
RegConsoleCmd("nextmap", Command_Nextmap);
|
RegConsoleCmd("nextmap", Command_Nextmap);
|
||||||
|
RegConsoleCmd("motd", Command_Motd);
|
||||||
|
|
||||||
HookConVarChange(g_Cvar_TimeleftInterval, ConVarChange_TimeleftInterval);
|
HookConVarChange(g_Cvar_TimeleftInterval, ConVarChange_TimeleftInterval);
|
||||||
|
|
||||||
@ -207,6 +208,13 @@ public Action:Command_Nextmap(client, args)
|
|||||||
return Plugin_Handled;
|
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)
|
public Action:Command_Say(client, args)
|
||||||
{
|
{
|
||||||
decl String:text[192], String:command[64];
|
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;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user