samp-discord-connector icon indicating copy to clipboard operation
samp-discord-connector copied to clipboard

detect last received/created message

Open Zorono opened this issue 5 years ago • 2 comments

Hello dude, it'd be great if you added an function which detects last received/created message...(which is sent before calling DCC_SendChannelMessage Lasttime...) for example:

new DCC_Message:last_msg = DCC_Get_LastMessage();
DCC_DeleteMessage(last_msg);

and please can you give me an example of using DCC_SendChannelMessage's Callback parameters..

Zorono avatar May 28 '19 12:05 Zorono

Waiting for this

ghost avatar Oct 13 '20 13:10 ghost

#define Dchat "id of your channel" #define Ddiscord "id of your discord" new DCC_Guild:GUILD_ID1,DCC_Channel:discordlog; //variable need DCC_SendChannelMessage(discordlog,"ello"); //on adding in a discord command

ongamemodeinit
GUILD_ID1 = DCC_FindGuildById(Ddiscord); discordlog = DCC_FindChannelById(Dchat);

and voila

tysanio avatar Jun 07 '21 01:06 tysanio