SA-MP Forums Archive
[Plugin] IRC Plugin - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] IRC Plugin (/showthread.php?tid=98803)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


Re: [REL] IRC Plugin v1.3.6 - bpeterson - 07.05.2010

Quote:
Originally Posted by [03
Garsino ]
Before you updated to 1.3.6, this plugin caused players to almoust DoS my server! Your plugin made them modify packets causing the server to lag heavily. I am happy to say that it haven't happened since the update.
Yes, same thing happened to me too earlier. It hopefully fixed it.
Thanks Incognito!


Re: [REL] IRC Plugin v1.3.6 - Incognito - 08.05.2010

A user in a PM (nemesis99) pointed out a small bug with IRC_GetChannelUserList which caused names to be printed multiple times in some cases. A fixed version has been uploaded, so update if necessary.


Re: [REL] IRC Plugin v1.3.6 - gtg2808 - 09.08.2010

how can i do this?
!givecash <id> // i just wanna to give some cash to the id which i type.
use scanfs or strlen. i just need to know how! :O


Re: [REL] IRC Plugin v1.3.6 - rbN. - 09.08.2010

How could you do like, if you type in something, it also shows for the server. So example: I say on IRC: Hello. This shows up on server: RobinOwnz: Hello.

How(btw without admin functions, so normal people can use too)


Re: [REL] IRC Plugin v1.3.6 - michael2572 - 09.08.2010

Quote:
Originally Posted by gtg2808
View Post
how can i do this?
!givecash <id> // i just wanna to give some cash to the id which i type.
use scanfs or strlen. i just need to know how! :O
Quote:
Originally Posted by RobinOwnz
View Post
How could you do like, if you type in something, it also shows for the server. So example: I say on IRC: Hello. This shows up on server: RobinOwnz: Hello.

How(btw without admin functions, so normal people can use too)
These are very simple tasks that you could pretty easily code if you do a little of the homework first.

GTG, you need to learn about using sscanf, then understand what happens in IRC_OnUserSay.

Robin, this is easier. Use IRC_OnUserSay, then send a client message. It's really easy, just give it a try and you'll figure it out.


Re: [REL] IRC Plugin v1.3.6 - rbN. - 10.08.2010

Quote:
Originally Posted by michael2572
View Post
These are very simple tasks that you could pretty easily code if you do a little of the homework first.

GTG, you need to learn about using sscanf, then understand what happens in IRC_OnUserSay.

Robin, this is easier. Use IRC_OnUserSay, then send a client message. It's really easy, just give it a try and you'll figure it out.
Oh well, ty.. I didn't tested the IRC plugin and stuff yet, but I watched it a bit so lol ..


Re: [REL] IRC Plugin v1.3.6 - gtg2808 - 10.08.2010

i know about scanf. lol. k, i got a bug but not an error.
i tried !heal <id>
need a help!
Code:
IRCCMD:heal(botid, channel[], user[], params[], playerid)
{
		new iD,main[256],amain[256],name[MAX_PLAYER_NAME];
		if (sscanf(params, "u", iD)) IRC_GroupSay(botid, channel, "You did not put in a msg");
		else if (IRC_IsOp(botid, channel, user)== 0) return IRC_GroupSay(botid, channel, "You are not a channel admin");
		else if (iD == INVALID_PLAYER_ID) IRC_GroupSay(botid, channel,"~ Invaild Player ID");
		else
			 {

				GetPlayerName(playerid, name, sizeof(name));
				format(main,sizeof(main),"%s [#gtg2808] as 4restored %s 's health",user,name);
				format(amain,sizeof(amain),"%s [#gtg2808] as restored Your health",user);
				IRC_GroupSay(botid, channel, main);
				SendPlayerMessageToPlayer(playerid,0xFB0000FF,amain);
				PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
				SetPlayerHealth(playerid,100);
	}
		return 1;
}
bug:-
and ingame , i didn't got health - 100
Code:
<~gtg2808> !heal 0
<G-1> gtg2808 [#gtg2808] as 4restored  's health



Re: [REL] IRC Plugin v1.3.6 - michael2572 - 10.08.2010

Whose health are you setting? Read your function.


Re: [REL] IRC Plugin v1.3.6 - gtg2808 - 10.08.2010

!heal <id> like !heal 0
so, id:0 will be healed.
can u understand?


Re: [REL] IRC Plugin v1.3.6 - CJ101 - 13.08.2010

This happened today, cant get my bots to join since:

Quote:

[21:05:13] CJ101's RevolutionX DM/Stunt/Race/Fun v3
[21:05:13] Number of vehicle models: 0
[21:05:19] 05Auto-Load: Server Autoloaded The Default Vehicles. (88 Total)
[21:05:38] *** IRC Plugin: Could not connect to irc.tl:6667 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
[21:05:38] IRC Bot 1 Disconnected.




Re: [REL] IRC Plugin v1.3.6 - gtg2808 - 13.08.2010

For me too.
[03:38:37] *** IRC Plugin: Could not connect to irc.ffsnetwork.com:8067 (A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)


Re: [REL] IRC Plugin v1.3.6 - michael2572 - 13.08.2010

Quote:
Originally Posted by gtg2808
View Post
!heal <id> like !heal 0
so, id:0 will be healed.
can u understand?
Pay attention to this line -

SetPlayerHealth(playerid,100);

Also

Is anyone currently using or trying to use this plugin with SSL?


Re: [REL] IRC Plugin v1.3.6 - Rachael - 06.10.2010

I was wondering if anyone else uses variables for the channel identifier in IRC_JoinChannel and IRC_Say
pawn Code:
IRC_JoinChannel(botid,IRCchannel[i],""); //this works
...
IRC_Say(botid,IRCchannel[i],string); // I can't get this to work.
The variables for the channel are loaded from a file, and I think this is where the problem originates. I have tried defining the channel variables in the script and it works fine. I have also tried formatting the strings to remove the \n from the end without success.

pawn Code:
fread(ircfile,chanstring);
strmid(IRCchannels[i],chanstring,0,strlen(chanstring)-1,32);
I know that strings loaded from files behave differently, can someone show me how to modify the loaded strings so they are the same as a string defined in the script.

[edit] ok someone helped me already, there is an \r on the end too..


Re: [REL] IRC Plugin v1.3.6 - [03]Garsino - 10.10.2010

Show your IRC_Connect line(s)


Re: [REL] IRC Plugin v1.3.6 - Rachael - 10.10.2010

Quote:
Originally Posted by TheCrazyKiller
View Post
how to detect if a cmd was sent from a channel
pawn Code:
IRCCMD:command(botid, channel[], user[], host[], params[])
{    
   ...
}



Re: [REL] IRC Plugin v1.3.6 - unforgiving - 15.10.2010

Hey, somebody can help me?

The plugin isn't working properly on CentOS release 5.3 (Final) and Fedora Core server...
the message" ...has left the server. (Leaving)" and "...has joined the server."

I used the same config to irc.pwn and grandlarc.pwn, and changed this in my server.cfg plugins irc.so
on linux...

On Windows works fine, on linux the message dont show.


Re: [REL] IRC Plugin v1.3.6 - unforgiving - 15.10.2010

The real probem can be, folder permission maybe, if I download a new sampserver and run... works fine. If I change the directory, the SP dont works anymore, even if I give permission "chmod 700".


Re: [REL] IRC Plugin v1.3.6 - Fool - 25.10.2010

i did Everything, It Worked Prefectly, But When I Join My server for some reason It wont respond. i did everything like it says.
Help Me if you can.


AW: [REL] IRC Plugin v1.3.6 - Arrows73 - 25.10.2010

Ive had the problem that you didn't see death / join / disconnect messages because in filterscripts or the main script I mixed up some return 0;s and return 1;s on Callbacks


Re: [REL] IRC Plugin v1.4.2 - Patrik356b - 28.05.2011

Mike; You missed this: http://forum.sa-mp.com/showpost.php?...0&postcount=83