Echo things to IRC
#7

For exemple
pawn Код:
IRCCMD:players(botid, channel[], user[], host[], params[]) {
    if(!strcmp(channel, IRC_CHANNEL_MAIN, true)) {
        new
            msgSz[32],
            playerCount;

        foreach(Player, i) {
            playerCount++;
        }

        format(msgSz, sizeof(msgSz), "Server Player Count: %d", playerCount);
        IRC_Say(BOT ID, IRC CHANNEL, msgSz);
    }
    return 1;
}
This command will say on IRC how many players are in the server. You can follow the exemple and i think its possible

EDIT: Use IRC_Say to show something on IRC channel
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: 3 Guest(s)