mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
.
This commit is contained in:
@@ -24,8 +24,8 @@ local function pos_to_string(pos)
|
|||||||
return tostring(pos.x) .. "," .. tostring(pos.y)
|
return tostring(pos.x) .. "," .. tostring(pos.y)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function pos_to_gps_string(pos)
|
local function pos_to_gps_string(pos, surface_name)
|
||||||
return "[gps=" .. string.format("%.1f", pos.x) .. "," .. string.format("%.1f", pos.y) .. "]"
|
return "[gps=" .. string.format("%.1f", pos.x) .. "," .. string.format("%.1f", pos.y) .. "," .. surface_name "]"
|
||||||
end
|
end
|
||||||
|
|
||||||
--- Print a message to all players who match the value of admin
|
--- Print a message to all players who match the value of admin
|
||||||
@@ -59,9 +59,8 @@ if config.decon_area then
|
|||||||
print_to_players(true, {
|
print_to_players(true, {
|
||||||
"deconlog.decon",
|
"deconlog.decon",
|
||||||
player.name,
|
player.name,
|
||||||
e.surface.localised_name,
|
pos_to_gps_string(e.area.left_top, e.surface.name),
|
||||||
pos_to_gps_string(e.area.left_top),
|
pos_to_gps_string(e.area.right_bottom, e.surface.name),
|
||||||
pos_to_gps_string(e.area.right_bottom),
|
|
||||||
format_number(#items, false),
|
format_number(#items, false),
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user