Here, you can use this.
Source:
PHP Code:
#include <sourcemod>
#include <multicolors>
#pragma newdecls required
#pragma semicolon 1
#define PLUGIN_VERSION "1.0"
public Plugin myinfo =
{
name = "Simple Discord Plugin",
author = "Vortéx!",
description = "Discord info",
version = PLUGIN_VERSION,
url = "http://steamcommunity.com/id/emreires42"
};
public void OnPluginStart()
{
LoadTranslations("discord.phrases");
RegConsoleCmd("sm_dc", Command_dc);
RegConsoleCmd("sm_discord", Command_dc);
}
public Action Command_dc(int client, int args)
{
CPrintToChat(client, "%t", "dc");
return Plugin_Handled;
}
discord.phrases:
PHP Code:
"Phrases"
{
"dc"
{
"en" "{darkred}Discord: {green}your discord link"
}
}
__________________