Raised This Month: $68 Target: $400
 17% 

Solved !discord


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KnoXviLLe
Senior Member
Join Date: Nov 2011
Old 06-09-2017 , 20:31   !discord
Reply With Quote #1

People write !discord and see discord adress.Anyone help me ?
__________________
Success is the ability to go from one failure to another with no loss of enthusiasm.


Last edited by KnoXviLLe; 06-09-2017 at 21:23.
KnoXviLLe is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 06-09-2017 , 21:02   Re: !discord
Reply With Quote #2

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"
    
}

__________________
vortex. is offline
KnoXviLLe
Senior Member
Join Date: Nov 2011
Old 06-09-2017 , 21:22   Re: !discord
Reply With Quote #3

Thanks
__________________
Success is the ability to go from one failure to another with no loss of enthusiasm.

KnoXviLLe is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:39.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode