Hi,
I have this script for loja, and when type "/loja" teleport you in a loja, then "/lastloja" teleport you back.
But if you go in loja then go back and you die when type back "/lastloja", teleport you back were you was.
Script:
addCommandHandler("lastloja",
function(playerSource)
local oldxl = getElementData(playerSource, "xl")
local oldyl = getElementData(playerSource, "yl")
local oldzl = getElementData(playerSource, "zl")
setElementPosition(playerSource, oldxl, oldyl, oldzl)
outputChatBox("Out of loja!", playerSource, 255, 0, 0)
end
)
How to delete oldxl, oldyl, oldzl ?