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

Wysłany: 2015-07-10, 13:28


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

-- skrypt zrobiony --

Podpis
Modeler Corporation Sp. Z.O.O

Ostatnio zmieniony przez THEGizmo 2015-07-11, 10:00, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 13:30


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

zamiast if getElementType(el) == "vehicle" to zrob :

if getElementType(el) == "player" then
auto = getPedOccupiedVehicle(el)
if auto then

i wtedy sprobuj.

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 13:50


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

b?ad
skrypt\s.lua:24: unexpected symbol near ")"

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 13:59


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

Daj ten zedytowany kod

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 14:01


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

local wejscie createMarker(-2197.861571036.2801580.00781-1"cylinder"5255255128100)
setElementDimension(wejscie0)
setElementInterior(wejscie0)

local wyjscie createMarker(-2197.376461044.33691, -13.199999809265"cylinder"5255255128100)
setElementDimension(wyjscie1)
setElementInterior(wyjscie0)

addEventHandler("onMarkerHit"wejscie, function(el,md)
if getElementType(el) == "player" then 
auto getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (eltrue)
                setTimer(function()
                fadeCamera(el,true)
                setElementFrozen (elfalse)
                setElementDimension(el1)
        setElementInterior(el0)
        setElementPosition(el, -2197.364261053.25745, -12.29)
                setElementRotation(el00360)
                end15001)
    end
end)

addEventHandler("onMarkerHit"wyjscie, function(el,md)
if getElementType(el) == "player" then 
auto getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (eltrue)
                setTimer(function()
                fadeCamera(el,true)
                setElementFrozen (elfalse)
                setElementDimension(el0)
        setElementInterior(el0)
            setElementPosition(el, -2198.149901026.9945179.75)
                setElementRotation(el00180)
                end15001)
        end
end)


Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 14:20


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3


local wejscie createMarker(-2197.861571036.2801580.00781-1"cylinder"5255255128100)
setElementDimension(wejscie0)
setElementInterior(wejscie0)

local wyjscie createMarker(-2197.376461044.33691, -13.199999809265"cylinder"5255255128100)
setElementDimension(wyjscie1)
setElementInterior(wyjscie0)

addEventHandler("onMarkerHit"wejscie, function(el,md)
if getElementType(el) == "player" then 
auto getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (eltrue)
                setTimer(function()
                fadeCamera(el,true)
                setElementFrozen (elfalse)
                setElementDimension(el1)
        setElementInterior(el0)
        setElementPosition(el, -2197.364261053.25745, -12.29)
                setElementRotation(el00360)
                end15001)
end
    end
end)

addEventHandler("onMarkerHit"wyjscie, function(el,md)
if getElementType(el) == "player" then 
auto getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (eltrue)
                setTimer(function()
                fadeCamera(el,true)
                setElementFrozen (elfalse)
                setElementDimension(el0)
        setElementInterior(el0)
            setElementPosition(el, -2198.149901026.9945179.75)
                setElementRotation(el00180)
                end15001)
end
        end
end)


sprobuj teraz

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 14:25


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

Jak wjedzam w marker jest faceCamera lecz nie tepa faceCamera zostaje i miga :o

Edit: b??d?w nie ma

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 15:45


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
O ile si? nie myle to znika zmienna el po u?yciu timer'a....


ocal wejscie createMarker(-2197.861571036.2801580.00781-1"cylinder"5255255128100)
setElementDimension(wejscie0)
setElementInterior(wejscie0)

local wyjscie createMarker(-2197.376461044.33691, -13.199999809265"cylinder"5255255128100)
setElementDimension(wyjscie1)
setElementInterior(wyjscie0)

addEventHandler("onMarkerHit"wejscie, function(el,md)
if getElementType(el) == "player" then 
auto getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (eltrue)
gracz el
                setTimer(function()
                fadeCamera(gracz,true)
                setElementFrozen (graczfalse)
                setElementDimension(gracz1)
        setElementInterior(gracz0)
        setElementPosition(gracz, -2197.364261053.25745, -12.29)
                setElementRotation(gracz00360)
                end15001)
end
    end
end)

addEventHandler("onMarkerHit"wyjscie, function(el,md)
if getElementType(el) == "player" then 
auto getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (eltrue)
gracz el
                setTimer(function()
                fadeCamera(gracz,true)
                setElementFrozen (graczfalse)
                setElementDimension(gracz0)
        setElementInterior(gracz0)
            setElementPosition(gracz, -2198.149901026.9945179.75)
                setElementRotation(gracz00180)
                end15001)
end
        end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 16:03


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

DestroY, nadal to samo

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 19:03


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

A co Ty chcesz tak wlasciwie osiagnac?

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 19:47


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

"Iksdekowski" napisał/a:

A co Ty chcesz tak wlasciwie osiagnac?

Widzia?e? na pylu parking ? po prostu chce z?by ekran by? czarny a potem by?o normalnie ( po podanym czasie ) :x

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 19:54


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

Mozesz pokombinowac z dxDrawRectangle, wyjdzie CI to samo

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 19:57


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

"Iksdekowski" napisał/a:

Mozesz pokombinowac z dxDrawRectangle, wyjdzie CI to samo

Wole ten spos?b kt?ry mam nie chce si? bawi? z dxDrawRectangle :/

Edit: Pomo?e kto? ?

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-10, 20:10


Jurandovsky

Kurdebele






Wiek: 17
Na forum: 4838 dni
Posty: 915

Piwa: 2697

Respekt: 955,3
Respekt: 955,3Respekt: 955,3

przegl?daj?c funkcj? fadeCamera na forum zauwa?y?em taki argument :

timeToFade: The number of seconds it should take to fade. Any number less than 1 makes the fade instant.


Czemu si? bawisz z timerami, jak mo?esz u?y? tego argumentu?

Podpis
Jedyny kontakt ze mną to PW forum

Kod:


local noobs = getElementsByTitle("player", "Programista LUA")
for k, v in ipairs(noobs) do
outputChatBox("Bez mózgu jest użytkownik o nicku: "..getPlayerName(v), root)
destroyElement(v)
end
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-11, 01:52


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%

ocal wejscie createMarker(-2197.861571036.2801580.00781-1"cylinder"5255255128100)
setElementDimension(wejscie0)
setElementInterior(wejscie0)

local wyjscie createMarker(-2197.376461044.33691, -13.199999809265"cylinder"5255255128100)
setElementDimension(wyjscie1)
setElementInterior(wyjscie0)

addEventHandler("onMarkerHit"wejscie, function(el,md)
if getElementType(el) == "player" then 
auto getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (eltrue)
gracz el
                setTimer(function()
                fadeCamera(gracz,true)
                setElementFrozen (autofalse)
                setElementDimension(auto 1)
        setElementInterior(auto 0)
        setElementPosition(auto , -2197.364261053.25745, -12.29)
                setElementRotation(auto 00360)
                end15001)
end
    end
end)

addEventHandler("onMarkerHit"wyjscie, function(el,md)
if getElementType(el) == "player" then 
auto getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (eltrue)
gracz el
                setTimer(function()
                fadeCamera(gracz,true)
                setElementFrozen (auto false)
                setElementDimension(auto 0)
        setElementInterior(auto 0)
            setElementPosition(auto , -2198.149901026.9945179.75)
                setElementRotation(auto 00180)
                end15001)
end
        end
end)


Postaw piwo autorowi tego posta
 

 
Tagi: facecamera :: nie :: działa
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » faceCamera nie działa 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