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: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

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: 4980 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: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

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: 4980 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: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

Respekt: 200
Respekt: 200Respekt: 200

local wejscie = createMarker(-2197.86157, 1036.28015, 80.00781-1, "cylinder", 5, 255, 255, 128, 100)
setElementDimension(wejscie, 0)
setElementInterior(wejscie, 0)

local wyjscie = createMarker(-2197.37646, 1044.33691, -13.199999809265, "cylinder", 5, 255, 255, 128, 100)
setElementDimension(wyjscie, 1)
setElementInterior(wyjscie, 0)

addEventHandler("onMarkerHit", wejscie, function(el,md)
if getElementType(el) == "player" then 
auto = getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (el, true)
                setTimer(function()
                fadeCamera(el,true)
                setElementFrozen (el, false)
                setElementDimension(el, 1)
        setElementInterior(el, 0)
        setElementPosition(el, -2197.36426, 1053.25745, -12.29)
                setElementRotation(el, 0, 0, 360)
                end, 1500, 1)
    end
end)

addEventHandler("onMarkerHit", wyjscie, function(el,md)
if getElementType(el) == "player" then 
auto = getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (el, true)
                setTimer(function()
                fadeCamera(el,true)
                setElementFrozen (el, false)
                setElementDimension(el, 0)
        setElementInterior(el, 0)
            setElementPosition(el, -2198.14990, 1026.99451, 79.75)
                setElementRotation(el, 0, 0, 180)
                end, 1500, 1)
        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: 4980 dni
Posty: 915

Piwa: 2697

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


local wejscie = createMarker(-2197.86157, 1036.28015, 80.00781-1, "cylinder", 5, 255, 255, 128, 100)
setElementDimension(wejscie, 0)
setElementInterior(wejscie, 0)

local wyjscie = createMarker(-2197.37646, 1044.33691, -13.199999809265, "cylinder", 5, 255, 255, 128, 100)
setElementDimension(wyjscie, 1)
setElementInterior(wyjscie, 0)

addEventHandler("onMarkerHit", wejscie, function(el,md)
if getElementType(el) == "player" then 
auto = getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (el, true)
                setTimer(function()
                fadeCamera(el,true)
                setElementFrozen (el, false)
                setElementDimension(el, 1)
        setElementInterior(el, 0)
        setElementPosition(el, -2197.36426, 1053.25745, -12.29)
                setElementRotation(el, 0, 0, 360)
                end, 1500, 1)
end
    end
end)

addEventHandler("onMarkerHit", wyjscie, function(el,md)
if getElementType(el) == "player" then 
auto = getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (el, true)
                setTimer(function()
                fadeCamera(el,true)
                setElementFrozen (el, false)
                setElementDimension(el, 0)
        setElementInterior(el, 0)
            setElementPosition(el, -2198.14990, 1026.99451, 79.75)
                setElementRotation(el, 0, 0, 180)
                end, 1500, 1)
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: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

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: 27
Na forum: 4913 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.86157, 1036.28015, 80.00781-1, "cylinder", 5, 255, 255, 128, 100)
setElementDimension(wejscie, 0)
setElementInterior(wejscie, 0)

local wyjscie = createMarker(-2197.37646, 1044.33691, -13.199999809265, "cylinder", 5, 255, 255, 128, 100)
setElementDimension(wyjscie, 1)
setElementInterior(wyjscie, 0)

addEventHandler("onMarkerHit", wejscie, function(el,md)
if getElementType(el) == "player" then 
auto = getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (el, true)
gracz = el
                setTimer(function()
                fadeCamera(gracz,true)
                setElementFrozen (gracz, false)
                setElementDimension(gracz, 1)
        setElementInterior(gracz, 0)
        setElementPosition(gracz, -2197.36426, 1053.25745, -12.29)
                setElementRotation(gracz, 0, 0, 360)
                end, 1500, 1)
end
    end
end)

addEventHandler("onMarkerHit", wyjscie, function(el,md)
if getElementType(el) == "player" then 
auto = getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (el, true)
gracz = el
                setTimer(function()
                fadeCamera(gracz,true)
                setElementFrozen (gracz, false)
                setElementDimension(gracz, 0)
        setElementInterior(gracz, 0)
            setElementPosition(gracz, -2198.14990, 1026.99451, 79.75)
                setElementRotation(gracz, 0, 0, 180)
                end, 1500, 1)
end
        end
end)


Postaw piwo autorowi tego posta
 

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


THEGizmo

Modeler/Uczeń Lua






Wiek: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

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: 4980 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: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

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: 4980 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: 28
Na forum: 4282 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3091

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: 4980 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: 27
Na forum: 4913 dni
Posty: 1438

Piwa: 2512

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

Ostrzeżeń: 60%

ocal wejscie = createMarker(-2197.86157, 1036.28015, 80.00781-1, "cylinder", 5, 255, 255, 128, 100)
setElementDimension(wejscie, 0)
setElementInterior(wejscie, 0)

local wyjscie = createMarker(-2197.37646, 1044.33691, -13.199999809265, "cylinder", 5, 255, 255, 128, 100)
setElementDimension(wyjscie, 1)
setElementInterior(wyjscie, 0)

addEventHandler("onMarkerHit", wejscie, function(el,md)
if getElementType(el) == "player" then 
auto = getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (el, true)
gracz = el
                setTimer(function()
                fadeCamera(gracz,true)
                setElementFrozen (auto, false)
                setElementDimension(auto , 1)
        setElementInterior(auto , 0)
        setElementPosition(auto , -2197.36426, 1053.25745, -12.29)
                setElementRotation(auto , 0, 0, 360)
                end, 1500, 1)
end
    end
end)

addEventHandler("onMarkerHit", wyjscie, function(el,md)
if getElementType(el) == "player" then 
auto = getPedOccupiedVehicle(el) 
if auto then 
                fadeCamera(el,false)
                setElementFrozen (el, true)
gracz = el
                setTimer(function()
                fadeCamera(gracz,true)
                setElementFrozen (auto , false)
                setElementDimension(auto , 0)
        setElementInterior(auto , 0)
            setElementPosition(auto , -2198.14990, 1026.99451, 79.75)
                setElementRotation(auto , 0, 0, 180)
                end, 1500, 1)
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