Jump to content

source [Discord Rpc] for your csgo cheat or application (C++)


loona
 Share

Recommended Posts

  • loona changed the title to [Discord Rpc] for your csgo cheat or application (C++)
  • 3 weeks later...
  • 4 weeks later...
On 12/4/2021 at 5:42 PM, loona said:

1 - First you need to download discord sdk: 

Hidden Content

  • Give reaction to this post to see the hidden content.

 

2 - Go to discord developers and make a new application (put the name you want and the photos you want in "Rich Presence ->Art Assets" )

like that:

image.png.83c2816a8e85f4dc59bfab8dbe2e8cd6.png

3 -Go into your project and include "DiscordRPCSDK/Includes" and "DiscordRPCSDK/SourceFiles"

4 - Add to your cheat or application project:

"serialization.h"

"serialization.cpp"

"rpc_connection.h"

"rpc_connection.cpp"

"msg_queue.h"

"discord_rpc.cpp"

"discord_register_win.cpp"

"connection_win.cpp"

"backoff.h" 

 

5 - Create a "DiscordRpc.cpp" and "DiscordRpc.h" 

 

*DiscordRpc.h*

#pragma once
#include <discord_register.h>
#include <discord_rpc.h>
#include <Windows.h>

class Discord {
public:
	void Initialize();
	void Update();
};

 

*DiscordRpc.cpp*

#include "DiscordRpc.h"

void Discord::Initialize()
{
	DiscordEventHandlers Handle;
	memset(&Handle, 0, sizeof(Handle));
	Discord_Initialize("APPLICATION ID", &Handle, 1, NULL);
}

void Discord::Update()
{
	//Discord Visualizer
}

6- Change the "APPLICATION ID" to your Application id "General Information -> Application id"

 

7 - In "//Discord Visualizer" go to "Rich Presence ->Visualizer" and change it, after that go to "Show code" and copy

 

like that:

image.png.e43dc1702e655526e33eba6ea58c6999.png

 

8 - Go to your main.cpp and put

#include "DiscordRpc.h"

Discord * g_Discord;

int main()
{
    g_Discord->Initialize();
    g_Discord->Update();
}

 

Should be like this:

Discord_Km88hvrs6z.png.eee7c997cbf9d0c985bfc52efce87aee.png

and that's it ;D

like if helped you ❤️

ayyy this will do thanks bro!

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
  • 1 month later...
  • 1 month later...
  • 4 months later...
On 12/5/2021 at 1:42 AM, loona said:

1 - First you need to download discord sdk: 

Hidden Content

  • Give reaction or reply to this topic to see the hidden content.

 

2 - Go to discord developers and make a new application (put the name you want and the photos you want in "Rich Presence ->Art Assets" )

like that:

image.png.83c2816a8e85f4dc59bfab8dbe2e8cd6.png

3 -Go into your project and include "DiscordRPCSDK/Includes" and "DiscordRPCSDK/SourceFiles"

4 - Add to your cheat or application project:

"serialization.h"

"serialization.cpp"

"rpc_connection.h"

"rpc_connection.cpp"

"msg_queue.h"

"discord_rpc.cpp"

"discord_register_win.cpp"

"connection_win.cpp"

"backoff.h" 

 

5 - Create a "DiscordRpc.cpp" and "DiscordRpc.h" 

 

*DiscordRpc.h*

#pragma once
#include <discord_register.h>
#include <discord_rpc.h>
#include <Windows.h>

class Discord {
public:
	void Initialize();
	void Update();
};

 

*DiscordRpc.cpp*

#include "DiscordRpc.h"

void Discord::Initialize()
{
	DiscordEventHandlers Handle;
	memset(&Handle, 0, sizeof(Handle));
	Discord_Initialize("APPLICATION ID", &Handle, 1, NULL);
}

void Discord::Update()
{
	//Discord Visualizer
}

6- Change the "APPLICATION ID" to your Application id "General Information -> Application id"

 

7 - In "//Discord Visualizer" go to "Rich Presence ->Visualizer" and change it, after that go to "Show code" and copy

 

like that:

image.png.e43dc1702e655526e33eba6ea58c6999.png

 

8 - Go to your main.cpp and put

#include "DiscordRpc.h"

Discord * g_Discord;

int main()
{
    g_Discord->Initialize();
    g_Discord->Update();
}

 

Should be like this:

Discord_Km88hvrs6z.png.eee7c997cbf9d0c985bfc52efce87aee.png

and that's it ;D

like if helped you ❤️

thanks for sharing this 

  • Thanks 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...