Skip to content

Instantly share code, notes, and snippets.

@tenub
Created June 29, 2017 17:18
Show Gist options
  • Select an option

  • Save tenub/84512035cd96ea7a80cc7b23bd9b66db to your computer and use it in GitHub Desktop.

Select an option

Save tenub/84512035cd96ea7a80cc7b23bd9b66db to your computer and use it in GitHub Desktop.
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public Plugin myinfo =
{
name = "MOTD test",
author = "Me",
description = "MOTD test",
version = "1.0",
url = "http://www.sourcemod.net"
}
public Action OnClientSayCommand(int client, const char[] command, const char[] arg)
{
if (StrEqual(arg, "!testcmd"))
{
ShowMOTDPanel(client, "Google", "https://google.com", MOTDPANEL_TYPE_URL);
return Plugin_Handled;
}
return Plugin_Continue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment