SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 23/09/2009, 05:06 PM   #11
Goldkiller
Big Clucker
 
Goldkiller's Avatar
 
Join Date: Aug 2006
Location: Germany
Posts: 154
Reputation: 14
Default Re: [REL] IRC Plugin v1.0

Sounds great!
Will test it these days,if everything works fine I'm going to use this irc plugin for gAdmin.

Suggestion:
IRC_JoinChannel(botid, const channel[], password[] );
__________________
Goldkiller is offline   Reply With Quote
Old 23/09/2009, 05:24 PM   #12
gijsmin
Huge Clucker
 
Join Date: Aug 2008
Posts: 429
Reputation: 0
Default Re: [REL] IRC Plugin v1.0

Quote:
Originally Posted by /^We(stie|z+[e|a
r)$/ ]
That's pretty obvious, you'll need the boost library.
yeah how to include it lol?
wich folder/direction?
gijsmin is offline   Reply With Quote
Old 23/09/2009, 05:55 PM   #13
Burridge
High-roller
 
Join Date: Nov 2008
Posts: 2,033
Reputation: 35
Default Re: [REL] IRC Plugin v1.0

I love you! No HOMO!
Burridge is offline   Reply With Quote
Old 23/09/2009, 06:20 PM   #14
yelkreb
Little Clucker
 
Join Date: Jan 2009
Posts: 40
Reputation: 0
Default Re: [REL] IRC Plugin v1.0

Awesome.
yelkreb is offline   Reply With Quote
Old 23/09/2009, 06:40 PM   #15
[LL]InstabiC
Big Clucker
 
Join Date: Aug 2009
Posts: 95
Reputation: 0
Default Re: [REL] IRC Plugin v1.0

Nice, but the grouping and stuff doesn't seem to work too nice. It might just be me but I've been testing and what I get is:


Quote:
[20:38:08] <TESTIE_03> - Server Information -
[20:38:08] <TESTIE_03> Players: 0/16
[20:38:08] <TESTER_03> IP Address: 95.211.6.150:7777
While I call this code:
Code:
IRC_GroupSay(ircGroup, channel, "7- Server Information -");

format(str, sizeof(str), "4IP Address:17 %s:%s", SERVER_IP, SERVER_PORT);
IRC_GroupSay(ircGroup, channel, str);

format(str, sizeof(str), "4Players:17 %d/%d", GetOnlinePlayers(), maxPlayers);
IRC_GroupSay(ircGroup, channel, str);

And my IRC connections are this:
Code:
ircBot[0] = IRC_Connect(IRC_SERVER, IRC_PORT, ircName[0], IRC_REALNAME, IRC_HOSTNAME);
ircBot[1] = IRC_Connect(IRC_SERVER, IRC_PORT, ircName[1], IRC_REALNAME, IRC_HOSTNAME);
ircGroup = IRC_CreateGroup();
IRC_AddToGroup(ircGroup, ircBot[0]);
IRC_AddToGroup(ircGroup, ircBot[1]);

So... shouldn't it be:
Quote:
[20:38:08] <TESTIE_03> - Server Information -
[20:38:08] <TESTER_03> IP Address: 95.211.6.150:7777
[20:38:08] <TESTIE_03> Players: 0/16
I had the same issues with Jacob's IRC plugin and my only solution was to make one bot send the commands.
Am I doing something wrong or what's going on? I would appreciate help!

By the way, it is great to see a new IRC plugin. Thanks a lot Incognito, you're great.
I love the RAW message parsing you've added as OnReceiveRaw... also all the groups and efficiency.

Please help!
[LL]InstabiC is offline   Reply With Quote
Old 23/09/2009, 06:49 PM   #16
gijsmin
Huge Clucker
 
Join Date: Aug 2008
Posts: 429
Reputation: 0
Default Re: [REL] IRC Plugin v1.0

Great work
gijsmin is offline   Reply With Quote
Old 23/09/2009, 07:47 PM   #17
Incognito
Huge Clucker
 
Join Date: May 2006
Posts: 449
Reputation: 487
Default Re: [REL] IRC Plugin v1.0

Thanks!

InstabiC: Make sure that you are not adding bots to the group twice. It is best to add them in IRC_OnConnect and remove them in IRC_OnDisconnect to ensure that this does not happen.

Gijs: Try commenting out IRC_OnReceiveRaw. The connect message is probably too big to write to a file. I will fix this in my example filterscript now.
Incognito is offline   Reply With Quote
Old 23/09/2009, 07:55 PM   #18
[LL]InstabiC
Big Clucker
 
Join Date: Aug 2009
Posts: 95
Reputation: 0
Default Re: [REL] IRC Plugin v1.0

Quote:
Originally Posted by Incognito
InstabiC: Make sure that you are not adding bots to the group twice. It is best to add them in IRC_OnConnect and remove them in IRC_OnDisconnect to ensure that this does not happen.
Thank you for the reply.

I now assign the bots into groups under IRC_OnConnect. It seems a little better but when I type the command like 5 times in a row, pretty fast (a second interval?) it still messes up it atleast once. But this is certainly better than it was with Jacob's plugin so thanks a bunch!
[LL]InstabiC is offline   Reply With Quote
Old 24/09/2009, 01:04 AM   #19
lavamike
Huge Clucker
 
lavamike's Avatar
 
Join Date: Mar 2008
Posts: 400
Reputation: 2
Default Re: [REL] IRC Plugin v1.0

Very nice, I will have to test this out later!
lavamike is offline   Reply With Quote
Old 24/09/2009, 02:01 AM   #20
AnthonyL
Little Clucker
 
Join Date: Sep 2009
Posts: 9
Reputation: 0
Default Re: [REL] IRC Plugin v1.0

Good work! Thank you so much for this.
AnthonyL is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Very good plugin suggestion (for scripters) and easy to make for the Plugin Developers! Xentiarox Plugin Development 5 29/07/2012 11:48 PM
[help][plugin] Can't load mysql plugin mariomako Help Archive 8 16/07/2011 03:37 PM
mysql plugin. loading plugin failed ikkentim Help Archive 2 10/02/2011 03:32 PM


All times are GMT. The time now is 03:47 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.