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: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;
}
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.