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
-- 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
Wysłany: 2015-07-10, 13:30
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
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
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
b?ad
skrypt\s.lua:24: unexpected symbol near ")"
Podpis
Modeler Corporation Sp. Z.O.O
Wysłany: 2015-07-10, 13:59
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
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
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
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
Wysłany: 2015-07-10, 14:20
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
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
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
Jak wjedzam w marker jest faceCamera lecz nie tepa faceCamera zostaje i miga
Edit: b??d?w nie ma
Podpis
Modeler Corporation Sp. Z.O.O
Wysłany: 2015-07-10, 15:45
#404
Wiek: 26 Na forum: 4771 dni Posty: 1438
Piwa : 2512
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 )
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
DestroY , nadal to samo
Podpis
Modeler Corporation Sp. Z.O.O
Wysłany: 2015-07-10, 19:03
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
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
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
"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 )
Podpis
Modeler Corporation Sp. Z.O.O
Wysłany: 2015-07-10, 19:54
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
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
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
"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
Wysłany: 2015-07-10, 20:10
Jurandovsky
Kurdebele
Wiek: 17 Na forum: 4838 dni Posty: 915
Piwa : 2697
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
Wysłany: 2015-07-11, 01:52
#404
Wiek: 26 Na forum: 4771 dni Posty: 1438
Piwa : 2512
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 )
Tagi: facecamera :: nie :: działa
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: