function barier(plr)
if getElementModel(plr) ~= 280 then return end
if getPedOccupiedVehicle(plr) then return end
local x,y,z = getElementPosition(plr)
local rx,ry,rz = getElementRotation(plr)
local barierka = createObject(3526, x,y,z-0.5)
setElementData(barierka, "isBarierka", true)
setElementRotation(barierka, rx, ry, rz+90)
setElementFrozen(barierka, true)
setElementData(barierka, "isBarierka2", getPlayerName(plr))
end
addCommandHandler("ep",barier )