AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   HLDS <-> IRC /w Integration By Devicenull 2.7 UPDATED 3-19-07 (https://forums.alliedmods.net/showthread.php?t=40451)

{NM}Jason 06-27-2006 18:42

HLDS <-> IRC /w Integration By Devicenull 2.7 UPDATED 3-19-07
 
2 Attachment(s)
See This Live on GameSurge in #HLDSIRC

for the best connection use irc.nuclearfallout.net

HOW TO INSTALL:

* Step 1: Download the .amxx file (Named irc.amxx)

* Step 2: Add the plugin to your /addons/amxmodx/plugins folder and to your plugins.ini in /addons/amxmodx/configs folder.

* Step 3: Configure your IRC bot by putting these cvars (Look below this) in your amxx.cfg
________________

REQUIRED CVARS - These must be set (in amxx.cfg or server.cfg)
________________
irc_server "irc_network_address" - The IRC server's address to connect to (For example; "irc.gamesurge.net")
irc_port "port_here" - The irc server's port (normally 6667)
irc_nick "your_bot_nick_here" The nickname the bot will use on IRC (For example; "ServerBot")
irc_username "bot_username_here" - Name that shows when someone /whois or ucentral's you
irc_channel "#your_chan_here" - Channel to join
irc_msg_usecolors (default 1; 0|1) - Makes messges from HLDS in IRC colored based on team. If you're channel restricts colors, set this to 0. If you don't run CS, set this to 0.
________________

OPTIONAL CVARS - You may want to set these
________________
irc_identify (default 0; 0|1) - If you have a nickserv/auth account, set this to "1"
irc_ident (default "") - If you have a nickserv/auth account set this to "authserv auth [account] [password]"
irc_map_change (default 1; 0|1) - Display Server name, ip, map and players connected on map change and server start.
irc_show_joins (default 1; 0|1) - Show a message when someone joins the server
irc_to_hlds_say_auto (default 1; 0|1) - Automatically transfer messages from IRC to HLDS
irc_from_hlds_say_auto (default 1; 0|1) - Automatically transfer messages from HLDS to IRC
irc_to_hlds_say_activator (default "!hlds") - If irc_to_hlds_say_auto is disabled (set to 0) then only messages which contain what this cvar is set to will be sent to HLDS from IRC.
irc_from_hlds_say_activator (default "!irc") - If irc_from_hlds_say_auto is disabled (set to 0) then only messages which contain what this cvar is set to will be sent from HLDS to IRC.
irc_msg_srvjoin (default "$name ($steamid) has joined the server") - Set the message that will be displayed in IRC when a player joins the server. Set to "" to disable.
irc_msg_srvpart (default "$name ($steamid) has left the server") - Set the message that will be displayed in IRC when a player leaves the server. Set to "" to disable.
irc_msg_startup (default "$servername - $ip Current Map: $map $curplayers / $maxplayers players") - Set the message that will be displayed in IRC when the server starts up or changes map. Set to "" to disable.

Variables you can use for irc_msg_serv(join/part)
* $name - Person's name
* $steamid - Person's steamid
* $team - Person's team
* $teamn - Person's team number
* $connected - How long they have been connected
* $access - Persons access

Variables you can use for irc_msg_startup
* $servername - Name of the server
* $ip - IP of the server
* $map - Name of the current map
* $curplayers - Current number of players on the server
* $maxplayers - Maximum players allowed on server
________________

COMMANDS
________________

In-game Commands:
irc connect - Connect to irc
irc disconnect - Disc from irc
irc say - Send message to irc
irc help - Get help

IRC Commands:

In Channel:
-@cmds/@commands/@info/@help - Displays a list of commands usable in channel.
-@players - Lists the players currently in the server.
-@map - Display the current map.
-@nextmap - Display the next map in the map cycle.
-@timeleft - Display the time left on the current map.
-@ip - Display the IP of the server.
-@status - Display the same information contained in the start up message.
Admins can use any commands available to them as if they were in the server. (e.g. If an admin has ADMIN_BAN access, they could do @amx_ban player in channel and it will ban player from the server.)

Commands That You PM To The Bot
-cmds/commands/info/help - Displays a list of commands usable in channel.
-players - Lists the players currently in the server.
-map - Display the current map.
-nextmap - Display the next map in the map cycle.
-timeleft - Display the time left on the current map.
-ip - Display the IP of the server.
-status - Display the same information contained in the start up message.
-login <username> <password> - Log in to the bot so you can use admin commands.
-logout - Log out from the bot.
Admins can use any commands available to them as if they were in the server. (e.g. If an admin has ADMIN_BAN access, they could PM amx_ban player to the bot and it will ban player from the server.)

________________

HOW TO ADD ADMINS
________________

Edit your ircadmins.ini (It will be created in /addons/amxmodx/configs after the first time you run the plugin. If you don't see it, make sure the plugin is properly installed and then restart or change map on the server, then check again.)

Make sure to put it in this format:
"username" "password" "flags" "unique id"

*Flags should be the same as users.ini or your amxbans admins config
*Unique ID is an arbitrary number (it can be anything you want), just make sure that no two admins have the same ID.
________________

IMPORTANT: If your bot does not connect to the network, and you are sure you have all the settings right (Should work as long as you have the default cvars in amxx.cfg or Server.cfg), it means that your host is blocking the ports. This is common among gameserver providers now (More likely on the datacenter's end).

{NM}Jason 06-27-2006 18:42

Re: HLDS <-> IRC Bot By Devicenull /w Integration 2.4
 
-Originally made by Devicenull
Now Mantained By twistedeuphoria & {NM}JRBLOODMIST again as of 6-27-06

Version 2.7
a delay problem when connecting, also when you connect to irc server with HLDS <-> IRC , it sends the ping in the same packet as the NOTICE AUTH, and the plugin doesnt parse it properly witch wont allow it to connect at all
so we added another delay before it sends the notice auth also we added a delay before connecting wile the server is starting up
thanks FatalisDK teame06 for there help
Version 2.6
-Massive reworks
-Removed amx bans commands
-Removed extra irc_from_hlds triggers
-Added admin commands (see commands in first post)
-Removed say cvars
-Added irc_msg_usecolor
-I'm probably forgetting stuff, read the first post.
Version 2.5
-Very Minor Code Tweaks and Changes
Version 2.4
-Added @chat/@csay/@tsay/@psay commands
Version 2.3
-Added more triggers for irc_from_hlds_say
Version 2.2
-Added amxbans integration
Version 2.1
-Added the amx_ban feature
-Added bolds to usernames from HLDS
Version 2.0
-Taken over by chowdown
Version 1.1:
-Ping timeout fix. Thanks LogiC.
Version 1.0:
-Increased maximum hostname length (when sending to IRC)
-Decreased time between sending messages to IRC
-Cleaned, streamlined and upstaed code
-Added server admining from IRC
-Edited say cvars' defaults
-Added cvars for controlling say messages
-Lots of stuff
Version 0.39:
-Fixed some compiling errors. Thanks to v3x for help.
Version 0.38:
-Added a bunch of IRC commands and a cvar to control the startup message.
Version 0.37:
-Added GNU and setup(since removed) in .sma.
Version 0.36:
-Added irc_map_change and map change information
-Taken over by {NM}JRBLOODMIST and twistedeuphoria
Version 0.35
-Fixed something I broke
Version 0.34:
-Fixed mapchange issue
-Added some basic commands from IRC
Version 0.33:
-Fixed a rconnect problem
Version 0.32:
-Added ability to identify/send message on connected
Version 0.31:
-Fixed mapchange bug
-Fixed auto-connect
Version 0.30:
-Rewrote entire thing
-Added some cool stuff

Niro 07-01-2006 00:11

Re: HLDS <-> IRC /w Integration By Devicenull 2.5 UPDATED 6-30-06
 
Nice

Mulan 07-02-2006 12:48

Re: HLDS <-> IRC /w Integration By Devicenull 2.5 UPDATED 6-30-06
 
sorry... dont work for me... the server shut down if i use this plugin

i have:

Rootserver (linux suse 9.3)
newest cstrike
AMXX 1.71
Metamod 1.19p28

in my amxx.cfg i put these:

############################################# ###
irc_server "splatterworld.de.quakenet.org"
irc_port "6669"
irc_nick "KX-Server-Bot"
irc_username "KX-Server-Bot"
irc_channel "#Kelten-Xtreme"
irc_identify "1"
irc_ident "authserv auth KX-Server-Bot xxxxxxxx"
irc_map_change "1"
irc_show_joins "1"
irc_to_hlds_say_auto "0"
irc_from_hlds_say_auto "0"
irc_to_hlds_say_activator @hlds
irc_from_hlds_say_activator !irc
irc_amxbans "0"
irc_msg_srvjoin "$name betritt den WC3FT-Server"
irc_msg_srvpart "$name verlässt den WC3FT-Server"
irc_msg_startup "$servername ($ip) | Mapchange to: $map"
############################################# ###

then i restart my server and type "irc connect" in the console... after this the the bot join the channel and server shutting down

{NM}Jason 07-02-2006 14:09

Re: HLDS <-> IRC /w Integration By Devicenull 2.5 UPDATED 6-30-06
 
what dose it say in your error logs ?

Mulan 07-02-2006 16:09

Re: HLDS <-> IRC /w Integration By Devicenull 2.5 UPDATED 6-30-06
 
nothings

{NM}Jason 07-03-2006 07:37

Re: HLDS <-> IRC /w Integration By Devicenull 2.5 UPDATED 6-30-06
 
add this
Code:

irc.amxx debug
to your plugins.ini

Mulan 07-03-2006 12:42

Re: HLDS <-> IRC /w Integration By Devicenull 2.5 UPDATED 6-30-06
 
nothing too

Code:

          [ 37] Exploding Gernade  1.0      P34nut            grenaderealism.  running 
          [ 38] LaserMine Entity  1.2beta  +ARUKARI-        LaserMine.amxx  running 
          [ 39] teamalert          1.0      Allenwr          teamalert.amxx  running 
          [ 40] HLDS<->IRC        2.5      devicenull        irc.amxx        debug

my log:

Code:

L 07/03/2006 - 18:35:57: -------- Mapchange to fy_paintball --------
L 07/03/2006 - 18:35:58: [restrictnames.amxx] 24 Saetze von addons/amxmodx/configs/restrictnames.ini geladen.
L 07/03/2006 - 18:36:06: [amxbans_new.amxx] AMXBans amxx_4.0 is online
L 07/03/2006 - 18:36:06: [amxbans_menu_new.amxx] AMXBans Menu is online (6 reasons loaded)
L 07/03/2006 - 18:36:07: [warcraft3FT.amxx] Connection to MySQL database successful
L 07/03/2006 - 18:36:27: -------- Mapchange to fy_paintball --------
L 07/03/2006 - 18:36:27: [restrictnames.amxx] 24 Saetze von addons/amxmodx/configs/restrictnames.ini geladen.
L 07/03/2006 - 18:36:40: [amxbans_new.amxx] AMXBans amxx_4.0 is online
L 07/03/2006 - 18:36:40: [amxbans_menu_new.amxx] AMXBans Menu is online (6 reasons loaded)
L 07/03/2006 - 18:36:41: [warcraft3FT.amxx] Connection to MySQL database successful
L 07/03/2006 - 18:37:00: -------- Mapchange to fy_paintball --------
L 07/03/2006 - 18:37:01: [restrictnames.amxx] 24 Saetze von addons/amxmodx/configs/restrictnames.ini geladen.
L 07/03/2006 - 18:37:07: [amxbans_new.amxx] AMXBans amxx_4.0 is online
L 07/03/2006 - 18:37:07: [amxbans_menu_new.amxx] AMXBans Menu is online (6 reasons loaded)
L 07/03/2006 - 18:37:08: [warcraft3FT.amxx] Connection to MySQL database successful


{NM}Jason 07-03-2006 14:18

Re: HLDS <-> IRC /w Integration By Devicenull 2.5 UPDATED 6-30-06
 
IMPORTANT: If your bot does not connect to the network, and you are sure you have all the settings right (Should work as long as you have the default cvars in amxx.cfg), it means that your host is blocking the ports. This is common among gameserver providers now (More likely on the datacenter's end).

ask your server provider if they block port 6667 or 6666

chowdown 07-04-2006 00:58

Re: HLDS <-> IRC /w Integration By Devicenull 2.5 UPDATED 6-30-06
 
Use this server on quakenet: http://staff.quakenet.org/server_show.phtml?serverid=56

Use the 7000 port or port 8080, it should work then.


All times are GMT -4. The time now is 03:04.

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