27.03.2015, 06:02
So i tried to add a message when someone joins my IRC channel. It worked but the message is always double, i don't know what's wrong, here's the code
I'm using IRC plugin by Incognito https://sampforum.blast.hk/showthread.php?tid=98803|
oh and here's the "Double message" thing
Код:
public IRC_OnUserJoinChannel(botid, channel[], user[], host[])
{
new msg[128];
format(msg, sizeof(msg), "*** %s has joined the IRC channel ***", user);
SendClientMessageToAll(0xDDDD2357, msg);
return 1;
}
public IRC_OnUserLeaveChannel(botid, channel[], user[], host[], message[])
{
new msg[128];
format(msg, sizeof(msg), "*** %s has left the IRC channell", user);
SendClientMessageToAll(0xDDDD2357, msg);
return 1;
}
oh and here's the "Double message" thing


