silly-electrician-10549
02/10/2023, 1:06 PMcpp
#include <a_samp>
#include <discord-connector>
main() { }
new DCC_Channel:test_channel;
public OnGameModeInit()
{
test_channel = DCC_FindChannelById("1073573583000969276");
return 1;
}
public DCC_OnMessageCreate(DCC_Message:message)
{
new
DCC_User:author,
DCC_Channel:channel,
bool:is_bot,
cmdtext[256];
DCC_GetMessageChannel(message, channel);
DCC_GetMessageAuthor(message, author);
DCC_GetMessageContent(message, cmdtext, sizeof(cmdtext));
DCC_IsUserBot(author, is_bot);
if(is_bot)
return 0;
new str[200];
format(str, sizeof str, "Message: %s", cmdtext);
DCC_SendChannelMessage(test_channel, str);
return 1;
}silly-electrician-10549
02/10/2023, 1:07 PMdazzling-translator-76954
02/10/2023, 1:46 PMsilly-electrician-10549
02/10/2023, 2:00 PM