SA-MP Forums Archive
IRC Problem. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IRC Problem. (/showthread.php?tid=553520)



IRC Problem. - gtasarules14 - 30.12.2014

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!


Re: IRC Problem. - gtasarules14 - 30.12.2014

Fixed.