Echo things to IRC
#1

Hello,

Currently working on my IRC script. Commands are working fine. But how can I echo something to my IRC channel?
I'm having a ZCMD command /ask sending it to all Administrators online. But how can I echo them also to my IRC channel?

pawn Код:
CMD:ask(playerid, params[])
    {
        {
        new string[128], reason[64];
        if(sscanf(params, "z", reason)) return SendClientMessage(playerid, COLOR_WHITE, ""#COL_DGREY"[CMD] / "#COL_SGREY"[Question]");
        else
        {
        SendClientMessage(playerid, COLOR_WHITE, ""#COL_ORANGE"[SERVER]"#COL_LRED" Your message has been send to all online administrators.");
        new pName[24];
        GetPlayerRame(playerid, pName, 128);
        for (new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                    format(string, sizeof(string), ""#COL_BROWN"[ASK]"#COL_EASY" %s: %s ", pName, reason);
                    SendMessageToAdmins(COLOR_RED, string);
            }
        }
        }
        }
        return 1;
    }
Reply


Messages In This Thread
Echo things to IRC - by Kingunit - 11.08.2011, 02:10
Re: Echo things to IRC - by Kingunit - 11.08.2011, 11:31
Re: Echo things to IRC - by TheArcher - 11.08.2011, 11:39
Re: Echo things to IRC - by Kingunit - 11.08.2011, 11:40
Re: Echo things to IRC - by TheArcher - 11.08.2011, 11:46
Re: Echo things to IRC - by Kingunit - 11.08.2011, 11:50
Re: Echo things to IRC - by TheArcher - 11.08.2011, 11:53
Re: Echo things to IRC - by Kingunit - 11.08.2011, 12:29
Re: Echo things to IRC - by Kingunit - 11.08.2011, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)