SA-MP Forums Archive
Need help in IRC - 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: Need help in IRC (/showthread.php?tid=524054)



Need help in IRC - IbeatS - 05.07.2014

Hello , i Got a script got an IRC with its cmds but when i open this IRC it says "I am not allowed to use this cmd" although i registed this irc channel and owner in it


Re: Need help in IRC - Dignity - 05.07.2014

Can you paste the commands here?


Re: Need help in IRC - IbeatS - 05.07.2014

pawn Код:
IRCCMD:say(botid, channel[], user[], host[], params[])
{
    new
        eText  [ 128 ],
        eString[ 256 ];

    if(!IsEchoChannel(channel)) return iNotice( user, IRC_WRONG_CHANNEL);
    if(!IRC_IsHalfop (botid, channel, user)) return iNotice( user, "** Sorry, but you cannot use this command!");
    if(sscanf(params, "s", eText)) return iEchoUse("!say [ message ]");
    if(strlen(eText) > 100) return iEchoUse("!say [ message ] (MSG TOO LONG)");

    format( eString, sizeof( eString ), "10(ToServer): %s: %s", user, eText);
    iEcho( eString );
    format( eString, sizeof( eString), " {FFFFFF}[Echo] {00FF7F}%s: %s", user, eText);
    SendMessageToAll(COLOR_ADMIN_SPYREPORT, eString);
    return 1;
}
All admin commands like this format