Jump to content

[help] Teleport System


Recommended Posts

Hello everyone.

works perfectly fine,but when the player goes into a teleport in an interior everything's right.

But if he is in an interior teleport and wants to go to a teleporter that is not an interior example, / drop it continues within the last teleport how do I when he goes to a teleport that is not in an interior it back to the inside 0 ?? help-me

Teleport Interior 
  
function stadium2 (thePlayer) 
    setElementInterior ( thePlayer, 14, -1411.0565185547, 1591.1369628906, 1052.53125 ) 
outputChatBox ( "[#f1f1f1/stadium2]#ff0000O player ".. getPlayerName(thePlayer) .." foi para o Stadium 2 vá tambem #f1f1f1/stadium2", getRootElement(),255,20,0,true) 
end 
addCommandHandler ( "stadium2", stadium2 ) 
  
Teleport not interior 
function drop (thePlayer) 
    setElementPosition ( thePlayer, -1053.99548, 1558.86609, 1115.13196 ) 
outputChatBox ( "[#f1f1f1/drop]#ff0000O player ".. getPlayerName(thePlayer) .." foi para o drop1 vá tambem #f1f1f1/drop", getRootElement(),255,20,0,true) 
end 
addCommandHandler ( "drop", drop ) 

Link to comment

tente (try)

Teleport Interior 
  
function stadium2 (thePlayer) 
    setElementInterior ( thePlayer, 14, -1411.0565185547, 1591.1369628906, 1052.53125 ) 
outputChatBox ( "[#f1f1f1/stadium2]#ff0000O player ".. getPlayerName(thePlayer) .." foi para o Stadium 2 vá tambem #f1f1f1/stadium2", getRootElement(),255,20,0,true) 
end 
addCommandHandler ( "stadium2", stadium2 ) 
  
Teleport not interior 
function drop (thePlayer) 
setElementInterior ( thePlayer, 0) 
--setElementDimension ( thePlayer, 0 ) 
    setElementPosition ( thePlayer, -1053.99548, 1558.86609, 1115.13196 ) 
outputChatBox ( "[#f1f1f1/drop]#ff0000O player ".. getPlayerName(thePlayer) .." foi para o drop1 vá tambem #f1f1f1/drop", getRootElement(),255,20,0,true) 
end 
addCommandHandler ( "drop", drop ) 

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