IRC Problem.
#1

Hello on my echo channel of IRC, the IRC command to ban and kick someone ingame do not work.

My code.
pawn Код:
IRCCMD:ban(botid, channel[], user[], host[], params[])
{
    if (IRC_IsOp(botid, channel, user))
    {
        new playerid, reason[64];
        if (sscanf(params, "ds[64]", playerid, reason))
        {
            return 1;
        }
        if (IsPlayerConnected(playerid))
        {
            new msg[128], name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            format(msg, sizeof(msg), "02*** %s has been banned by %s on IRC. (%s)", name, user, reason);
            IRC_GroupSay(groupID, channel, msg);
            format(msg, sizeof(msg), "*** %s has been banned by %s on IRC. (%s)", name, user, reason);
            SendClientMessageToAll(0x0000FFFF, msg);
            BanEx(playerid, reason);
        }
    }
    return 1;
}
On my IRC Echo channel I am a Owner with a Op, so I am sure that is not the problem, what could be going wrong here? Thanks!
Reply
#2

Fixed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)