local torby = {}
function postaw(player)
local x, y, z = getElementPosition(player)
local obiekt = createObject(2548, x, y, z - 0.6)
setElementData(obiekt, "postawiono", true)
table.insert(torby, obiekt)
setElementData(obiekt, "postawil:gracz",getPlayerName(player))
end
addCommandHandler("moto", postaw)
function podnies(player)
for i,v in pairs(torby) do
if not getElementData(v, "postawiono") then return end
if getElementData(v, "postawil:gracz")==getPlayerName(player) then
if isElement(v) then
destroyElement(v)
end
end
end
torby = {}
end
addCommandHandler("umoto", podnies)