Why does it echo 2 times?
#1

pawn Код:
public IRC_OnUserJoinChannel(botid, channel[], user[], host[])
{
    new string[128];
    printf("*** IRC_OnUserJoinChannel (Bot ID %d): User %s (%s) joined channel %s!", botid, user, host, channel);
    format(string,sizeof(string),"[IRC JOIN] User %s has joined the IRC Channel %s!",user,channel);
    SendClientMessageToAll(COLOR_ROYALBLUE,string);
    return 1;
}
This is my "OnUserJoinChannel", When a user joins on the IRC channel, it echo's correctly but it does twice.
For example :
[IRC JOIN] User rakshith122 has joined the channel #extreme
[IRC JOIN] User rakshith122 has joined the channel #extreme

I don't know what and where is the problem,
Hope someone would help me,
Thanks.
Reply
#2

You have 2 bots? If yes, use gGroupID instead of botid in the display message.

You need to define gGroupID and add both the bots to this group. Consult the Incognito's demo filterscript.
Reply
#3

Mostly everywhere, The script uses "gGroupID" and "gGroupAdminID" to echo.
Also, An example would be appreciated!
Reply
#4

Search fo this and see if you have it somewhere else.
pawn Код:
[IRC JOIN] User %s has joined the IRC Channel %s
Reply
#5

Код:
public IRC_OnUserJoinChannel(botid, channel[], user[], host[])
{
    new string[128];
    if(botid == 1)
    {
    format(string,sizeof(string),"[IRC JOIN] User %s has joined the IRC Channel %s!",user,channel);
    SendClientMessageToAll(COLOR_ROYALBLUE,string);
    }
    return 1;
}
This should work I think.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)