AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Solved !discord (https://forums.alliedmods.net/showthread.php?t=298366)

KnoXviLLe 06-09-2017 20:31

!discord
 
People write !discord and see discord adress.Anyone help me ?

vortex. 06-09-2017 21:02

Re: !discord
 
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 clientint args)
{
    
CPrintToChat(client"%t""dc");
    return 
Plugin_Handled;


discord.phrases:
PHP Code:

"Phrases"
{
    
"dc"
    
{
        
"en"        "{darkred}Discord: {green}your discord link"
    
}



KnoXviLLe 06-09-2017 21:22

Re: !discord
 
Thanks


All times are GMT -4. The time now is 18:00.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.