Author Topic: Sending a command to another client if in another server?  (Read 608 times)

I was wanting to make something for example
I was in my server and my friends in another server
I did a /command and my friend has the same mod, is it possible he can get like a message what ever i did in the Slash command?
Like this
Me:/Msg FriendsName Msg
Him [Me]: Hey!
« Last Edit: December 08, 2009, 03:28:42 PM by Pah1023 »

Not easily. Should I assume that this is more than a messaging system since we already have the RtB IRC?

1. I think you would need findclientbyname("player") to do this.
2. That only finds clients from the server you use it on.
3. findclientbyname is a server-sided command and will only work if you're the host.

TCP sockets, but you need to know the other player's IP. You'll need to have a master server that stores the IPs for players by names.

Have the mod make a tcp socket listening for 1 person on a port, then have the person sending the message's socket connect to the ip you found on the server and send the messsage, then have the receiving socket handle the message and chat message what was received.

Not as easy as you thought I bet.

You could also just send the data to the master server then have the receiving client handle it, but why not use IRC?

You could also just send the data to the master server then have the receiving client handle it, but why not use IRC?
What if he is barred/banned from irc?
Or don't have RTB
How would i do the TCP thing?

There is a fully functioning example of how to do this on the Garage Games forums. Although to make it work with anything you need to mod it some.

There is a fully functioning example of how to do this on the Garage Games forums. Although to make it work with anything you need to mod it some.
You should posted the link but i will look

What if he is barred/banned from irc?
Banned from #RTB: Use a different channel or /privmsg him.
Banned from *.centralchat.net: Use a different IRC server.
Or don't have RTB
So?
How would i do the TCP thing?
Google is your friend.