04.07.2018, 04:25
It could be a disable option for messages or something similar.
Anyways..
Anyways..
PHP код:
#define BOT_NAME "YourBotName"
public DCC_OnChannelMessage(DCC_Channel:channel, DCC_User:author, const message[])
{
new channel_name[100 + 1];
if(!DCC_GetChannelName(channel, channel_name)) return 0; // invalid channel
new user_name[32 + 1];
if (!DCC_GetUserName(author, user_name)) return 0; // invalid user
if(!strcmp(user_name, BOT_NAME)) return 0; // Don't show bot messages in chat
new str[128];
format(str, sizeof str, "{667ACA}[Discord]%s:{FFFFFF} %s", user_name, message);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(DiscordStats[i] != 0);
SendClientMessage(i, -1, str);
}
return 1;
}