Bit Of help
#1

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
Reply
#2

Aren't there any natives like whispers?
Reply
#3

ermm nope.
Reply
#4

mayby pm ?
Reply
#5

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

no ,i mean PM from INGAME to IRC

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

Sorry cant help you mate
Reply
#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
#9

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?
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)