[FilterScript] [FS] Ultimate DM/TDM IRC Script Added Never Seen Commands! >> R6 Compatible! <<
#1

Flakes IRC FS V2.0! new

NEW AND UPDATED ALL FOUND BUGS HAS BEEN FIXED AND IS NOW WORKING FOR 0.3D

About:

This script is good for DM/TDM servers


Commands And Fetures:


I made Commands based on what you would need for a TDM server they include:

* IRC Commands (Flakes IRC FS 27/3/10)...

* !say !tp !admins !disarm !kill !about !ip !rcon !ann2

* !kick !ban !hostname !giveweapon !ann !gmx !time !pinfo

* !settime !slap !getid !eject !totalbans !info !blowcar

* !sethp !setarm !pm !vr !takeveh !rangeban !wire !unwire

* !getthere !clearchat !car !xyz !trash !pop



It also has Auto Messages You can change on line 1820


Looks like this
pawn Code:
new RandomMSG[][] =
{
  "Welcome To ServerName Please use /register to make a new account",


And you can change the time imbetween each message
pawn Code:
SetTimer("RandomMessages",600000,1);


i set the Defult to 2 IRC bots for a avrage server you can change to any number (recomended to keep at 2)

you can View the commands View the commands on irc using !cmds


tested and works:
Code:
<Flake> !cmds
<BOT> * IRC Commands (Flakes IRC FS 27/3/10)...
<BOT2> * !say !tp !admins !disarm !kill !about !ip !rcon
<BOT> * !kick !ban !hostname !giveweapon !ann !gmx !time
<BOT2> * !settime !slap !getid !eject !totalbans !info !blowcar
* !sethp !setarm !pm !vr !takeveh !rangeban !wire !unwire
* !getthere !clearchat !car !xyz !trash !pop


V1.2 New stuff!:


New commands view by !commands and ^ in the post

a war to link The FS and your GameMode:

Just add this code to your gamemode
pawn Code:
stock SendMessageToIrc(msg[])
{
    CallRemoteFunction("explain", "s", msg);
    return true;
}


then in the /ban command for example add this:
pawn Code:
new data[256];
format(data, 256, "0,4* Add the message here...");
SendMessageToIrc(data);


Allso added Join and Quit messages for the bots you can edit them on line 52 to 56

and it looks like
pawn Code:
#define IRC_QUIT_MSG    "Your Quit Message"
#define IRC_AUTH_MSG    "Your Bot autherisation Message"
#define IRC_INTI_MSG1    "Your custom initialize message here"
#define IRC_INTI_MSG2    "Your custom initialize message here"
#define IRC_INTI_MSG3    "Your custom initialize message here"
Mirrors and stuff:

Mirrors are Accepted

But do now claim this as your own! please



V1.3 New stuff!:


Added new commands!

And somthing never before seen in a IRC script!!

a !trash and !pop command

!trash is using the BreakCar Function You will Need R6

also !pop will PoP the players tyers

Look up and check commands there are the new ones posted!

Credits:

They are added in the Script but

Flake - for the script

Incognito - for the IRC plugin

PllayerX - for the Location Cords

CJ101 - For helping with Come Functions/Commands and AutoMsg

Download:


Version 2.0
- (Recomended!)
Reply
#2

Good work
Reply
#3

Nice work!
Reply
#4

Quote:
Originally Posted by Noredine
Good work
Quote:
Originally Posted by Matthias_
Nice work!
Thanks Guys i just Updated the post to Version 1.1
Reply
#5

Quote:
Originally Posted by $Fl@Ke$
Quote:
Originally Posted by Noredine
Good work
Quote:
Originally Posted by Matthias_
Nice work!
Thanks Guys i just Updated the post to Version 1.1
I like it
Reply
#6

Not bad, I\'ll add this maybe to my server. Good job.
Reply
#7

Thanks guys i apreciate the suport
Reply
#8

Updated and fixed all known bugs
Reply
#9

looks good,
nice work
Reply
#10

Quote:
Originally Posted by XRVX
looks good,
nice work
Thanks Updated first Post!
Added more commands and Never seen before IRC commands!
i need sugestions for commands and cool stuff for IRC
Reply
#11

All Updated you will NEED R7
Reply
#12

what kind of plugin do you prefer?
Reply
#13

Incognito\'s will be needed
Reply
#14

Hey, great FS. Its working fine for me, exept i cant figure out about the GameMode cmds..
I made an /toirc command in my gamemode that sends msg to all admin ig and added this in the cmd:

Code:
if(strcmp(cmd, "/toirc", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= \' \'))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /toirc [text]");
				return 1;
			}
			new data[256];
			format(data, 256, "0,4*[(ToIRC) %s(%d): %s]", sendername, playerid, (result));
			SendMessageToIrc(data);
			format(string, sizeof(string), "[(ToIRC) %s(%d): %s]", sendername, playerid, (result));
			ABroadCast(COLOR_IRC,string,1);
			SendClientMessage(playerid, COLOR_IRC, "[IRC] Message sent to the admins..");
	  }
	  return 1;
	}
I dont get any errors or warns on compile but i dont get the toirc msg up in the irc client.
Is there something i forgot to do since it dosent show?
Reply
#15

Nice Work
Reply
#16

Quote:
Originally Posted by Richie
Hey, great FS. Its working fine for me, exept i cant figure out about the GameMode cmds..
I made an /toirc command in my gamemode that sends msg to all admin ig and added this in the cmd:

Code:
if(strcmp(cmd, "/toirc", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
	    GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= \' \'))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /toirc [text]");
				return 1;
			}
			new data[256];
			format(data, 256, "0,4*[(ToIRC) %s(%d): %s]", sendername, playerid, (result));
			SendMessageToIrc(data);
			format(string, sizeof(string), "[(ToIRC) %s(%d): %s]", sendername, playerid, (result));
			ABroadCast(COLOR_IRC,string,1);
			SendClientMessage(playerid, COLOR_IRC, "[IRC] Message sent to the admins..");
	  }
	  return 1;
	}
I dont get any errors or warns on compile but i dont get the toirc msg up in the irc client.
Is there something i forgot to do since it dosent show?
hmm i\'m not sure why ill test it my seld and get back to you
Reply
#17

This is good but crashes my server 5 times every 10 minute or so.
Reply
#18

Flake lol, no need plugin and irc.inc file for this ?? and is it compatible with R8 ??
Reply
#19

Hey, this is great while i see, but i have one problem i don\'t know why my bots are not coming in irc please help me with this!
Reply
#20

please reply for my post . and sorry for double post!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)