2013-07-27 16:24:03 +01:00
|
|
|
function HandleBackCommand( Split, Player )
|
|
|
|
|
if BackCoords[Player:GetName()] == nil then
|
2013-08-11 16:00:53 +01:00
|
|
|
SendMessageFailure(Player, "No known last position")
|
|
|
|
|
return true
|
2013-07-27 16:24:03 +01:00
|
|
|
else
|
|
|
|
|
Player:TeleportToCoords(BackCoords[Player:GetName()].x, BackCoords[Player:GetName()].y, BackCoords[Player:GetName()].z)
|
2013-08-11 16:00:53 +01:00
|
|
|
SendMessageSuccess(Player, "Teleported back to your last known position")
|
2013-07-27 16:24:03 +01:00
|
|
|
end
|
|
|
|
|
return true
|
2013-08-11 16:00:53 +01:00
|
|
|
end
|