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

Wysłany: 2014-10-21, 00:09


Dixers

No-Life






Wiek: 26
Na forum: 4313 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

Witam serdecznie. Jak do tych celi:

local cele = 
{
{-1809.9414902.700323.8906};
{-1754.7737961.485223.8828};
{-1749.5458901.309424.0859};
{-1757.7266901.473024.0859};
{-1805.2479969.406723.8906};
{-1733.7578988.933816.6641};
{-1804.65731008.802423.8906};
{-1694.7106950.665523.8906};
{-1698.7167883.636523.8906};
{-1734.7786880.530624.0859};

}


Zrobi? funckcje, kt?ra po wej?cu w ten marker:

marker createMarker(-1808.0444945.052023.8906"cylinder"2255,255255)

Wylosuje nam jedn? z pozycji i pojawi si? tam marker a na mapie blip.

Za pomoc :piwo: , mo?e i nie jedno ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-21, 08:03


MeeShuffle

Programista/Grafik






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

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

addEventHandler "onMarkerHit"marker, function ( element )
    rnd math.random 1#cele )
    createMarker cele[rnd][1], cele[rnd][2], cele[rnd][3], "cylinder",1.5255255255 )
end)


Podpis

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

 
Wysłany: 2014-10-21, 15:28


Dixers

No-Life






Wiek: 26
Na forum: 4313 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

Shuffle, dzi?ki za pomoc ;)

[ Dodano: 2014-10-21, 15:38 ]
A jak zrobi?, ?e jak wejd? w cele to znika ten marker cele ? Bo pr?buje, pr?buje i nic :(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-21, 16:02


MeeShuffle

Programista/Grafik






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

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Dziwny spos?b ale dzia?a :

addEventHandler "onMarkerHit"marker, function ( element )
    rnd math.random 1#cele )
    createMarker cele[rnd][1], cele[rnd][2], cele[rnd][3], "cylinder",1.5255255255 )
    setElementData x"owner"getPlayerName(element) )
end)

addEventHandler "onMarkerHit"root, function ( element )
    if getElementData source"owner" then
        destroyElement source )
    end
end)


Podpis

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

 
Wysłany: 2014-10-21, 16:38


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4427 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3

destroyElement source )
Na lua, to si? za bardzo nie znam. Ale co? tu chyba Ci si? Shuffle pokr?ci?o..

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-21, 17:55


Dixers

No-Life






Wiek: 26
Na forum: 4313 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

Maximerr, nic mu si? nie pokr?ci?o. Dzi?ki Shuffle leci kolejne :piwo:

Postaw piwo autorowi tego posta
 

 
Tagi: cele
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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