Jump to content

[HELP] setElementData (x,y,z)


Tekken

Recommended Posts

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 ?

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