2013-03-02 09:43:46 -05:00
|
|
|
function HandleBackCommand( Split, Player )
|
2013-07-05 07:13:21 -04:00
|
|
|
if BackCoords[Player:GetName()] == nil then
|
2013-03-02 09:43:46 -05:00
|
|
|
Player:SendMessage(cChatColor.Green .. "There is no last position known")
|
|
|
|
else
|
2013-07-05 07:13:21 -04:00
|
|
|
Player:TeleportToCoords(BackCoords[Player:GetName()].x, BackCoords[Player:GetName()].y, BackCoords[Player:GetName()].z)
|
2013-03-02 09:43:46 -05:00
|
|
|
Player:SendMessage(cChatColor.Green .. "You teleported back to your last known position")
|
|
|
|
end
|
|
|
|
return true
|
|
|
|
end
|