Seeing texts from all channels [ DISCORD ]
#1

Hey, I'm getting text from unwanted channels. I want the text to show in game from only one channel.

CODE:
PHP код:
public DCC_OnChannelMessage(DCC_Channel:channel, DCC_User:author, const message[])
{
    new 
channel_name[100 + 1];
    if(!
DCC_GetChannelName(channel, channel_name))
        return 
0;
    new 
user_name[32 + 1];
    if (!
DCC_GetUserName(author, user_name))
        return 
0;
    new 
str[145];
    
format(str, sizeof str, "{667aca}[Discord/%s] %s:{ffffff} %s", channel_name, user_name, message);
    for(new 
i = 0; i < MAX_PLAYERS; i++) {
    if (
DiscordStats[i]==0) continue;
    
SendClientMessage(i, -1, str); }
    return 
1;
} 
Reply
#2

You can actually connect discord with samp?
Reply
#3

you can. see this https://sampforum.blast.hk/showthread.php?tid=631562
Reply
#4

Fixed it nvm.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)