11.08.2011, 11:53
For exemple
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
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;
}
EDIT: Use IRC_Say to show something on IRC channel