Perfect Posted May 18, 2014 Share Posted May 18, 2014 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
denny199 Posted May 18, 2014 Share Posted May 18, 2014 For outputting in each server when a player joined you can use callRemote: https://wiki.multitheftauto.com/wiki/CallRemote And I'm not sure if you can check if a server is up/down with CallRemote, you should give it a try. Link to comment
Perfect Posted May 18, 2014 Author Share Posted May 18, 2014 Any good example for call remote function ? I can't understand the wiki one. And Really, There is no way to know if server is on or off ? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now