Raised This Month: $12 Target: $400
 3% 

IRC <-> HLDS


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 04-03-2004 , 21:50   IRC <-> HLDS
#1

This plugin has been taken over with devicenull's permission. New versions available here: http://forums.alliedmods.net/showthread.php?t=12658


Need help? Join #hldsIRC on irc.gamesurge.net
  • v0.35 - Fixed something I broke
  • v0.34 - Fixed mapchange issue, added some basic commands from irc..
  • v0.33 - Fixed a reconnect problem
  • v0.32 - Added ability to identify/send message on connected
  • v0.31 - Fixed mapchange bug, fixed auto-connect
  • v0.30 - Rewrote entire thing, added some cool stuff
Quote:
CVars:
irc_server - The irc server to connect to
irc_port - The irc server's port
irc_nick - The nick to use while connecting
irc_channel - The channel to join
irc_identify - If you want to identify set this to 1
irc_ident - See info below
Major CVARS:
The next 5 are NOT On/Off - They are the messages that are sent to and from irc when someone says something.. so setting them to "1" will mean every message sent will appear as a 1
irc_msg_srvjoin - Message when user joins
irc_msg_srvpart - Message when user leaves
irc_msg_srvsay - Message when user says something
irc_msg_srvteamsay - Message when user team_say's something
irc_msg_ircsay - Message when IRC user says something
Available vars for srv*
* $name - Person's name
* $steamid - Person's steamid
* $team - Person's team
* $teamn - Person's team number
* $message - What they said
* $connected - How long they have been connected
* $access - Persons access
Available vars for irc*
* $name - Persons name
* $message - Message
Commands:
irc connect - Connect to irc
irc disconnect - Disc from irc
irc say - Send message to irc
irc help - Tells you where to go
Known Problems
None!

Ok, about irc_ident.. you have to use the raw IRC syntax for sending messages, it really isn't too complex.
To do what /nickserv or /ns does in mirc
"PRIVMSG nickserv :BLAHBLAH"
To send a message to someone:
"PRIVMSG someone :I'm Online"
Get the picture?
If you need help, either post or grab me on the channel mentioned above

Commands from irc
<botname>, lusers - Lists users, steamids, and IP's of people connected
<botname>, help - Pretty much nothing

You need the sockets module to use this, and the web compiler probably won't handle it (I don't know if it has the sockets.inc file)

Menu stuff:
Use the commands amx_ircmenu or say /irc. Default access level is admin_level_a which can be changed in the plugin. Access to this gives you control of main bot functions, like disc/connect
Attached Files
File Type: sma Get Plugin or Get Source (irc.sma - 3581 views - 12.3 KB)
File Type: sma Get Plugin or Get Source (menu.sma - 2954 views - 1.5 KB)
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 04-03-2004 , 22:05  
#2

wow u finished this today? :O
well maybe you could have an administrating system
like if the person is opped in the channel the bot is in he can do rcon? (ok maybe not. and include an option to say who joined the server?
__________________
QwertyAccess is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 04-03-2004 , 22:15  
#3

Include who joined would be pretty easy..
I'm planning on adding admin-over-irc, once I can figure out how to get like the 2nd argument by itself

I'll go add join/part stuff now
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
QuakerOates
Senior Member
Join Date: Mar 2004
Old 04-05-2004 , 04:58  
#4

Got an error when compiling this one

Code:
/home/users/amxmodx/tmp/php49dYC0.sma(2) : fatal error 100: cannot read from file: "sockets"

Compilation aborted.
1 Error.
QuakerOates is offline
Bry
Member
Join Date: Mar 2004
Old 04-05-2004 , 06:10  
#5

wow this looks very good.

Any chance of it broadcasting actual ingame stuff, like kill/deaths and other gametype specific info like in ns cc/hive/structures destroyed?

As soon as ns is fulyl supported by amxx (think it was 0.2 wuld support it) this plugin will be the main reason i convert thx u )
Bry is offline
_KaszpiR_
AMX Mod X Beta Tester
Join Date: Feb 2004
Location: Warsaw, Poland
Old 04-05-2004 , 07:27  
#6

can we see it live? on quakenet for example?
__________________
= Ave Cesar, morituri Te salutant. = http://nvt.prv.pl = http://hlds.pl/
_KaszpiR_ is offline
DopeFish
Senior Member
Join Date: Feb 2004
Old 04-05-2004 , 08:43  
#7

you should include the socket.inc (and module since I can't remember seeing any tcp socket functions in engine) if you want anyone to be able to use this plugin.
DopeFish is offline
Send a message via ICQ to DopeFish
DoubleTap
Veteran Member
Join Date: Mar 2004
Location: Harker Heights, TX
Old 04-05-2004 , 09:10  
#8

As soon as sockets has Linux support I will check it out...

Vic/DT
__________________
DoubleTap is offline
Send a message via ICQ to DoubleTap
ArtAttack
Senior Member
Join Date: Mar 2004
Location: Bordeaux, France
Old 04-05-2004 , 11:32  
#9

Does it work with a listenserver ?
ArtAttack is offline
Send a message via MSN to ArtAttack
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 04-05-2004 , 14:59  
#10

Quote:
Originally Posted by DopeFish
you should include the socket.inc (and module since I can't remember seeing any tcp socket functions in engine) if you want anyone to be able to use this plugin.
No.
They need to install the modules DLL file too, so simply including that file would cause more problems

Quote:
Originally Posted by ArtAttack
Does it work with a listenserver ?
I'm assuming it would work under a listen server, as long as the sockets module is set up correctly.

Quote:
Originally Posted by Bry
wow this looks very good.

Any chance of it broadcasting actual ingame stuff, like kill/deaths and other gametype specific info like in ns cc/hive/structures destroyed?

As soon as ns is fulyl supported by amxx (think it was 0.2 wuld support it) this plugin will be the main reason i convert thx u )
I will soon be adding sending messages to the HLDS from IRC, then I should be able to add things like kills.
NS is fully supported by AmxX, I tested this on NS, and there's another plugin that adds some NS commands.

Quote:
Originally Posted by QuakerOates
Got an error when compiling this one

Code:
/home/users/amxmodx/tmp/php49dYC0.sma(2) : fatal error 100: cannot read from file: "sockets"

Compilation aborted.
1 Error.
You need to get the sockets module from the Modules forum, install the DLL as a AmxX module and put the include file in Scripting\Include, then it will compile fine.

Quote:
Originally Posted by _KaszpiR_
can we see it live? on quakenet for example?
Not at the moment, if someone is running this on a server that has players, and wants to give us the Channel/Network, or post some logs of this in action that would be nice. If not, once I get it to the point where all the basic events are there, I will post some logs.
I don't run a server that has players on it, my server is for testing stuff only

I just finished adding support for customizing the messages that it sends. I will wait and release this once I set up sending messages to the game from IRC. The messages are pretty easy to customize now, you have some basic variables ($name, $steamid, $team, $message) that you can put in the message however you want
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode