IRC_OnUserJoinChannel (Incognito) - 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)
+--- Thread: IRC_OnUserJoinChannel (Incognito) (
/showthread.php?tid=432758)
IRC_OnUserJoinChannel (Incognito) -
[ANGEL]_Rocko - 24.04.2013
Hey i am using Incognito's irc plugin and need help in IRC_OnUserJoinChannel.
I tried searching but found nothing, the default irc.pwn callback
Код:
public IRC_OnUserJoinChannel(botid, channel[], user[], host[])
{
printf("*** IRC_OnUserJoinChannel (Bot ID %d): User %s (%s) joined channel %s", botid, user, host, channel);
return 1;
}
This printf prints logs example when someone joins:
Код:
[12:46:59] *** IRC_OnUserJoinChannel (Bot ID 1): User [ANGEL]_Rocko (Rocko@265BC44E.6A174064.227125C9.IP) joined channel #test
[12:46:59] *** IRC_OnUserJoinChannel (Bot ID 2): User [ANGEL]_Rocko (Rocko@265BC44E.6A174064.227125C9.IP) joined channel #test
Only the bot id's are different, and if i add SendClientMessageToAll to notify ingame players. Then it repeats like the printf.
How to fix that?
Re: IRC_OnUserJoinChannel (Incognito) -
[ANGEL]_Rocko - 24.04.2013
I want that "join msg" not to be repeated because i have 4 bots.
And when some user on irc joins it prints the logs 4x.