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

Wysłany: 2014-08-10, 10:34


PolskiSebek12

Programista






Wiek: 28
Na forum: 4347 dni
Posty: 343
Nick w MP: CrosRoad95

Piwa: 3883

Respekt: 288,8
Respekt: 288,8Respekt: 288,8Respekt: 288,8

Ostrzeżeń: 100%
Witam
jak zrobi? ?e maj?c tabele:

tabela =
{5,5,5,10,10,10},
{8,5,5,10,10,10},
{5,8,5,10,10,10},
}

pierwsze 3 warto?ci to miejca markera a 4,5 i 6 kolumna to miejsca do kt?rych te markery teleportuj? ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-10, 14:19


monio







Wiek: 30
Na forum: 4887 dni
Posty: 319
Nick w MP: Monio99

Piwa: 3565

Respekt: 120,5
Respekt: 120,5

ustaw sobie ?e pierwsze 3 to markery a drugie 3 to teleporty:

tabela =
{ x1 = 5, x2= 5, x3 x 5, xx1 = 10, xx2 = 10, xx3 = 10}
}

no i

marker = createMarker ( x1, x2, x3, "cylinder", 1, 20, 100, 21)

teleport

setElementPosition (...., xx1, xx2, xx3)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-08-10, 14:24


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

monio, a co je?li b?dzie wi?cej element?w? Pomy?l.

markery = {
{ 00101}
}


for _,v in ipairs markery ) do
    marker createMarker v[1], v[2], v[3], "cylinder"1.5255255255 )
    setElementData marker"x"v[4] )
    setElementData marker"y"v[5] )
    setElementData marker"z"v[6] )
end


addEventHandler "onMarkerHit"root, function(element)
    if getElementData source"x" ) or getElementData source"y" ) or getElementData source"z" then
        setElementPosition elementgetElementData source"x" ), getElementData source"y" ), getElementData source"z" ) )
    end
end)


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: markery :: tabelki
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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