Jump to content

[Help] redirectPlayer Questions.


Perfect

Recommended Posts

Hello, I am trying to make an Script, Which will redirect Players to My friend server with command /ServerP And /ServerV.

Their servers are local servers (including mine), So when Their servers are off the command should output 'Servername Off'.

Is there is anyway to detect When Servers are 'On' Or 'Off' ?

Here is Script:-

(This Is script which i just modified a bit right now. Not tested but i am sure it will not work)

  
function Servers (cmd) 
        if (cmd == 'Serverp') then 
        redirectPlayer (source, "1xxx.xxx.xx.xx",22003 )  
        elseif (cmd == 'ServerV') then 
            redirectPlayer (source, "xxx.xxx.xx.xx",22003 )  
        end 
end 
addCommandHandler (cmd, Servers) 

Also how can i output a Message 'Connect from Server K'' in friend server.

Can You Guys Please Help Me ?

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