Tell me if this is what you want.
You'll need multicolors.inc to compile it yourself.
Also change the line 6 and put your discord server URL
The lines at the end of the code explains what you should do if you want a public message instead a client message one
Tell me if you need more help.
This is what you need to change:
Code:
#define DISCORD_URL "https://discord.gg/mKEkypk"
Also as i said before, look the commented ( // ) lines at the end.
PHP Code:
//The lines below will print the message only for who type !discord [its a client message]
public Action Command_Discord(int client, int args)
{
CPrintToChat(client, "{green}[DISCORD]{purple} Join in our Discord server!");
CPrintToChat(client, "{green}[DISCORD]{purple} %s", DISCORD_URL);
return Plugin_Handled;
}
//The lines below will print the message for EVERYONE. For example if i type !discord, every people in the server will see the printed message
//Delete the lines above (26, 27, 28, 29, 30, 31) if you want to use the following system
//Also delete the // before the functions
//public Action Command_Discord(int client, int args)
//{
// CPrintToChatAll("{green}[DISCORD]{purple} Join in our Discord server!");
// CPrintToChatAll("{green}[DISCORD]{purple} %s", DISCORD_URL);
// return Plugin_Handled;
//}