Jump to content

Looking for server warping


papam77

Recommended Posts

So this

  
  
addEvent ( "Redirect", true ) 
  
addEventHandler ( "Redirect", root, 
-- add Your IP and port server 
  
 function () 
 -- if Freeroam server Ip is = 192.168.1.1 , and port = 22003 ,  
  redirectPlayer (source,"192.168.1.1","22003") 
   
 -- then output This on Chat : 
  outputChatBox ("*#000000  [ #FF0000"..getPlayerName(source) .." #000000]#FFFF00 Has been redirect to DD server #ff0000!!",getRootElement(), 255, 0, 0, true ) 
end) 
  

Link to comment

  
addEventHandler('onPlayerChat',root, 
function ( msg ) 
if ( msg == "DD" ) then 
  redirectPlayer (source,"192.168.1.1",22003) 
  outputChatBox ("*#000000  [ #FF0000"..getPlayerName(source) .." #000000]#FFFF00 Has been redirect to DD server #ff0000!!",getRootElement(), 255, 0, 0, true )   
    end 
end 
) 
  

Server Side Script And Should Give The Script Admin Right's! How To Use? Type In The Chat Box "DD" !

Link to comment
  
addEventHandler('onPlayerChat',root, 
function ( msg ) 
if ( msg == "DD" ) then 
  redirectPlayer (source,"192.168.1.1",22003) 
  outputChatBox ("*#000000  [ #FF0000"..getPlayerName(source) .." #000000]#FFFF00 Has been redirect to DD server #ff0000!!",getRootElement(), 255, 0, 0, true )   
    end 
end 
) 
  

Server Side Script And Should Give The Script Admin Right's! How To Use? Type In The Chat Box "DD" !

If you want you can change the command to "!DD" changing the line 3. And for give admin rights add it to ACL.xml as resource.

Link to comment
  
addEventHandler('onPlayerChat',root, 
function ( msg ) 
if ( msg == "DD" ) then 
  redirectPlayer (source,"192.168.1.1",22003) 
  outputChatBox ("*#000000  [ #FF0000"..getPlayerName(source) .." #000000]#FFFF00 Has been redirect to DD server #ff0000!!",getRootElement(), 255, 0, 0, true )   
    end 
end 
) 
  

Server Side Script And Should Give The Script Admin Right's! How To Use? Type In The Chat Box "DD" !

If you want you can change the command to "!DD" changing the line 3. And for give admin rights add it to ACL.xml as resource.

Yes,I Know But He Want The Script When Player Type "DD" In Main Chat .

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