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)
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...
Witam, mam pytanie
robie skrypt kt?ry robi bramy i jest marker gdy osoba w niego wejdzie sprawdza czy jest w bazie danych jest wszystko ok, tylko jest jeden problem jak zrobic aby po wyjsciu z markeru wykona?o si? moveobject. tylko zeby to nie by? timer.
kod: