Script to message user

zafai

Member
Oct 11, 2016
10
3
35
Name of the script: Until now no name
Functions of the script: Message all users on the TeamSpeak Server that got the same IP
Why do you want it: I move the TeamSpeak Server from a old locatin to the new location so the IP changed atm when a user connects to the old IP: Port he gets redirected to the new IP: Port but this is a kind of nat/proxy so that the new Server all user that use the old IP got all the same IP. I would like to message all this user everytime they connect to tell them to use the new IP
Screenshots: until now no screenshot
Orginal source (if any): dont got a source
Other notes: no notes

Hello Community,
Im searching for a Script/Bot that got the function (please see in template) when someone knows a script or bot that is able to message a user's when they got xy IP please let me know

Thank you in advance.

Kind Regards
Zafai
 

Alligatoras

Administrator
Mar 31, 2016
2,570
12
2,857
381
Name of the script: Until now no name
Functions of the script: Message all users on the TeamSpeak Server that got the same IP
Why do you want it: I move the TeamSpeak Server from a old locatin to the new location so the IP changed atm when a user connects to the old IP: Port he gets redirected to the new IP: Port but this is a kind of nat/proxy so that the new Server all user that use the old IP got all the same IP. I would like to message all this user everytime they connect to tell them to use the new IP
Screenshots: until now no screenshot
Orginal source (if any): dont got a source
Other notes: no notes

Hello Community,
Im searching for a Script/Bot that got the function (please see in template) when someone knows a script or bot that is able to message a user's when they got xy IP please let me know

Thank you in advance.

Kind Regards
Zafai
If i understood correctly, you had a server with ip 1.2.3.4 but you got a new server with ip 6.7.8.9. Wha you want is that when the user connects to ip 1.2.3.4 he will be redirected to the ip 6.7.8.9?
IF you mean this you don't need a script!
Just use the modal quit message in the server settings and in the message add the url so users will click and join automatically on your new server!
 

freets3.ovh

Active Member
Sep 19, 2015
150
105
85
Or use iptables for auto redirect users :
1.2.3.4 = old server
5.6.7.8 = new server
iptables -A PREROUTING -p udp -m udp -d 1.2.3.4/32 --dport 9987:9999 -j DNAT --to-destination 5.6.7.8:9987-9999
iptables -A POSTROUTING -j MASQUERADE
 

Derp

Retired Staff
Contributor
Apr 30, 2015
933
1,014
217
The guy simply changed machines and wants to notify everyone, instead of hopping traffic from his previous server to the new one

To OP:
You can simply set a modal host message that tells people that the server's address has changed

"Edit Virtual Server" > "HostMessage - Message: Your new IP or whatever" > "HostMessage - Message Mode: Show modal message"
 

Alligatoras

Administrator
Mar 31, 2016
2,570
12
2,857
381
The guy simply changed machines and wants to notify everyone, instead of hopping traffic from his previous server to the new one

To OP:
You can simply set a modal host message that tells people that the server's address has changed

"Edit Virtual Server" > "HostMessage - Message: Your new IP or whatever" > "HostMessage - Message Mode: Show modal message"
Derp? ;) What did i say? The only difference was the modal quit!
 

zafai

Member
Oct 11, 2016
10
3
35
Thank you Alligatoras, freets3.ovh and Derp for your fast replys.

I got already the solution running that freets3.ovh was writing. The problem with that is that all User that now join over the old ip lets say 1.2.3.4 and the server redirect them to 5.6.7.8 have now on the new server the IP 1.2.3.4 on the new server.

I already got a Popup Message when the user connect to the new ts that he please use the new ip but lots of user dont read this message so my idear is that i got a script/bot that message the users that got the ip 1.2.3.4 and tell them to use please the new IP.
 

Derp

Retired Staff
Contributor
Apr 30, 2015
933
1,014
217
Thank you Alligatoras, freets3.ovh and Derp for your fast replys.

I got already the solution running that freets3.ovh was writing. The problem with that is that all User that now join over the old ip lets say 1.2.3.4 and the server redirect them to 5.6.7.8 have now on the new server the IP 1.2.3.4 on the new server.

I already got a Popup Message when the user connect to the new ts that he please use the new ip but lots of user dont read this message so my idear is that i got a script/bot that message the users that got the ip 1.2.3.4 and tell them to use please the new IP.
If the users ignore that message then you can do nothing about it. Even if you setup a bot to do that they will still ignore it.

Anyway, if you really want to do this then you'll need jts3 mod, configure the welcome message to say something like: Use this IP next time you connect

Search in the forums for JTS3 Mod
 

zafai

Member
Oct 11, 2016
10
3
35
If the users ignore that message then you can do nothing about it. Even if you setup a bot to do that they will still ignore it.

Anyway, if you really want to do this then you'll need jts3 mod, configure the welcome message to say something like: Use this IP next time you connect

Search in the forums for JTS3 Mod
Thank you Derp i will check this out and test if the user will then user the new IP other wise they will need to use a other ts when i shutdown the old server with the redirect when the dont want to use the new ip ;)
 
Top