2012-01-26 22:44:37 +00:00
|
|
|
function HandleTopCommand( Split, Player )
|
|
|
|
local World = Player:GetWorld()
|
|
|
|
|
|
|
|
local PlayerPos = Player:GetPosition()
|
|
|
|
local Height = World:GetHeight( math.floor(PlayerPos.x), math.floor(PlayerPos.z) )
|
2013-03-02 14:43:46 +00:00
|
|
|
X[Player:GetName()] = Player:GetPosX()
|
|
|
|
Y[Player:GetName()] = Player:GetPosY()
|
|
|
|
Z[Player:GetName()] = Player:GetPosZ()
|
2012-01-26 22:44:37 +00:00
|
|
|
Player:TeleportTo( PlayerPos.x, Height+1, PlayerPos.z )
|
|
|
|
Player:SendMessage("Teleported to the top block")
|
|
|
|
|
|
|
|
return true
|
|
|
|
end
|