SA-MP Forums Archive
Bit Of help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bit Of help (/showthread.php?tid=200183)



Bit Of help - ColdXX - 17.12.2010

hey!
How can i make an /irc whisper command?
Like when u do /irc text a text will be send just to the IRC! Only the ppl from IRC can see it!

Also,how can i send a message IG to let the players IG now that someone joined IRC?

Thanks


Re: Bit Of help - TheArcher - 17.12.2010

Aren't there any natives like whispers?


Re: Bit Of help - ColdXX - 17.12.2010

ermm nope.


Re: Bit Of help - Chris_Mcgrifthd - 17.12.2010

mayby pm ?


Re: Bit Of help - yvoms - 17.12.2010

Hmmm Sorry i dont know mutch of a Irc plugin
u mean like pm out of irc to ingame player?


Re: Bit Of help - ColdXX - 17.12.2010

no ,i mean PM from INGAME to IRC

And that small text to show IN-GAME when a player connects to IRC!


Re: Bit Of help - yvoms - 17.12.2010

Sorry cant help you mate


Re: Bit Of help - Seven. - 17.12.2010

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!


Re: Bit Of help - ColdXX - 17.12.2010

The /irc command works just perfect! Thanks alot!

And ty for the tip on the Second Thing :X

One more thing,how can i change the color of the message sent to IRC?


Re: Bit Of help - Noss* - 17.12.2010

Quote:
Originally Posted by yvoms
Посмотреть сообщение
Sorry cant help you mate
What was the point of posting then... ?