papam77 Posted March 18, 2013 Posted March 18, 2013 Hello, i am looking for server warps. If i write !DD i will connect to DD server. Is it free script ?
Castillo Posted March 18, 2013 Posted March 18, 2013 We don't accept requests here, but you can learn and make it yourself. Function you need: redirectPlayer Event handler: onPlayerChat
papam77 Posted March 18, 2013 Author Posted March 18, 2013 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)
iPrestege Posted March 18, 2013 Posted March 18, 2013 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" !
EstrategiaGTA Posted March 18, 2013 Posted March 18, 2013 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.
iPrestege Posted March 18, 2013 Posted March 18, 2013 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 .
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