Created
June 29, 2017 17:18
-
-
Save tenub/84512035cd96ea7a80cc7b23bd9b66db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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