29.02.2012, 21:18
(
Последний раз редактировалось SnG.Scot_MisCuDI; 01.03.2012 в 01:11.
)
Solved
// Echo the formatted message
if(!IRC_IsAdmin(botid,channel,user))
{
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);
}
else if (IRC_IsAdmin(botid, channel, user))
{
format(msg, sizeof(msg), "*** Admin %s on IRC: %s", user, params);
SendClientMessageToAll(0xffffffff, msg);
}
Well i cannot script IRC, try doing 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;
}
format(msg, sizeof(msg), "*** Admin %s on IRC: %s", user, params);
IRC_GroupSay(gGroupID, channel, msg);
if (IRC_IsAdmin(botid, channel, user))
{
format(msg, sizeof(msg), "*** Admin %s on IRC: %s", user, params);
SendClientMessageToAll(0xffffffff, msg);