2019-06-19 01:10:15 -04:00
|
|
|
require("global");
|
|
|
|
|
|
|
|
properties = {
|
|
|
|
permissions = 0,
|
|
|
|
parameters = "",
|
|
|
|
description = "prints your current in-game position (different to map coords)",
|
|
|
|
}
|
|
|
|
|
|
|
|
function onTrigger(player)
|
|
|
|
local pos = player:GetPos();
|
2022-01-25 22:54:44 -05:00
|
|
|
local x = pos[1];
|
|
|
|
local y = pos[2];
|
|
|
|
local z = pos[3];
|
|
|
|
local rot = pos[4];
|
|
|
|
local zone = pos[5];
|
|
|
|
|
2019-06-19 01:10:15 -04:00
|
|
|
local messageID = MESSAGE_TYPE_SYSTEM_ERROR;
|
|
|
|
local sender = "[mypos] ";
|
|
|
|
local message = string.format("X:%.3f Y:%.3f Z:%.3f (Rotation: %.3f) Zone:%d", x, y, z, rot, zone);
|
|
|
|
|
|
|
|
player:SendMessage(messageID, sender, message);
|
|
|
|
end;
|