Jump to content

[help] SetElementInterior


Recommended Posts

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 ) 

when I'm in an interior and for that I will teleport / drop it continues on the inside that I want tava goes to "0" What did this wrong?

Link to comment
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) 
        local Int = getElementInterior ( thePlayer ) 
        outputChatBox(tostring(Int),thePlayer) 
end 
addCommandHandler ( "drop", drop ) 

Hmm.. i output the int id try it and see if the id = 0 or not .

Link to comment

is correct ?

addCommandHandler('drop',

function(p)

setElementInterior ( thePlayer, 0)

setElementDimension ( thePlayer, 0 )

setTimer(setElementInterior,3500,1,p,-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)

local Int = getElementInterior ( thePlayer )

outputChatBox(tostring(Int),thePlayer)

end

)

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