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

Linked chat areas betwen server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maitredede
Senior Member
Join Date: May 2005
Old 05-02-2006 , 18:57   Linked chat areas betwen server
Reply With Quote #1

Hi

I've developping a rcon bot to handle my servers. And for fun, I wanted to link both chat areas when players say something...
As I don't want to everything said on one server apears as Console, I'd like to know if it is possible to make a plugin as if a person who has told something was on the other server, with team colors (if any)...

I explain :
Dede is connected on server 1
He's speaking with Nico on server 2
Dede say "Hello Nico"
my rcon bot catch the say event (via logs), and issue a rcon command on server 2.
Nico read the message "Dede : Hello Nico" as if Dede was connected on server 2.

the command could be "remote_say <nick> <color> <text>"

I'm repeating myself : It's just for fun...
__________________
make brain && make install
maitredede is offline
awuh0
Senior Member
Join Date: Apr 2005
Location: /dev/null
Old 05-03-2006 , 04:28  
Reply With Quote #2

you could use the rcon command to issue a plugin message command so it wont appear from console.

IE
rcon yourplugin_csay "playername : Hello there"

and have the plugin send a chat area message, Make sure to include any user defined text be it name or chat text in quotes to avoid being exploited by the ';' and running a command on the console.

You can use lightgreen and green as text colors, but as of now nothing else.
__________________
~The_wUh
_________________
Ph34r teh zombies!!!
find a better way to play CSS, connect to...
thewuh.servebeer.com
thecircus.servebeer.com
awuh0 is offline
Send a message via ICQ to awuh0 Send a message via AIM to awuh0 Send a message via MSN to awuh0
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 05-03-2006 , 14:39  
Reply With Quote #3

Mattie has implemented a linux rcon command into eventscripts FYI since valve only left the client codebase in linux servers.
__________________
ichthys is offline
maitredede
Senior Member
Join Date: May 2005
Old 05-04-2006 , 12:45  
Reply With Quote #4

I've thought about rcon, but my bot can already do this... (rcon ...)
But i'd like to show the text like if the player was on the server. (Red color name, gold text...)

I know it can be possible, since the cvar-x plugin does this. When someone is authed, it shows "CVAR-X : player (steamid) authentified" with "CVAR-X" in green and the text in gold.
I'd like to have a plugin that at least does this :
thecommand <text>

So my bot could issue a rcon :
thecommand "Dédé : Hello World !!!"

and the result should be :

Quote:
Remote> Dédé : Hello World !!!
__________________
make brain && make install
maitredede is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 05-04-2006 , 15:34  
Reply With Quote #5

you could use eventscripts

es_msg #multi #green/playername/: #default blhblhablhlablh
__________________
ichthys is offline
awuh0
Senior Member
Join Date: Apr 2005
Location: /dev/null
Old 05-04-2006 , 20:36  
Reply With Quote #6

Quote:
Originally Posted by maitredede
But i'd like to show the text like if the player was on the server. (Red color name, gold text...)
That only happens because the server auto colors the player name it finds connected to the server. I dont know of a way to color any generic text red, blue, or white.
__________________
~The_wUh
_________________
Ph34r teh zombies!!!
find a better way to play CSS, connect to...
thewuh.servebeer.com
thecircus.servebeer.com
awuh0 is offline
Send a message via ICQ to awuh0 Send a message via AIM to awuh0 Send a message via MSN to awuh0
maitredede
Senior Member
Join Date: May 2005
Old 05-08-2006 , 17:07  
Reply With Quote #7

Thanks for the reply...

I'm using es_msg, and now it's a customizable property in my code.

In Fact, I've done a rcon engine, with a pluggable interface, and one of the plugins will be an irc gateway.

But for now, I will code some easier plugins... If someone wants to code it's own plugin, I can show you how to do it... Maybe some coder will do great plugins that interracts with user trough menu...
__________________
make brain && make install
maitredede is offline
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 13:12.


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