Wysłany: 2017-08-03, 10:41
Flash.
---
Wiek: 26 Na forum: 3255 dni Posty: 93
Nick w MP: ------
Piwa : 2
Witajcie. Ot?? mam taki problem ?e ten kod mi nie dzia?a, kod na tp do Interioru.
http://wklej.org/id/3228578/
Je?li jest co? ?le prosz? o poprawk? i mete.
Wysłany: 2017-08-03, 11:17
TheKacperShow
Wiek: 24 Na forum: 3235 dni Posty: 10
Nick w MP: LeqiT
Piwa : 1
co? w debugscript wychodzi ?
Wysłany: 2017-08-03, 11:19
Flash.
---
Wiek: 26 Na forum: 3255 dni Posty: 93
Nick w MP: ------
Piwa : 2
Skrypt znalaz?em ale nie dzia?a. Ja zielony w LUA xD
Wysłany: 2017-08-03, 11:21
TheKacperShow
Wiek: 24 Na forum: 3235 dni Posty: 10
Nick w MP: LeqiT
Piwa : 1
masz do tego plik meta.xml ?
Wysłany: 2017-08-03, 11:25
TheKacperShow
Wiek: 24 Na forum: 3235 dni Posty: 10
Nick w MP: LeqiT
Piwa : 1
NyAngel , Polecam to usun??
Pomagamy tylko na forum
[ Dodano : 2017-08-03, 11:27 ]
stw?rz sobie folder o nazwie
interior
i do tego plik meta.xml
tam wpisz to:
Kod:
<meta>
<script src="interior.lua"/>
</meta>
i stw?rz jeszcze w tym folderze plik
interior.lua
a w nim wpisz to:
Kod: wejscie1 = createMarker ( -1605.47, 711.93, 13.87, "arrow", 1.2, 255, 255, 0, 255 ) --tworzymy wejscie
wyjscie1 = createMarker ( -230.58, 1172.47, 57.26, "arrow", 1.2, 255, 255, 0, 255 ) --tworzymy wyjscie
function onstart()
setElementInterior ( wyjscie0, 1 ) --interior, w ktorym jest wyjscie
end
addEventHandler ( "onResourceStart", getRootElement(), onstart )
function warptopoli( hitElement, matchingDimension )
if getElementType(hitElement) == "player" then
if not isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement, -230.58, 1172.47, 57.26) --kiedy wejdziemy w marker wejscia, ma nas teleportowac do miejsca, ktore jest tutaj podane
setElementInterior ( hitElement, 1 ) --te miejsce jest w interiorze 1 (w tym przypadku)
end
end
end
addEventHandler( "onMarkerHit", wejscie1, warptopoli)
function warptokgp(source)
setElementInterior ( source, 1 ) --te miejsce jest w interiorze 1 (w tym przypadku)
setElementPosition ( source, -1605.47, 711.93, 13.87) --kiedy wejdziemy w marker wyjscia, ma nas teleportowac do miejsca, ktore jest tutaj podane
end
addEventHandler( "onMarkerHit", wyjscie0, warptokgp)
Wysłany: 2017-08-03, 12:09
Flash.
---
Wiek: 26 Na forum: 3255 dni Posty: 93
Nick w MP: ------
Piwa : 2
Prosz? o spok?j heh.
Co do skryptu to nie dzia?a. Jest meta, jest plik .lua a w nim kod.
wejscie1 = createMarker ( 2495.36499 - 1691.13867 14.76563 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
wyjscie1 = createMarker ( 2412.23584 - 1685.91150 54.14884 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
function onstart ()
setElementInterior ( wyjscie0 , 1 )
end
addEventHandler ( "onResourceStart" , getRootElement (), onstart )
function warptopoli ( hitElement , matchingDimension )
if getElementType ( hitElement ) == "player" then
if not isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement , 2412.32861 - 1688.58911 54.14884 )
setElementInterior ( hitElement , 1 )
end
end
end
addEventHandler ( "onMarkerHit" , wejscie1 , warptopoli )
function warptokgp ( source )
setElementInterior ( source , 1 )
setElementPosition ( source , 2495.31958 - 1687.92957 13.51638 )
end
addEventHandler ( "onMarkerHit" , wyjscie0 , warptokgp )
Wysłany: 2017-08-03, 12:11
TheKacperShow
Wiek: 24 Na forum: 3235 dni Posty: 10
Nick w MP: LeqiT
Piwa : 1
tete ustawi?e? takj? jak? ci poda?em czy mia?e? ju? inn??
zaloguj si? na serwerze i wpisz
/debugscript 3
i to co ci wyjdzie na czerwono na dole
napisz tutaj
Wysłany: 2017-08-03, 12:13
NyAngel
Wiek: 22 Na forum: 3950 dni Posty: 128
Nick w MP: NyAngel
Piwa : 556
wejscie1 = createMarker ( 2495.36499 ,- 1691.13867 , 14.76563 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
wyjscie1 = createMarker ( 2412.23584 , - 1685.91150 , 54.14884 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
function onstart ()
setElementInterior ( wyjscie0 , 1 )
end
addEventHandler ( "onResourceStart" , getRootElement (), onstart )
function warptopoli ( hitElement , matchingDimension )
if getElementType ( hitElement ) == "player" then
if not isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement , 2412.32861 ,- 1688.58911 , 54.14884 )
setElementInterior ( hitElement , 1 )
end
end
end
addEventHandler ( "onMarkerHit" , wejscie1 , warptopoli )
function warptokgp ( source )
setElementInterior ( source , 1 )
setElementPosition ( source , 2495.31958 ,- 1687.92957 , 13.51638 )
end
addEventHandler ( "onMarkerHit" , wyjscie0 , warptokgp )
Wysłany: 2017-08-03, 12:27
NyAngel
Wiek: 22 Na forum: 3950 dni Posty: 128
Nick w MP: NyAngel
Piwa : 556
createBlip ( 2495.36499 ,- 1691.13867 , 14.76563 , 0 , 2 , 0 , 255 , 0 , 255 , 0 , 99999 )
wejscie1 = createMarker ( 2495.36499 ,- 1691.13867 , 14.76563 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
wyjscie1 = createMarker ( 2412.23584 , - 1685.91150 , 54.14884 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
function onstart ()
setElementInterior ( wyjscie1 , 1 )
end
addEventHandler ( "onResourceStart" , getRootElement (), onstart )
function warptopoli ( hitElement , matchingDimension )
if getElementType ( hitElement ) == "player" then
if not isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement , 289.7870 ,- 35.7190 , 1003.5160 )
setElementInterior ( hitElement , 1 )
end
end
end
addEventHandler ( "onMarkerHit" , wejscie1 , warptopoli )
function warptokgp ( source )
setElementInterior ( source , 1 )
setElementPosition ( source , 2495.31958 ,- 1687.92957 , 13.51638 )
end
addEventHandler ( "onMarkerHit" , wyjscie1 , warptokgp )
dzia?a w 100% , doda?em blip bo chcia??m sprawdzi? gdzie to ma by?.
[ Dodano : 2017-08-03, 12:33 ]
createBlip ( 2495.36499 ,- 1691.13867 , 14.76563 , 0 , 2 , 0 , 255 , 0 , 255 , 0 , 99999 )
wejscie1 = createMarker ( 2495.36499 ,- 1691.13867 , 14.76563 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
wyjscie1 = createMarker ( 285.46619 , - 40.92170 , 1001.51563 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
function onstart ()
setElementInterior ( wyjscie1 , 1 )
end
addEventHandler ( "onResourceStart" , getRootElement (), onstart )
function warptopoli ( hitElement , matchingDimension )
if getElementType ( hitElement ) == "player" then
if not isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement , 289.7870 ,- 35.7190 , 1003.5160 )
setElementInterior ( hitElement , 1 )
end
end
end
addEventHandler ( "onMarkerHit" , wejscie1 , warptopoli )
function warptokgp ( source )
setElementInterior ( source , 0 )
setElementPosition ( source , 2493.54688 , - 1684.58789 , 13.51007 )
end
addEventHandler ( "onMarkerHit" , wyjscie1 , warptokgp )
sorry wtedy nei da?em wyj?cia
Wysłany: 2017-08-03, 12:50
venzikk
LUA, MODELER
Wiek: 24 Na forum: 3823 dni Posty: 235
Nick w MP: VenZ
Piwa : 3158
Masz tu np. pod gui
Server:
addEvent ( "tp1" , true )
addEventHandler ( "tp1" , root , function()
setElementPosition ( source , x , y , z )
setElementInterior ( source , ID )
setElementDimension ( source , ID )
end
)
addEvent ( "tp2" , true )
addEventHandler ( "tp2" , root , function()
setElementPosition ( source , x , y , z )
setElementInterior ( source , ID )
setElementDimension ( source , ID )
end
)
C
Marker = {}
Marker [ 1 ] = createMarker ( x , y , z , "cylinder" , 1 , 255 , 185 , 0 , 0 )
Marker [ 2 ] = createMarker ( x , y , z , "cylinder" , 1 , 255 , 185 , 0 , 0 )
setElementInterior ( Marker [ 1 ], 10 )
setElementDimension ( Marker [ 1 ], 1 )
function tp1c ()
if source ~= GUIEditor . button [ 1 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], false )
showCursor ( false )
triggerServerEvent ( "tp1" , localPlayer )
end
addEventHandler ( "onClientGUIClick" , root , tp1c )
function tp2c ()
if source ~= GUIEditor . button [ 2 ] then return end
guiSetVisible ( GUIEditor . window [ 1 ], false )
showCursor ( false )
triggerServerEvent ( "tp2" , localPlayer )
end
addEventHandler ( "onClientGUIClick" , root , tp2c )
Podpis
Hej
[you]
,Tak ty! Pomogłem ci? zostaw
Pomagam w miarę możliwości
Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Wysłany: 2017-08-03, 14:37
Flash.
---
Wiek: 26 Na forum: 3255 dni Posty: 93
Nick w MP: ------
Piwa : 2
Graczu NyAngel - Dzia?a Jedynie chc? si? spyta? jak doda? interior do domku z map edytora?
Wysłany: 2017-08-03, 14:44
venzikk
LUA, MODELER
Wiek: 24 Na forum: 3823 dni Posty: 235
Nick w MP: VenZ
Piwa : 3158
Flash. ,
Jak zapisujesz map? w MAPEDYTOR np. "parking-LS"
To odpalasz serwer i wpisujesz "start parking-LS"
Podpis
Hej
[you]
,Tak ty! Pomogłem ci? zostaw
Pomagam w miarę możliwości
Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Wysłany: 2017-08-03, 14:50
NyAngel
Wiek: 22 Na forum: 3950 dni Posty: 128
Nick w MP: NyAngel
Piwa : 556
Flash,b?dziesz musia? wpisa? kordy... czyli, od wej?cia,?e wchodzi i teleportuje ci? i kordy musisz poda? gdzie ma tepn?? i potem jak chcesz wyj?? to te? kordy gdzie wyj?cie i jak si? wejdzie to gdzie ma tepn??
Wysłany: 2017-08-03, 15:24
Flash.
---
Wiek: 26 Na forum: 3255 dni Posty: 93
Nick w MP: ------
Piwa : 2
To mo?e ja potem dodam tu kordy i ty mi zrobisz kod z nimi? Bo jak ja robi? to nie wychodzi.
[ Dodano : 2017-08-03, 16:16 ]
Wej?cie do interioru = 1727.00061 -1636.77026 20.21726
Miejsce w kt?re tepa po wej?ciu w marker wej?cia = 2412.19116 -1689.25647 54.14884
Wyj?cie z interioru = 2412.38965 -1685.49182 54.14884
Miejsce gdzie tepa po wej?ciu w markej wyj?cia = 1727.21838 -1634.17554 20.21600
Wysłany: 2017-08-03, 19:59
venzikk
LUA, MODELER
Wiek: 24 Na forum: 3823 dni Posty: 235
Nick w MP: VenZ
Piwa : 3158
createBlip ( 2495.36499 ,- 1691.13867 , 14.76563 , 0 , 2 , 0 , 255 , 0 , 255 , 0 , 99999 )
wejscie1 = createMarker ( 1727.00061 , - 1636.77026 , 20.21726 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
wyjscie1 = createMarker ( 2412.38965 , - 1685.49182 , 54.14884 , "arrow" , 1.2 , 255 , 255 , 0 , 255 )
function onstart ()
setElementInterior ( wyjscie1 , 1 )
end
addEventHandler ( "onResourceStart" , getRootElement (), onstart )
function warptopoli ( hitElement , matchingDimension )
if getElementType ( hitElement ) == "player" then
if not isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement , 2412.19116 , - 1689.25647 , 54.14884 )
setElementInterior ( hitElement , 1 )
end
end
end
addEventHandler ( "onMarkerHit" , wejscie1 , warptopoli )
function warptokgp ( source )
setElementInterior ( source , 0 )
setElementPosition ( source , 1727.21838 , - 1634.17554 , 20.21600 )
end
addEventHandler ( "onMarkerHit" , wyjscie1 , warptokgp )
Podpis
Hej
[you]
,Tak ty! Pomogłem ci? zostaw
Pomagam w miarę możliwości
Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Tagi: niedziałający :: kod :: teleport :: interioru.
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: