View Single Post
Author Message
XerM
New Member
Join Date: Mar 2021
Location: In a parallel world.
Old 03-22-2021 , 11:04   [ANY] Simple Discord Link
Reply With Quote #1

A simple plugin for send discord link.

sm_discord / !discord


Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = 
{
	name = "Discord Link",
	author = "XerM",
	description = "A simple plugin for discord link",
	version = "1.0",
	url = "forums.alliedmods.net"
};

public void OnPluginStart()
{
	RegConsoleCmd("sm_discord", Discord_Link, "Prints discord link to chat");
}

public Action Discord_Link(int client, int args)
{
	if(args > 0)
	{
		ReplyToCommand(client, "[SM] Usage: sm_discord");
		return Plugin_Handled;
	}
	
	ReplyToCommand(client,"\x03yourserverlink");
	return Plugin_Handled;
}
Attached Files
File Type: sp Get Plugin or Get Source (Discord.sp - 428 views - 622 Bytes)
File Type: smx Discord.smx (3.9 KB, 119 views)
__________________
BLVCK
XerM is EVERYWHERE!

Last edited by XerM; 03-22-2021 at 11:09.
XerM is offline