29.02.2012, 21:32
Hmm, how about this:
pawn Код:
IRCCMD:say(botid, channel[], user[], host[], params[])
{
// Check if the user has at least voice in the channel
if (IRC_IsVoice(botid, channel, user))
{
// Check if the user entered any text
if (!isnull(params))
{
new
msg[128];
// Echo the formatted message
if (IRC_IsAdmin(botid, channel, user))
{
format(msg, sizeof(msg), "*** Admin %s on IRC: %s", user, params);
SendClientMessageToAll(0xffffffff, msg);
}
else
{
format(msg, sizeof(msg), "02*** %s on IRC: %s", user, params);
IRC_GroupSay(gGroupID, channel, msg);
format(msg, sizeof(msg), "*** %s on IRC: %s", user, params);
SendClientMessageToAll(0xffffffff, msg);
}
}
}
return 1;
}