Send message to 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: Send message to IRC (
/showthread.php?tid=299163)
Send message to IRC -
Ghostmen - 24.11.2011
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