Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2019-03-05, 20:39


ADISEQ

Uczeń Lua






Wiek: 21
Na forum: 2953 dni
Posty: 130
Nick w MP: ADISEQ

Piwa: 18

Respekt: 50

Siemano mam ma?y problem.
Nie pojawiaj? si? markery do teleportu. Oto kod:

InteriorEnter = createMarker (1172.3, -1325.4, 14.39, "arrow", 1, 0, 153, 255, 90)
InteriorExit = createMarker (1169.09, -1325.4, 14.5, "arrow", 1, 0, 153, 255, 90)
    setElementDimension(InteriorExit, 1)

addEventHandler("onMarkerHit", InteriorEnter, function(plr)
    if isPedInVehicle(plr) then return end
            setElementDimension(plr, 1)
                setElementPosition(plr, 1167.14, -1325.05, 15.47)
                    exports.notifications:showBox (plr, "info","Wszed?e? do szapitalu.")
                            outputChatBox("Wszed?e? do szapitalu.", plr, 255, 255, 255, true)
end)

addEventHandler("onMarkerHit", InteriorExit, function(plr)
    if isPedInVehicle(plr) then return end
        setElementInterior(plr, 0)
            setElementDimension(plr, 0)
                setElementPosition(plr, 1174.44, -1325.59, 14.78)
                    exports.notifications:showBox (plr, "info","Wyszed?e? ze szpitalu.")
                        outputChatBox("Wyszed?e? ze szapitalu.", plr, 255, 255, 255, true)
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-03-05, 21:29


Kuks*







Wiek: 15
Na forum: 3171 dni
Posty: 246
Nick w MP: Kuks*

Piwa: 2209

Respekt: 115,8
Respekt: 115,8

ADISEQ, Daj wy?ej te markery, bo mo?liwe, ?e s? za nisko.

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
ADISEQ
Wysłany: 2019-03-05, 21:31


ADISEQ

Uczeń Lua






Wiek: 21
Na forum: 2953 dni
Posty: 130
Nick w MP: ADISEQ

Piwa: 18

Respekt: 50

Kuks*, Spoko. Sprawdz?.

[ Dodano: 2019-03-05, 21:34 ]
Dzia?a. Sry za niepotrzebny temat ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-03-05, 23:08


THEGizmo

Modeler/Uczeń Lua






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

Piwa: 3091

Respekt: 200
Respekt: 200Respekt: 200

Sprawd? czy dzia?a licz? na :piwo:

local wejscie=createMarker(1172.3, -1325.4, 15.40+0.6, "arrow", 1.2, 255, 255, 0)
setElementDimension(wejscie, 0)
setElementInterior(wejscie, 0)

local wyjscie=createMarker(1169.09, -1325.4, 14.5+0.6, "arrow", 1.2, 255, 255, 0)
setElementDimension(wyjscie, 1)
setElementInterior(wyjscie, 0)

addEventHandler("onMarkerHit", wejscie, function(el,md)
    if getElementType(el) == "player" then
    if isPedInVehicle(el) then return end
        setElementDimension(el, 1)
        setElementInterior(el, 0)
        setElementPosition(el, 1167.14, -1325.05, 15.47)
        exports.notifications:showBox (el, "info","Wszed?e? do szapitalu.")
        outputChatBox("Wszed?e? do szapitalu.", el, 255, 255, 255, true)
    end
end)

addEventHandler("onMarkerHit", wyjscie, function(el,md)
    if getElementType(el) == "player" then
    if isPedInVehicle(el) then return end
        setElementDimension(el, 0)
        setElementInterior(el, 0)
        setElementPosition(el, 1174.44, -1325.59, 14.78)
        exports.notifications:showBox (el, "info","Wyszed?e? ze szpitalu.")
        outputChatBox("Wyszed?e? ze szapitalu.", el, 255, 255, 255, true)
    end
end)


je?li chcesz zeby marker by? widoczny zostaw (+0.6) i daj pozycje Z taka jaka u g?ry

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
ADISEQ
Wysłany: 2019-03-06, 09:57


ADISEQ

Uczeń Lua






Wiek: 21
Na forum: 2953 dni
Posty: 130
Nick w MP: ADISEQ

Piwa: 18

Respekt: 50

THEGizmo, Ju? wszystko dzia?a?o dzi?ki pomocy Kuksa, ale za ch?? pomocy daje wam obydw?m piwko i repk?. Do zamkni?cia.

Postaw piwo autorowi tego posta
 

 
Tagi: jest :: źle :: skryptem :: teleport?
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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