Drixevel-Archive / Chat-Processor

A Sourcemod plugin which allows other plugins to add and manage chat related features.
GNU General Public License v3.0
58 stars 28 forks source link

Sends command after output in chat #68

Open JealousDK opened 4 years ago

JealousDK commented 4 years ago
public void OnPluginStart() {
    RegConsoleCmd("sm_discord", Command_Discord, "Replies with Discord link in chat or console.");
}

public Action Command_Discord(int client, int args) {
    C_ReplyToCommand(client, "[{orange}Warmup.zone{default}] {darkred}discord.warmup.zone{default} or {darkred}https://discord.gg/sbGDjQ4{default}");
    return Plugin_Handled;
}

With Chat-Processor: <ReplyToCommand Message output> <sm_discord command>

Without Chat-Processor <sm_discord command> <ReplyToCommand Message output>