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

HLDS <--> IRC Integration 2.4 ( Devicenull )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:         
chowdown
Member
Join Date: Nov 2005
Old 05-24-2006 , 23:57   HLDS <--> IRC Integration 2.4 ( Devicenull )
Reply With Quote #1

Originally made by Devicenull, then updated by twistedeuphoria and bloodmist, and now managed by yours truly and Feffe.

Changelog:
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.5 and below changelog can be found Here

Documentation:
  • 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

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-666

irc_nick ("your_bot_nick_here") The nickname the bot will use on IRC (For example; "GamingDust2")

irc_username (normally "server_name_here") Name that shows when someone /whois or ucentral's you (For instance, mine is Paul Stan)

irc_channel ("#your_chan_here") Channel to join

irc_identify (normally "0") If you have a nickserv/auth account, set this to "1"

irc_ident (default "") - See info below

irc_map_change (normally "1) Display Server name, ip, map and players connected on map change and server start.

irc_show_joins (normally "1) Show a message when someone joins the server

irc_to_hlds_say_auto (normally "1") To be able to communicate from IRC to the server

irc_from_hlds_say_auto (normally "1") To be able to communicate from the server to IRC

irc_to_hlds_say_activator (normally @hlds) irc_from_hlds_say_auto has to be 0

irc_from_hlds_say_activator (normally !irc) irc_to_hlds_say_auto has to be 0

irc_from_hlds_say_activator2 (same thinig as above, but adding an option for more activators)

irc_from_hlds_say_activator3 (See above)

irc_from_hlds_say_activator4 (See above)

irc_amxbans (normally 1 if you have amxbans, 0 if you do not)

-------------------------------------------------------------------------------------

Custom Cvars (If you want to change something in the bot's special configuration, these are the cvars you can put in your amxx.cfg)

irc_msg_srvjoin (normally "$name ($steamid) has joined the server") Server player join message

irc_msg_srvpart (normally "$name ($steamid) has left the server") When someone leaves the server it says this.

irc_msg_srvsay (normally "$name : $message") Ingame user's chat is formatted with this cvar.

irc_msg_srvteamsay (normally "($team) $name : $message") Team_say chat format from ingame.

irc_msg_ircsay (normally "*IRC* $name : $message") The format that a player ingame sees IRC messages directed at HLDS.

irc_msg_startup (normally "$servername - $ip Current Map: $map $curplayers / $maxplayers players") Format for the join message and map change message said by the bot.

Note: All $name variables are bolded and so is the $servername due to request. To get a custom colored bot, please contact me via pm, or through IRC, and I will edit the plugin for you.

Variables you can use for irc_msg_serv(join/part/teamsay/say)
* $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

Variables you can use for irc* (except irc_msg_startup)
* $name - Persons name
* $message - Message

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

-------------------------------------------------------------------------------------

Bot Commands

Commands to use via console when working with the bot:
irc connect - Connect to irc
irc disconnect - Disc from irc
irc say - Send message to irc
irc help - Get help

Commands to use in IRC when the bot is running:
-map (for current map)
-nextmap (for the next map)
-timeleft (for time left)
-ip (for the server ip)
-users (Displays nicknames of people currently playing on the server)
-login <username> <password> (Log into admin)
-logout (Log out of admin)

Admin Commands:
amx_cfg (config file)
amx_kick
amx_ban
amx_slap
amx_slay
amx_rcon (command line; for example amx_rcon restart)
@csay "color" "info"
@tsay "color" "info"
@chat (admin chat)
@psay "username"

Amxbans only:
amx_banid "authid"
amx_ban (if irc_amxbans = 1 then use amxbans format)
amx_tempban "time" "authid" "reason"

How to add admins:

Edit your ircadmins.ini (which has been created in /addons/amxmodx/configs)

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 = SteamID

How to authenticate with gamesurge/quakenet:
In irc_ident put "authserv auth [account] [password]"

Of course this may not work if you have already used it on a different IP, so make sure you don't use it or go ahead and register a new authserv account. I have not yet added the authcookie fix feature.

Ingame commands for IRC menu:
/irc
amx_ircmenu

Note: It was requested that we make this plugin report hackers when someone said /hax (uniqueID or nickname. All you have to do is set the hlds_to_irc_say_activator to "/hax" and it will only report things when people say that ingame.

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). I am creating a service where you can use a proxy to connect to the network, which will virtually fix this problem. It will not be free as I cannot afford 99999 of these things, but it will be very cheap. I am in no way selling this plugin, and if this is a problem please contact me and I will edit this post. This is the only solution as of now to use your irc.amxx if your ports are blocked. Contact me in #logbots or pm me if you have questions. Otherwise, have fun

Again if you want custom colors please contact me and I will edit the plugin for you.

IMPORTANT: You must have the "sockets" module enabled.
Attached Files
File Type: sma Get Plugin or Get Source (irc.sma - 1081 views - 42.1 KB)
__________________
woot
chowdown is offline
Send a message via AIM to chowdown
chowdown
Member
Join Date: Nov 2005
Old 05-25-2006 , 00:07  
Reply With Quote #2

-Added the amx_ban feature
-Added bolds to usernames from HLDS

I am going to work on any request there is, as I cannot find any features that are needed. If you have a request please ask.

And obviously I am now working on the plugin, so I cannot work out of someone else's topic can I?
__________________
woot
chowdown is offline
Send a message via AIM to chowdown
noob cannon lol
SourceMod Donor
Join Date: Sep 2005
Old 05-25-2006 , 00:09  
Reply With Quote #3

Do you have permission from the authors to branch off from their original plugin? Or are you just arbitrarily releasing other versions to the public without their approval. I mean, they are still in charge of HLDS -> IRC...
noob cannon lol is offline
Send a message via AIM to noob cannon lol Send a message via MSN to noob cannon lol
chowdown
Member
Join Date: Nov 2005
Old 05-25-2006 , 00:10  
Reply With Quote #4

Yes I do. Bloodmist said he didn't have time to work on it anymore, so I asked if I could do it.
__________________
woot
chowdown is offline
Send a message via AIM to chowdown
Console
New Member
Join Date: Dec 2005
Old 05-25-2006 , 23:59  
Reply With Quote #5

I'm going to use this bot on my server, it looks cool. Nice guide too.
Console is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 05-26-2006 , 05:50  
Reply With Quote #6

[trolling]
Mexico has a army?
[/trolling]

Other then that, like stated before. If you want to complain about how ineffective pawn is, then start a general thread. And perhaps you can help the devs figure out a way to improve it.
Other then that its pointless to post like you are, 99% of the ppl in these forums dont have a clue on how to compile anything, so you posting the source code is not helpfull.

On a side note, if you wanna look at pawn plugins that should be coded in c++ instead recommend looking at: runemod,all war3 mods,DM mods .

Posting like you did, only makes ppl hostile to you. If you see that you can improve something why not do that instead of being so agressive.

On a sitenote, plugin approved
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
feffe
Member
Join Date: Dec 2005
Location: Denmark
Old 05-26-2006 , 07:19  
Reply With Quote #7

It would be nice if it could connect to amxbans. The commands i need is if somebody type !checkid STEAM_0:0:12345 on irc then the bot is using the amx_find command and returns the answar from hlds. something like that.
feffe is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 05-26-2006 , 07:20  
Reply With Quote #8

+5 mod points..
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
chowdown
Member
Join Date: Nov 2005
Old 05-27-2006 , 00:15  
Reply With Quote #9

Hm I could most likely add that. I'll work on it tomorrow. I'll note if it has been done or not. Also, the BNC system is almost done. I'm trying to figure out a way to make it so that when it connects to a BNC, it sends the password (I have a security system set up, so even if you have the pass you cannot even see the BNC unless I add you to the IP allow). Hopefully I can get this done by the end of the weekend.

The lookup should be pretty simple, so consider it on the way
__________________
woot
chowdown is offline
Send a message via AIM to chowdown
chowdown
Member
Join Date: Nov 2005
Old 05-28-2006 , 01:20  
Reply With Quote #10

Added the @lookup command
__________________
woot
chowdown is offline
Send a message via AIM to chowdown
Reply



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 03:38.


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