08.08.2015, 11:14
Код:
IRCCMD:m(botid, channel[], user[], host[], params[])
{
if(!IRC_IsVoice(botid, channel, user)) return IRC_GroupSay(gGroupID, channel, "4» You do not have the correct privileges to use this command.");
if(isnull(params)) return IRC_GroupSay(gGroupID, channel, "4» The correct usage for this command is !m [message]");
if(!strcmp(channel, IRC_CHANNEL_ADMIN_2, false)) return IRC_GroupSay(gGroupAdmin, channel, "4» This command is not available in this channel.");
new str[128];
format(str, sizeof(str), "%s (IRC): %s", user, params);
SendClientMessageToAll(-1, str);
strins(str, "2", 0);
IRC_GroupSay(gGroupID, channel, str);
return 1;
}

