Jump to content

Looking for server warping


papam77

Recommended Posts

Posted

We don't accept requests here, but you can learn and make it yourself.

Function you need:

redirectPlayer 

Event handler:

onPlayerChat

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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) 
  

Posted

No, that has nothing to do with what I said.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

  
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" !

  

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

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

  

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