mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
22
Data/scripts/commands/gm/mypos.lua
Normal file
22
Data/scripts/commands/gm/mypos.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
require("global");
|
||||
|
||||
properties = {
|
||||
permissions = 0,
|
||||
parameters = "",
|
||||
description = "prints your current in-game position (different to map coords)",
|
||||
}
|
||||
|
||||
function onTrigger(player)
|
||||
local pos = player:GetPos();
|
||||
local x = pos[0];
|
||||
local y = pos[1];
|
||||
local z = pos[2];
|
||||
local rot = pos[3];
|
||||
local zone = pos[4];
|
||||
|
||||
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;
|
Loading…
Add table
Add a link
Reference in a new issue