Whats wrong
#6

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;
}
Reply


Messages In This Thread
Whats wrong - by SnG.Scot_MisCuDI - 29.02.2012, 21:18
Re: Whats wrong - by Tanush123 - 29.02.2012, 21:25
Re: Whats wrong - by ryansheilds - 29.02.2012, 21:27
Re: Whats wrong - by SnG.Scot_MisCuDI - 29.02.2012, 21:28
Re: Whats wrong - by Richie© - 29.02.2012, 21:32
Re: Whats wrong - by ryansheilds - 29.02.2012, 21:32
Re: Whats wrong - by SnG.Scot_MisCuDI - 29.02.2012, 21:36
Re: Whats wrong - by ryansheilds - 29.02.2012, 21:46
Re: Whats wrong - by SnG.Scot_MisCuDI - 29.02.2012, 21:49

Forum Jump:


Users browsing this thread: 1 Guest(s)