Jump to content

Forward player to other IP


koeno100

Recommended Posts

Posted

Hi guys,

I own a server and I've recently switched hosts because the old host was crap.

Now, and I've seen this in other server, what function do I use so people get automatically forwarded to the new server IP once they join the old server?

Posted
addEventHandler ('onPlayerJoin', root, 
    function () 
        redirectPlayer (source, 'newserverip', newport) 
    end 
) 

Run this code on your old server, and of course replace "newserverip" and "newport"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...