Wysłany: 2019-09-17, 17:26
krystek77
Wiek: 27 Na forum: 4031 dni Posty: 135
Nick w MP: Krystek
Piwa : 176
Witam mam problem z skryptem wyciagnelem go z gm i nie chce dziala?.
Prosz? o pomoc z g?ry dzi?kuj?!
wejscie = createMarker ( 536.12683 , - 1810.75488 , 6.571 - 0.70 , "cylinder" , 1 , 255 , 255 , 255 , 0 )
setElementData ( wejscie , "marker1" , true )
addEventHandler ( "onMarkerHit" , wejscie , function( player , dimension )
if player and dimension then
if player . type == "player" then
if not player . inVehicle then
fadeCamera ( player , false , 1 , 0 , 0 , 0 )
Timer (function()
player . interior = 1
setTimer (function() takeAllWeapons ( player ) end , 2000 , 1 )
player : setPosition ( 531.54663 , - 1809.59167 , 6.65 )
player : setRotation ( 0 , 0 , 360 )
end , 1000 , 1 )
Timer ( fadeCamera , 1000 , 1 , player , true , 1 )
end
end
end
end )
Wysłany: 2019-09-17, 17:38
Pawel5321
Szkrypter
Wiek: 36 Na forum: 3809 dni Posty: 237
Nick w MP: Pawell
Piwa : 2315
wejscie = createMarker ( 536.12683 , - 1810.75488 , 6.571 - 0.70 , "cylinder" , 1 , 255 , 255 , 255 , 0 )
setElementData ( wejscie , "marker1" , true )
addEventHandler ( "onMarkerHit" , wejscie , function( player , dimension )
if player and dimension then
if getElementType ( player ) == "player" then
if not isPedInVehicle ( player ) then
fadeCamera ( player , false , 1 , 0 , 0 , 0 )
setTimer (function()
setElementInterior ( player , 1 )
setTimer (function() takeAllWeapons ( player ) end , 2000 , 1 )
setElementPosition ( player , 531.54663 , - 1809.59167 , 6.65 )
setElementRotation ( player , 0 , 0 , 360 )
end , 1000 , 1 )
setTimer ( fadeCamera , 1000 , 1 , player , true , 1 )
end
end
end
end )
Ostatnio zmieniony przez Pawel5321 2019-09-17, 19:34, w całości zmieniany 1 raz
Więcej szczegółów
Wystawiono 1 piw(a):krystek77
Wysłany: 2019-09-17, 18:32
krystek77
Wiek: 27 Na forum: 4031 dni Posty: 135
Nick w MP: Krystek
Piwa : 176
setElementInterior ( player ) = 1
Problem wyszed? teraz z tym wy?ej co poda?em ale usun??em to i dzia?a, pytanie czy b?dzie dobrze?
Wysłany: 2019-09-17, 19:34
Pawel5321
Szkrypter
Wiek: 36 Na forum: 3809 dni Posty: 237
Nick w MP: Pawell
Piwa : 2315
setElementInterior(player,1)
Tagi: skrypt :: nie :: dziala
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: