Jump to content

mods redirect edit code Please


Recommended Posts

You want to freeze the player?

---This Script Made By X-Shadow ! 
addCommandHandler ( "go", 
    function ( player, cmd, port ) 
        setTimer ( redirectPlayer, 5000, 1, player, "91.121.70.169", 22017 ) 
        setElementFrozen ( player, true ) 
        outputChatBox ( "You Will be Moved to the Server in 5 sec ...", player ) 
        outputChatBox ( "Player ".. getPlayerName ( player ) .." Has Moved to the Server !", getRootElement(), 250, 255, 0 ) 
    end 
) 

Link to comment
You want to freeze the player?
---This Script Made By X-Shadow ! 
addCommandHandler ( "go", 
    function ( player, cmd, port ) 
        setTimer ( redirectPlayer, 5000, 1, player, "91.121.70.169", 22017 ) 
        setElementFrozen ( player, true ) 
        outputChatBox ( "You Will be Moved to the Server in 5 sec ...", player ) 
        outputChatBox ( "Player ".. getPlayerName ( player ) .." Has Moved to the Server !", getRootElement(), 250, 255, 0 ) 
    end 
) 

I think he wants to redirect every player in the server.

Link to comment
---This Script Made By X-Shadow ! 
addCommandHandler ( "go", 
    function ( player ) 
        setTimer ( 
            function ( ) 
                for index, thePlayer in ipairs ( getElementsByType ( "player" ) ) do 
                    redirectPlayer ( thePlayer, "91.121.70.169", 22017 ) 
                end 
            end 
            ,5000, 1 
        ) 
        outputChatBox ( "You Will be Moved to the Server in 5 sec ...", player ) 
        outputChatBox ( "Player ".. getPlayerName ( player ) .." Has Moved to the Server !", getRootElement(), 250, 255, 0 ) 
    end 
) 

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