SA-MP Forums Archive
Irc Problem - 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 Problem (/showthread.php?tid=306339)



Irc Problem - WarToFar - 26.12.2011

My problem is when i use !say It sending 2 Message on server Like

User On Irc: my msg
User On Irc: my msg


Re: Irc Problem - SomebodyAndMe - 26.12.2011

Show us the code of your IRC script.


Re: Irc Problem - WarToFar - 26.12.2011

Bots Name's

Код:
// Name that everyone will see
#define BOT_1_NICKNAME "SampEver"
// Name that will only be visible in a whois
#define BOT_1_REALNAME "Samp4Ever1"
// Name that will be in front of the hostname (username@hostname)
#define BOT_1_USERNAME "Samp4Ever2"

#define BOT_2_NICKNAME "Hacking"
#define BOT_2_REALNAME "Hacking1"
#define BOT_2_USERNAME "Hacking2"

#define IRC_SERVER "irc.foco.co" // EDIT IT to your irc server
#define IRC_PORT (6667) // Leave THE port
#define IRC_CHANNEL "#SampFourEver" // Set it to your IRC Channel!
#define			blue 						0x375FFFFF
#define 		red 						0xFF0000AA
#define 		green 						0x33FF33AA
#define 		ROJO						0x33FF33AA
#define 		yellow 						0xFFFF00AA
#define 		grey 						0xC0C0C0AA
#define 		blue1 						0x2641FEAA
#define 		lightblue 					0x33CCFFAA
#define 		orange 						0xFF9900AA
#define 		black 						0x2C2727AA


#pragma 		tabsize 					0

// Maximum number of bots in the filterscript
#define MAX_BOTS (2)
COMMANDS

Код:
IRCCMD:say(botid, channel[], user[], host[], params[])
{
	// Check if the user has at least voice in the channel
	if (IRC_IsVoice(botid, channel, user))
	{
		// Check if the user entered any text
		if (!isnull(params))
		{
			new
				msg[128];
			// Echo the formatted message
			format(msg, sizeof(msg), "02*** %s on IRC: %s", user, params);
			IRC_GroupSay(gGroupID, channel, msg);
			format(msg, sizeof(msg), "*** %s on IRC: %s", user, params);
			SendClientMessageToAll(0x33FF33AA, msg);
		}
	}
	return 1;
}

Код:
IRCCMD:msg(botid, channel[], user[], host[], params[])
{
			new msg[128];
			// Echo the formatted message
			format(msg, sizeof(msg), "02***[User] %s on IRC: %s", user, params);
			IRC_GroupSay(gGroupID, channel, msg);
			format(msg, sizeof(msg), "***[User] %s on IRC: %s", user, params);
			SendClientMessageToAll(0x33FF33AA, msg);
	return 1;
}



Re: Irc Problem - WarToFar - 26.12.2011

Sorry But Can any One Help Me !?


Re: Irc Problem - Tigerkiller - 26.12.2011

which irc plugin are you use ?


Re: Irc Problem - WarToFar - 26.12.2011

i think its A Normal Irc plugin