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

Wysłany: 2017-08-28, 22:11


l3g3nd4

Mapper & Modeler






Wiek: 22
Na forum: 3399 dni
Posty: 156
Nick w MP: l3g3nd4

Piwa: 602

Respekt: 95,3

Tak jak w tytule. Da si? stworzy? teleport, kt?ry b?dzie TELEPORTOWA? w (np. koordynaty [x = 3, y = 5, z = 6, Rx = 5, Ry = 56, Rz = 85]) ?
G??wnie chodzi mi o koordyta (Rx, Ry, Rz)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 22:18


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 22:21


l3g3nd4

Mapper & Modeler






Wiek: 22
Na forum: 3399 dni
Posty: 156
Nick w MP: l3g3nd4

Piwa: 602

Respekt: 95,3

Tak wiem, ale g??wnie chodzi mi o pojazd (FIRE TRUCK), ?e jak si? WJEDZIE W MARKER to si? tepa w DOK?ADNE KOORDYNATY (X, Y, Z, Rx, Ry, Rz)

Podpis

Discord: l3g3nd4#9882
GG: 66391457
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 22:29


Szymczu

Programista bo tak






Wiek: 27
Na forum: 3434 dni
Posty: 194
Nick w MP: Szymczu

Piwa: 36

Respekt: 120
Respekt: 120


addEventHandler("onMarkerHit"marker1, function(hitElement)
    local elementType getElementType(hitElement)
    if elementType ~= "vehicle" then return end
    if getElementModel(hitElement) == 407 then
        setElementPosition(hitElement, -2027.099975585951.70000076293935.299999237061) -- ustaw koordynaty
        setElementRotation(hitElement00320) -- ustaw rotacje
    end
end)


Ostatnio zmieniony przez Szymczu 2017-08-28, 23:06, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 22:32


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

wygasi?.

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Ostatnio zmieniony przez Avenged 2017-08-28, 22:44, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 22:39


l3g3nd4

Mapper & Modeler






Wiek: 22
Na forum: 3399 dni
Posty: 156
Nick w MP: l3g3nd4

Piwa: 602

Respekt: 95,3

Szymczu
Tw?j "skrypt" mi co? nie chce dzia?a?, marker si? nie tworzy :| itd.

marker1 createMarker(467.39999389648722.299987792974.4000000953674"cylinder"2136123118250)

addEventHandler"onMarkerHit"marker1, function(hitElement)
    if hitElement ~= "vehicle" then return end
    if getElementID(hitElement) == 407 then
        setElementPosition(hitElement, -2027.099975585951.70000076293935.299999237061) -- ustaw koordynaty
        setElementRotation(hitElement00320) -- ustaw rotacje
    end
end)



BarteQ03
Przeczytaj posty wy?ej, p??niej si? wypowiedz

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 22:43


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

l3g3nd4, sorrki nie zajarzy?em o co chodzi :P . A co do kodu szymczu robisz to po stronie clienta/serwera?

Jakie? b??dy db3?

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 22:45


l3g3nd4

Mapper & Modeler






Wiek: 22
Na forum: 3399 dni
Posty: 156
Nick w MP: l3g3nd4

Piwa: 602

Respekt: 95,3

BarteQ
Robi? to po stronie CLIENTA. B??d?w w DB3 nie ma :|
niewiem o co chodzi.

META
<meta>
    <info type="map" version="1.0.0"></info>
    <map src="TEST.map" dimension="0"></map>
    <settings>
        <setting name="#maxplayers" value="[ 128 ]"></setting>
        <setting name="#useLODs" value="[ false ]"></setting>
        <setting name="#gamespeed" value="[ 1 ]"></setting>
        <setting name="#minplayers" value="[ 0 ]"></setting>
        <setting name="#gravity" value="[ 0.008 ]"></setting>
        <setting name="#waveheight" value="[ 0 ]"></setting>
        <setting name="#locked_time" value="[ false ]"></setting>
        <setting name="#weather" value="[ 0 ]"></setting>
        <setting name="#time" value="12:0"></setting>
    </settings>
    <script src="mapEditorScriptingExtension_s.lua" type="server"></script>
    <script src="mapEditorScriptingExtension_c.lua" type="client" validate="false"></script>
    <scripr src="test.lua" type="client" />
</meta>


Sam "SKRYPT"
local wyjscie createMarker(469.39999389648719.400024414064.3000001907349"cylinder"2136123118250)

addEventHandler"onMarkerHit"wyjscie, function(hitElement)
    if hitElement ~= "vehicle" then return end
    if getElementID(hitElement) == 407 then
        setElementPosition(hitElement, -2027.099975585951.70000076293935.299999237061) -- ustaw koordynaty
        setElementRotation(hitElement00320) -- ustaw rotacje
    end
end)


[ Dodano: 2017-08-28, 22:50 ]
Okej ju? chyba znalaz?em WINOWAJCE

<scripr src="test.lua" type="client" />
XD

[ Dodano: 2017-08-28, 22:53 ]
Wje?d?am w marker i nic si? nie dzieje (WJE?D?AM FIRE TRUCK'iem)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 22:58


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

Bo?e, nie wiem czy si??? czy p?aka?, u?ywasz CLIENT, a event onMarkerHit nie obs?uguje clienta, od tego jest onClientMarkerHit

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 23:03


l3g3nd4

Mapper & Modeler






Wiek: 22
Na forum: 3399 dni
Posty: 156
Nick w MP: l3g3nd4

Piwa: 602

Respekt: 95,3

ZROBI?EM TAK, JU? DAWNO, ALE NADAL NIE DZIA?A...

"Nie oceniaj ludzi po ok?adce"

local wyjscie createMarker(469.39999389648719.400024414064.3000001907349"cylinder"2136123118250)

addEventHandler"onClientMarkerHit"wyjscie, function(hitElement)
    if hitElement ~= "vehicle" then return end
    if getElementID(hitElement) == 407 then
        setElementPosition(hitElement, -2027.099975585951.70000076293935.299999237061) -- ustaw koordynaty
        setElementRotation(hitElement00320) -- ustaw rotacje
    end
end)


meta

<meta>
    <info type="map" version="1.0.0"></info>
    <map src="TEST.map" dimension="0"></map>
    <settings>
        <setting name="#maxplayers" value="[ 128 ]"></setting>
        <setting name="#useLODs" value="[ false ]"></setting>
        <setting name="#gamespeed" value="[ 1 ]"></setting>
        <setting name="#minplayers" value="[ 0 ]"></setting>
        <setting name="#gravity" value="[ 0.008 ]"></setting>
        <setting name="#waveheight" value="[ 0 ]"></setting>
        <setting name="#locked_time" value="[ false ]"></setting>
        <setting name="#weather" value="[ 0 ]"></setting>
        <setting name="#time" value="12:0"></setting>
    </settings>
    <script src="mapEditorScriptingExtension_s.lua" type="server"></script>
    <script src="mapEditorScriptingExtension_c.lua" type="client" validate="false"></script>
    <script src="test.lua" type="client" />
</meta>


[ Dodano: 2017-08-28, 23:04 ]
P.S

Taki g?upi jeszcze nie jestem

[ Dodano: 2017-08-28, 23:05 ]
MARKER SI? TWORZY, LECZ MNIE NIE TEPA...

Podpis

Discord: l3g3nd4#9882
GG: 66391457
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 23:05


Szymczu

Programista bo tak






Wiek: 27
Na forum: 3434 dni
Posty: 194
Nick w MP: Szymczu

Piwa: 36

Respekt: 120
Respekt: 120

M?j kod wy?ej mia? b??d.
Masz tutaj poprawiony i przetestowany
Wklej to po stronie servera oczywi?cie.

addEventHandler("onMarkerHit"marker1, function(hitElement)
    local elementType getElementType(hitElement)
    if elementType ~= "vehicle" then return end
    if getElementModel(hitElement) == 407 then
        setElementPosition(hitElement, -2027.099975585951.70000076293935.299999237061) -- ustaw koordynaty
        setElementRotation(hitElement00320) -- ustaw rotacje
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-08-28, 23:10


l3g3nd4

Mapper & Modeler






Wiek: 22
Na forum: 3399 dni
Posty: 156
Nick w MP: l3g3nd4

Piwa: 602

Respekt: 95,3

Marker jak nie tepa?, tak nie tepa

Da?em po stronie serwera ca?y "skrypt"
Nie ma ?adnych b??d?w w DB3

[ Dodano: 2017-08-28, 23:11 ]
@Edit

TEPA

!! MO?NA LOCK !!

Dzi?ki ;)

Podpis

Discord: l3g3nd4#9882
GG: 66391457
Postaw piwo autorowi tego posta
 

 
Tagi: pom.ocy :: setelementposition
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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