04.07.2018, 04:16
Код:
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; if(channel != BotChannel) return 0; new str[145]; format(str, sizeof str, "{667aca}[Discord]%s:{ffffff} %s", user_name, message); for(new i = 0; i < MAX_PLAYERS; i++) { if (DiscordStats[i]==0) continue; SendClientMessage(i, -1, str); } return 1; }