SA-MP Forums Archive
Seeing texts from all channels [ DISCORD ] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Seeing texts from all channels [ DISCORD ] (/showthread.php?tid=652521)



Seeing texts from all channels [ DISCORD ] - Exhibit - 13.04.2018

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:channelDCC_User:author, const message[])
{
    new 
channel_name[100 1];
    if(!
DCC_GetChannelName(channelchannel_name))
        return 
0;
    new 
user_name[32 1];
    if (!
DCC_GetUserName(authoruser_name))
        return 
0;
    new 
str[145];
    
format(strsizeof str"{667aca}[Discord/%s] %s:{ffffff} %s"channel_nameuser_namemessage);
    for(new 
0MAX_PLAYERSi++) {
    if (
DiscordStats[i]==0) continue;
    
SendClientMessage(i, -1str); }
    return 
1;




Re: Seeing texts from all channels [ DISCORD ] - MarioKamani - 13.04.2018

You can actually connect discord with samp?


Re: Seeing texts from all channels [ DISCORD ] - Exhibit - 13.04.2018

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


Re: Seeing texts from all channels [ DISCORD ] - Exhibit - 13.04.2018

Fixed it nvm.