Jump to content

[HELP]LUA REDIRECT


Recommended Posts

local seconds = 60 
  
addCommandHandler("freeroam", 
    function(player, cmd) 
        redirectPlayer(player, "94.23.38.142", 22006) 
        outputChatBox("* #000000[#FF0000" .. getPlayerName(player) .. " #000000] #FFFF00Has turning to the Freeroam Server#ff0000!!", root, 255, 0, 0, true) 
    end 
) 
  
setTimer(function() 
    outputChatBox("#FFff00~@ #00bbccType #000000[ #ff0000/freeroam #000000] #00bbccTo connect to The#000000: #ff0000Freeroam #00bbccServer #ffff00@~", root, 255, 255, 255, true) 
end, seconds * 1000, 0) 

Questions

  • Is the script even running
  • Is the meta.xml set up correctly with the script file in it
  • Are you typing the command correctly as 'freeroam'
  • Try removing some of those color codes and see if they work

Link to comment

I just tried this one and it works as it should.

Try to lower the timer and see if it works E.G:

function chat () 
  outputChatBox ("#FFff00~@  #00bbccTyp #000000[ #ff0000/zombie #000000] #00bbccTo connect to The#000000: #ff0000Zombie #00bbccServer #ffff00 @~", root, 255, 255, 255, true ) 
end 
setTimer ( chat, 500, 0) -- we lowered the timer from 60000 to 500 to see if it actually works, if it works then increase it again. 

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