IRC Filterscript

Započeo admin, Maj 20, 2009, 15:14:06 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Hello all.

I made a simple IRC filterscript, you can use it together with Jacob's IRC Plugin.

Player Commands:
   
!imsg    <send message to server>
!igetid    <get a players id based on nickname>
   
Admin Commands:
   
!iban       <ban a player with optional reason>
!ikick       <kick a player with optional reason>
!islap    <slap a player with optional reason>
!ikill       <kill a player with optional reason>
!isay       <send message to the server as admin>
!ipause    <pause the echo, !pause again to unpause>




It looks something like this:

Citat(07:27:46)  â€"› join: (SneakyBOT) (SneakyBOT@1337)
(07:27:46) (SneakyBOT) Your custom initialize message here :)
(07:27:46) (SneakyBOT) [NB]Sneaky joined the server.
(07:27:46) (SneakyBOT) [8] [NB]Sneaky: asd
(07:28:12) (~Sneaky) !igetid sneak
(07:28:13) (SneakyBOT) Matches: [NB]Sneaky(0)
(07:28:17) (~Sneaky) !ikill 0 noob
(07:28:18) (SneakyBOT) Admin Sneaky (ID: -1) killed [NB]Sneaky (ID:0) Reason: noob
(07:28:22) (SneakyBOT) [NB]Sneaky died.
(07:28:29) (SneakyBOT) [8] [NB]Sneaky: :(
(07:28:39) (~Sneaky) !islap 0 noob
(07:28:41) (SneakyBOT) Admin Sneaky (ID: -1) slapped [NB]Sneaky (ID:0) Reason: noob
(07:29:15) (SneakyBOT) [8] [NB]Sneaky: NO U
(07:29:16) (~Sneaky) !isay NO U
(07:29:17) (SneakyBOT) >> Admin from IRC Sneaky: NO U
(07:29:17) (SneakyBOT) [8] [NB]Sneaky: NO U
(07:29:20) (~Sneaky) !imsg NO U
(07:29:21) (SneakyBOT) >> Player from IRC Sneaky: NO U
(07:29:29) (SneakyBOT) [8] [NB]Sneaky: no u
(07:29:35) (~Sneaky) !IKICK 0 NO U
(07:29:36) (SneakyBOT) Admin Sneaky (ID: -1) kicked [NB]Sneaky (ID:0) Reason: NO U
(07:29:36) (SneakyBOT) [NB]Sneaky has left the server. (Kicked)
(07:30:09)  â€"› quit: (SneakyBOT) (SneakyBOT@1337) (Quit: Your Custom Quit Message Here :))

It's 'highly' customizeble:

Citat: ircfs.pwn
// Setup settings here

#define IRC_SERVER          ""          // IRC Server (e.g irc.gtanet.com)
#define IRC_PORT          6667        // Set the IRC port (default 6667)

// Uncomment line 39 if you want to use 2 bots, uncomment line 40 if you want to use 3 bots
#define IRC_AMOUNT1         true
//#define IRC_AMOUNT2         true
//#define IRC_AMOUNT3         true

// Put the names of your irc bot's here (Note: not every bot can have the same name)
#define IRC_ECHO_BOT1       ""
#define IRC_ECHO_BOT2       ""
#define IRC_ECHO_BOT3       ""

// #channel is the channel you want to echo in game chat in, change it.
#define IRC_ECHO_CHAN      "#channel"

// If your bot names are registered put a password here to identify them with
#define IRC_PASSWORD          "password"

// Set the IRC join delay (1000 = 1 second), set to 0 if you dont want to use it
// (IF bot has a vHost then set this to 5000 ELSE it wont show the vHost on channel join)
#define IRC_JOIN_DELAY      0

// PRETTY SELF EXPLANARY

#define IRC_QUIT_MSG        "Your Custom Quit Message Here :)"
#define IRC_AUTH_MSG         "Your custom your not authorized message here :)"
#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 :)"

I tested everything and it should all work 100%, report any bugs here please & dont remove credits - that's all I ask.

(NO MIRRORS PLEASE)

PASTEBIN:

http://pawn.pastebin.com/f6f99afae
Poslednja Izmena: Jul 01, 2019, 23:07:30 POSLE PODNE od Mister Naithan