[Plugin] IRC Plugin
#81

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!
Reply
#82

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.
Reply
#83

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
Reply
#84

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)
Reply
#85

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.
Reply
#86

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 ..
Reply
#87

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
Reply
#88

Whose health are you setting? Read your function.
Reply
#89

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

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.

Reply
#91

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.)
Reply
#92

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?
Reply
#93

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..
Reply
#94

Show your IRC_Connect line(s)
Reply
#95

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[])
{    
   ...
}
Reply
#96

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.
Reply
#97

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".
Reply
#98

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.
Reply
#99

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
Reply

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


Forum Jump:


Users browsing this thread: 4 Guest(s)