04.07.2018, 04:12
An example how to disable bot messages:
You can make a different channel and restric it's access to admins only and send messages to that channel.
PHP код:
#define BOT_NAME "YourBotName"
public DCC_OnChannelMessage(DCC_Channel:channel, DCC_User:author, const message[])
{
new channel_name[100 + 1], user_name[32 + 1], user[24];
if(!DCC_GetChannelName(channel, channel_name)) return 0; // invalid channel
if(!DCC_GetUserName(author, user_name)) return 0; // invalid user
DCC_GetUserName(DCC_User:author, user, 24);
if(!strcmp(user, BOT_NAME)) return 0; // Don't show bot messages in chat
}