Send message to IRC
#1

As you can see, the following table serves to send a mensae from within the server by typing /irc <message>
pawn Код:
CMD:irc(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, COLOUR_SYSTEM, "Usage: /irc (message)");
    if(strlen(params) > 80) return SendClientMessage(playerid, COLOUR_SYSTEM, "Invalid length. The length must be between 1 and 80 characters.");
    IRC_GroupSayEx(gGroupID, IRC_ECHO_CHANNEL, "5Message from %s (%d) in-game: %s", pNick(playerid), playerid, params);
    SendClientMessage(playerid, COLOUR_INFO, "Your message has been sent to IRC (channel: "IRC_ECHO_CHANNEL").");
    return 1;
}
but no way to make an admin type /car or /kick (which comes with an Admin) to an alert that says on IRC = X Admin used X command?
soso the same methodology that you use the command /irc
Reply


Messages In This Thread
Send message to IRC - by Ghostmen - 24.11.2011, 15:51

Forum Jump:


Users browsing this thread: 1 Guest(s)