Witam ot?? pomo?e mi kto?, bo chce ?e jak wyjdziemy z strefy DM zabierze nam bro?, pom?g?by kto?>?
kod
[lua]local area=createRadarArea(-123.19,1653.11, 520, 450, 450, 0, 0, 40)
--2918.59,-896.90
setRadarAreaFlashing(area, true)
local strefa = createColRectangle(-123.19,1653.11, 520, 450)
local strefa = createColCuboid(758.02,8.2,999.70, 5.5, 5.5, 3) -- Siłownia
setElementDimension(strefa, 31)
addEventHandler("onColShapeHit", resourceRoot,
function(plr,dim)
if (getElementType(plr) == "player") then
if dim then
if getElementDimension(plr)==0 then
if getElementInterior(plr) == 0 then
setElementData(plr, "strefadm", true)
exports["es-komunikaty"]:komunikat("Wchodzisz do strefy DM.", plr)
if getElementData(plr, "kajdanki") or getElementData(plr, "delikwent") then
return
end
if not isControlEnabled(plr, "enter_exit") and isPedInVehicle(plr) then
return
end
toggleControl(plr, "fire", true)
toggleControl(plr, "aim_weapon", true)
end
end
end
end
end
)
addEventHandler("onColShapeLeave", resourceRoot,
function(plr,dim)
if (getElementType(plr) == "player") then
if dim then
if getElementData(plr,"Policja:sluzba") then
setElementData(plr, "strefadm&qu... |