ice_brasil Posted May 12, 2013 Posted May 12, 2013 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?
Castillo Posted May 12, 2013 Posted May 12, 2013 The script seems fine, is it set as server side on meta.xml?
ice_brasil Posted May 12, 2013 Author Posted May 12, 2013 yes, and still continues in the interior: S
ice_brasil Posted May 12, 2013 Author Posted May 12, 2013 everything works no good just to get back into the 0 does not work
iPrestege Posted May 12, 2013 Posted May 12, 2013 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 .
ice_brasil Posted May 12, 2013 Author Posted May 12, 2013 running, but the set timer does not work, I might add?
ice_brasil Posted May 12, 2013 Author Posted May 12, 2013 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 )
iPrestege Posted May 12, 2013 Posted May 12, 2013 thePlayer is not defined and why you are using the 'SetElementInterior' 2 Times and there's some missing arguments .
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