Wysłany: 2016-02-12, 22:08
Patrix100
Amator LUA.
Wiek: 26 Na forum: 3887 dni Posty: 182
Nick w MP: .:Patrix:.
Piwa : 952
Witam, mam taki kod i marker sie nie pokazuje i wgl nie dziala to ;/
wejscie1 = createMarker ( 1771.34 , - 1383.62 , 16.23 , "arrow" , 1.2 , 255 , 255 , 0 , 255 ) -- tworzymy wejscie
wyjscie1 = createMarker ( 1782.36 , - 1355.73 , 966.05 , "arrow" , 1.2 , 255 , 255 , 0 , 255 ) -- tworzymy wyjscie
function onstart ()
setElementDimension ( wyjscie200 , 200 ) -- interior , w ktorym jest wyjscie
end
addEventHandler ( "onResourceStart" , getRootElement (), onstart )
function warptosm ( hitElement , matchingDimension )
if getElementType ( hitElement ) == "player" then
if not isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement , 1782.36 , - 1355.73 , 966.05 ) -- kiedy wejdziemy w marker wejscia , ma nas teleportowac do miejsca , ktore jest tutaj podane
setElementDimension ( hitElement , 0 ) -- te miejsce jest w interiorze 1 ( w tym przypadku )
end
end
end
addEventHandler ( "onMarkerHit" , wejscie1 , warptosm )
function warptosm ( source )
setElementDimension ( source , 0 ) -- te miejsce jest w interiorze 1 ( w tym przypadku )
setElementPosition ( source , 1771.34 , - 1383.62 , 16.23 ) -- kiedy wejdziemy w marker wyjscia , ma nas teleportowac do miejsca , ktore jest tutaj podane
addEventHandler ( "onMarkerHit" , wyjscie0 , warptosm )
end
Wysłany: 2016-02-12, 22:13
Emm
***** ***
Wiek: 32 Na forum: 3880 dni Posty: 3191
Nick w MP: Emm
Piwa : 6162
Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
setElementDimension ( wyjscie200 , 200 ) -- interior , w ktorym jest wyjscie
Gdzie w zmiennych masz "wyjscie200"? Ja widz? tylko "wyjscie1" Zmie? to na "wyjscie1" i powinno fruwa?
[ Dodano : 2016-02-12, 22:15 ]
To samo tu:
addEventHandler ( "onMarkerHit" , wyjscie0 , warptosm )
Nie ma zmiennej "wyjscie0", tylko "wyjscie1". Chyba, ?e masz to, ale nie zamie?ci?e? tego w kodzie na forum.
[ Dodano : 2016-02-12, 22:16 ]
?apaj dzia?aj?cy kod, kilka poprawek doda?em:
wejscie1 = createMarker ( 1771.34 , - 1383.62 , 16.23 , "arrow" , 1.2 , 255 , 255 , 0 , 255 ) -- tworzymy wejscie
wyjscie1 = createMarker ( 1782.36 , - 1355.73 , 966.05 , "arrow" , 1.2 , 255 , 255 , 0 , 255 ) -- tworzymy wyjscie
setElementDimension ( wyjscie200 , 200 ) -- interior , w ktorym jest wyjscie
function warptosm ( hitElement , matchingDimension )
if getElementType ( hitElement ) == "player" then
if not isPedInVehicle ( hitElement ) then
setElementPosition ( hitElement , 1782.36 , - 1355.73 , 966.05 ) -- kiedy wejdziemy w marker wejscia , ma nas teleportowac do miejsca , ktore jest tutaj podane
setElementDimension ( hitElement , 0 ) -- te miejsce jest w interiorze 1 ( w tym przypadku )
end
end
end
addEventHandler ( "onMarkerHit" , wejscie1 , warptosm )
function warptosmw ( source )
setElementDimension ( source , 0 ) -- te miejsce jest w interiorze 1 ( w tym przypadku )
setElementPosition ( source , 1771.34 , - 1383.62 , 16.23 ) -- kiedy wejdziemy w marker wyjscia , ma nas teleportowac do miejsca , ktore jest tutaj podane
end
addEventHandler ( "onMarkerHit" , wyjscie1 , warptosmw )
Podpis
Użytkownik : 20.10.2015r
GTAO Member : 06.03.2016r
Support-Team : 20.01.2016r
Moderator : 30.03.2016r
Mod-Team : 08.10.2016r
Vice Admin : 04.05.2018r
Administrator : 03.05.2022r
[you]
! Koniecznie zapoznaj się z
regulaminem forum .
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również
regulaminy działów , w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez
Administrację , przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w
tym dziale .
Najważniejsze informacje od
Administracji możesz przeczytać
tutaj oraz
tutaj .
Tagi: dimension
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: