Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-12-28, 12:19


okupski2000







Wiek: 42
Na forum: 3997 dni
Posty: 21
Nick w MP: Volvo



Respekt: 50

Cze??, co mo?e by? problemem takiego bugu mapy? Dodam, ?e wcze?niej tego nie by?o. Jest jaki? skrypt czy co?, ktory to zniweluje?

https://youtu.be/TNbixGcfi6M

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-28, 12:41


Pawel5321

Szkrypter






Wiek: 36
Na forum: 3809 dni
Posty: 237
Nick w MP: Pawell

Piwa: 2315

Respekt: 240
Respekt: 240Respekt: 240

sprobuj dac to do jakiegos skryptu setOcclusionsEnabled( false )

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-12-28, 12:45


okupski2000







Wiek: 42
Na forum: 3997 dni
Posty: 21
Nick w MP: Volvo



Respekt: 50

Albo nie dzia?a, albo w z?ym miejscu doda?em


local movingGates = {}

function addFractionGate(tbl1,tbl2,time,colsize)
    local modelxyzxr,yr,zr unpack(tbl1)
    local gate createObjectmodel,x,y,z,0,0,zr or 0)
    local txtytz,txr,tyr,tzr unpack(tbl2)
    local col createColSpherexyzcolsize )
    setElementInterior(gate,tbl1[8] or 0)
    setObjectScale(gate,1.03)
    addEventHandler("onColShapeHit",col,function (hit)
        if not movingGates[gatethen
    if hit and getElementType(hit)=="player" then
        if getElementData(hit,"maFrakcje") == "PSP" then
                        movingGates[gate] = true
            if tzr then
            moveObjectgatetime,tx,ty,tz,(txr-xr),(tyr-yr),(tzr-zr) or 0)
        else
            moveObjectgatetime,tx,ty,tz,0,0,0)
        end
            setTimer(function ()
                if not tzr then
                moveObjectgatetime,x,y,z,0,0,0)
                
            else
                moveObjectgatetime,x,y,z,-(txr-xr),-(tyr-yr),-(tzr-zr))
                
            end
            setTimer(function ()
                movingGates[gate] = nil
                end,time,1)
                end,time+2500,1)
        end
    end
end
    end,false)
end
addFractionGate({3089,1718.7,-1756.9,13.9,0,0,0},{1718.7-0.8,-1756.9,13.9,0,0,0},3000,2)--    Kolo recepcji
addFractionGate({3089,1721.7,-1756.9,13.9,0,0,180},{1721.7+0.8,-1756.9,13.9,0,0,180},3000,2)--    Kolo recepcji


setOcclusionsEnabledfalse )


bm21 createMarker(-2281.71997, -168.1877135.37031-0.9"cylinder"125525525530) -- gdzie ma byc marker w ktorym bedzie sie scrollowac

d21 createObject (5856, -2280.6999511719-0.05,-164.69999694824,35.700000762939+0.5,0,0,) -- podajesz koordy obiektu
local kategoria_animacji "CRIB"
local animacja "CRIB_Use_Switch"

function od thePlayer)
    if isElementWithinMarker(thePlayerbm21then
       if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d21,5000 ,-2280.6999511719,-164.69999694824,41.200000762939 ) -- Koordy otwartych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
        end
    end
end

function zd thePlayer)
    if isElementWithinMarker(thePlayerbm21then
        if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d215000 ,-2280.6999511719-0.05,-164.69999694824,35.700000762939+0.5) -- koordy zamknietych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false) 
        end
    end
end

addCommandHandler("o"od ) -- haslo otwartych drzwi
addCommandHandler("z"zd ) -- haslo zamknietych drzwi






bm25 createMarker(-2281.90918, -159.7874135.37031-0.9"cylinder"125525525530) -- gdzie ma byc marker w ktorym bedzie sie scrollowac

d25 createObject (5856, -2280.7001953125-0.05,-156.599609375,35.700000762939+0.5,0,0,) -- podajesz koordy obiektu
local kategoria_animacji "CRIB"
local animacja "CRIB_Use_Switch"

function od thePlayer)
    if isElementWithinMarker(thePlayerbm25then
       if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d25,5000 ,-2280.7001953125,-156.599609375,41.200000762939 ) -- Koordy otwartych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
        end
    end
end

function zd thePlayer)
    if isElementWithinMarker(thePlayerbm25then
        if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d255000 ,-2280.7001953125-0.05,-156.599609375,35.700000762939+0.5) -- koordy zamknietych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false) 
        end
    end
end

addCommandHandler("o"od ) -- haslo otwartych drzwi
addCommandHandler("z"zd ) -- haslo zamknietych drzwi








bm49 createMarker(-2282.25854, -151.5884135.37031-0.9"cylinder"125525525530) -- gdzie ma byc marker w ktorym bedzie sie scrollowac

d49 createObject (5856, -2280.7001953125-0.05,-148.5,35.700000762939+0.5,0,0,) -- podajesz koordy obiektu
local kategoria_animacji "CRIB"
local animacja "CRIB_Use_Switch"

function od thePlayer)
    if isElementWithinMarker(thePlayerbm49then
       if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d49,5000 ,-2280.7001953125,-148.5,41.200000762939 ) -- Koordy otwartych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
        end
    end
end

function zd thePlayer)
    if isElementWithinMarker(thePlayerbm49then
        if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d495000 ,-2280.7001953125-0.05,-148.5,35.700000762939+0.5) -- koordy zamknietych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false) 
        end
    end
end

addCommandHandler("o"od ) -- haslo otwartych drzwi
addCommandHandler("z"zd ) -- haslo zamknietych drzwi




bm51 createMarker(-2281.95142, -143.3880335.37031-0.9"cylinder"125525525530) -- gdzie ma byc marker w ktorym bedzie sie scrollowac

d51 createObject (5856, -2280.7001953125-0.05,-140.400390625,35.700000762939+0.5,0,0,) -- podajesz koordy obiektu
local kategoria_animacji "CRIB"
local animacja "CRIB_Use_Switch"

function od thePlayer)
    if isElementWithinMarker(thePlayerbm51then
       if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d51,5000 ,-2280.7001953125,-140.400390625,41.200000762939 ) -- Koordy otwartych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
        end
    end
end

function zd thePlayer)
    if isElementWithinMarker(thePlayerbm51then
        if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d515000 ,-2280.7001953125-0.05,-140.400390625,35.700000762939+0.5) -- koordy zamknietych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false) 
        end
    end
end

addCommandHandler("o"od ) -- haslo otwartych drzwi
addCommandHandler("z"zd ) -- haslo zamknietych drzwi







bm59 createMarker(-2281.87329, -135.8574435.37031-0.9"cylinder"125525525530) -- gdzie ma byc marker w ktorym bedzie sie scrollowac

d59 createObject (5856, -2280.7001953125-0.05,-132.400390625,35.700000762939+0.5,0,0,) -- podajesz koordy obiektu
local kategoria_animacji "CRIB"
local animacja "CRIB_Use_Switch"

function od thePlayer)
    if isElementWithinMarker(thePlayerbm59then
       if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d59,5000 ,-2280.7001953125,-132.400390625,41.200000762939 ) -- Koordy otwartych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
        end
    end
end

function zd thePlayer)
    if isElementWithinMarker(thePlayerbm59then
        if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d595000 ,-2280.7001953125-0.05,-132.400390625,35.700000762939+0.5) -- koordy zamknietych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false) 
        end
    end
end

addCommandHandler("o"od ) -- haslo otwartych drzwi
addCommandHandler("z"zd ) -- haslo zamknietych drzwi


bm91 createMarker(-2282.06396, -127.6706135.37031-0.9"cylinder"125525525530) -- gdzie ma byc marker w ktorym bedzie sie scrollowac

d91 createObject (5856, -2280.7001953125-0.05,-124.400390625,35.700000762939+0.5,0,0,) -- podajesz koordy obiektu
local kategoria_animacji "CRIB"
local animacja "CRIB_Use_Switch"

function od thePlayer)
    if isElementWithinMarker(thePlayerbm91then
       if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d91,5000 ,-2280.7001953125,-124.400390625,41.200000762939 ) -- Koordy otwartych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
        end
    end
end

function zd thePlayer)
    if isElementWithinMarker(thePlayerbm91then
        if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d915000 ,-2280.7001953125-0.05,-124.400390625,35.700000762939+0.5) -- koordy zamknietych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false) 
        end
    end
end

addCommandHandler("o"od ) -- haslo otwartych drzwi
addCommandHandler("z"zd ) -- haslo zamknietych drzwi


bm92 createMarker(-2298.16113, -179.4550335.37031-0.9"cylinder"125525525530) -- gdzie ma byc marker w ktorym bedzie sie scrollowac

d92 createObject (5856, -2294.8994140625-0.05,-180.5,35.700000762939+0.5,0,0,90 ) -- podajesz koordy obiektu
local kategoria_animacji "CRIB"
local animacja "CRIB_Use_Switch"

function od thePlayer)
    if isElementWithinMarker(thePlayerbm92then
       if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d92,5000 ,-2294.8994140625,-180.5,41.200000762939 ) -- Koordy otwartych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false)
        end
    end
end

function zd thePlayer)
    if isElementWithinMarker(thePlayerbm92then
        if getElementData(thePlayer,"player:duty")=="PSP" then
            moveObject d925000 ,-2294.8994140625-0.05,-180.5,35.700000762939+0.5) -- koordy zamknietych drzwi
            setTimer(setPedAnimation1066.661thePlayer)
            setPedAnimation(thePlayer,kategoria_animacji,animacja,true,false,false) 
        end
    end
end

addCommandHandler("o"od ) -- haslo otwartych drzwi
addCommandHandler("z"zd ) -- haslo zamknietych drzwi



Postaw piwo autorowi tego posta
 

 
Tagi: dziwny :: bug :: mapy
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku