Jump to content

Redirect line?


2Dope

Recommended Posts

Posted

So i need some help , I made a new server dedi with new ip , And i need a script to put in , Something like

onPlayerLogin

Then to redirect them to an IP. IF you could help thatd be amazing ,thanks

Posted

Like this?

event onPlayerLogin()

redirectPlayer(client, "174.34.131.139", getServerPort(), getServerPassword())

Posted
addEventHandler("onPlayerLogin", root, function() 
    redirectPlayer(source, "174.34.131.139", getServerPort(), getServerPassword()) 
end) 

obviously if its a different port or password youll need to change them

  • MTA Team
Posted
addEventHandler("onPlayerJoin", root, function() 
    redirectPlayer(source, "174.34.131.139", getServerPort(), getServerPassword()) 
end) 

obviously if its a different port or password youll need to change them

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