function ut(plr, cmd)
if getElementData(plr,'player:duty') == 'SAPD' then
if not getElementData(plr, "player:ut") then
outputChatBox("Dodano X", plr, 255, 255, 255, true)
--local poz = getElementPosition(source)
local x, y, z = getElementPosition (plr)
local blip = createBlip(x, y, z, 47, 2, 0, 0, 0, 0, 0, 275, source)
setElementData(plr, "player:ut", true)
elseif getElementData(plr, "player:ut") then
setElementData(plr, "player:ut", false)
for blip in ipairs(getElementData(plr, "player:ut")) do
destroyElement(blip)
--destroyElement(source)
outputChatBox("Usunieto X", plr, 255, 255, 255, true)
end
end
end
end
addCommandHandler("ut", ut)