Bit Of help
#8

Hope this helps you
pawn Код:
// Somewhere in your commands script: (edit to your own code :) )

dcmd_saytoirc(playerid,params[])
{
    new msg[128];
    new message[128];
    new name[MAX_PLAYER_NAME];

    GetPlayerName(playerid, name, sizeof(name));

    if(sscanf(params, "s", message)) return SendClientMessage(playerid,color, "Usage: /saytoirc message");

    format(msg, sizeof(msg), "%s(%d) has said: %s.",name,playerid, message);
    CallRemoteFunction("igmessage","s",msg);

    SendClientMessage(playerid,color,"You have send the message to irc channel!");

    return true;
}

// Put this in your irc script!

forward igmessage(const string[]);
public igmessage(const string[])
{
    IRC_GroupSay(gGroupID, IRC_CHANNEL, string);
    return 1;
}
EDIT: For your 2nd question, about when someone joins a irc channel. You will be needing to create a IRC bot that will send the message ingame with !m Person: X has joined our irc channel!
Reply


Messages In This Thread
Bit Of help - by ColdXX - 17.12.2010, 18:29
Re: Bit Of help - by TheArcher - 17.12.2010, 19:34
Re: Bit Of help - by ColdXX - 17.12.2010, 20:13
Re: Bit Of help - by Chris_Mcgrifthd - 17.12.2010, 20:50
Re: Bit Of help - by yvoms - 17.12.2010, 20:51
Re: Bit Of help - by ColdXX - 17.12.2010, 20:53
Re: Bit Of help - by yvoms - 17.12.2010, 20:56
Re: Bit Of help - by Seven. - 17.12.2010, 21:07
Re: Bit Of help - by ColdXX - 17.12.2010, 21:45
Re: Bit Of help - by Noss* - 17.12.2010, 22:13

Forum Jump:


Users browsing this thread: 1 Guest(s)