samp-discord-connector
samp-discord-connector copied to clipboard
detect last received/created message
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..
Waiting for this
#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