Jump to content

switch between servers


kevin11

Recommended Posts

this is what i thought but there is a error at line 4

:|

function joinserverHandlerFunction (playerSource, commandName, serverIP, serverPort, serverPassword)
if serverIP and serverPort then
if serverPassword then --if also a password was specified
redirectPlayer (playerSource, 77.160.183.15, tonumber(20001), serverPassword) 
else -- else if no password was specified
redirectPlayer (playerSource, 77.160.183.15, tonumber(20001))  
end
else
outputChatBox ("Error! Correct Command: /stealth", playerSource)
end
end
 
addCommandHandler ("stealth", joinserverHandlerFunction)

Link to comment

Hmmm, to redirect to other server you can use my code :)

function joinserverHandlerFunction (playerSource, commandName, serverIP, serverPort)
redirectPlayer (playerSource, "77.160.183.15", tonumber(20001))
end
addCommandHandler ("joinserver", joinserverHandlerFunction)

Link to comment

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