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

Wysłany: 2017-05-05, 16:06


AssasiPlayGames







Wiek: 22
Na forum: 3757 dni
Posty: 176
Nick w MP: NiFeKpL

Piwa: 909

Respekt: 70,5

witam chcia?bym si? dowiedzie? jak zrobi? wej?cie/wyj?cie z interioru na binda

kod
local blip createBlip(2269.76,-74.16,26.77,132255,0,0,255,0,400)

wejscie createMarker (2269.76,-74.16,26.77+0.8"arrow"1.5071255)
wyjscie createMarker (2265.86035,-86.18610,8.05354+0.6"arrow"1.5071255)
setElementDimension(wyjscie0)
setElementInterior(wyjscie0)

addEventHandler("onMarkerHit"wejscie, function(elmd)
    if isPedInVehicle(elthen return end
    outputChatBox" #0053FFWitamy w urz?dzie "el,255,255,255,true)
    setElementDimension(el0)
    setElementInterior(el0)
    setElementPosition(el2266.23462,-84.65352,8.05354)
end)

addEventHandler("onMarkerHit"wyjscie, function(elmd)
    if isPedInVehicle(elthen return end
    outputChatBox("#0053FF Zapraszamy ponownie "el,255,255,255,true)
    setElementDimension(el0)
    setElementInterior(el0)
    setElementPosition(el2269.68,-77.71,26.58)
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-05, 17:11


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5

Przy u?yciu oto tej funkcji:

Więcej informacji znajdziesz w Wikipedii MTA:

bindKey


a dok?adniej

function wejdzurzad(elmd)
    if isPedInVehicle(elthen return end
    outputChatBox" #0053FFWitamy w urz?dzie "el,255,255,255,true)
    setElementDimension(el0)
    setElementInterior(el0)
    setElementPosition(el2266.23462,-84.65352,8.05354)
end
bindKey(thePlayer"k""up"wejdzurzad)

:)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-05, 17:36


AssasiPlayGames







Wiek: 22
Na forum: 3757 dni
Posty: 176
Nick w MP: NiFeKpL

Piwa: 909

Respekt: 70,5

dbn69, a mo?esz ca?y kod :D

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-05, 20:42


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5

tzn?

Na wychodzenie masz analogicznie, a czy ty chcesz ?e mo?na by?o wej??/wyj?? tylko jak si? jest w markerze?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-05, 21:44


AssasiPlayGames







Wiek: 22
Na forum: 3757 dni
Posty: 176
Nick w MP: NiFeKpL

Piwa: 909

Respekt: 70,5

dbn69, tak

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-05-05, 22:07


neku^







Wiek: 24
Na forum: 3521 dni
Posty: 461
Nick w MP: neku^

Piwa: 1186

Respekt: 320,5
Respekt: 320,5Respekt: 320,5Respekt: 320,5


function wejdzurzad(elmd)
If isElementWithinMarker(elwejsciethen
    if isPedInVehicle(elthen return end
    outputChatBox" #0053FFWitamy w urz?dzie "el,255,255,255,true)
    setElementDimension(el0)
    setElementInterior(el0)
    setElementPosition(el2266.23462,-84.65352,8.05354)
else
    outputChatBox("* Nie stoisz w markerze!"el25500)
end
end
bindKey(thePlayer"k""up"wejdzurzad)


Jak b?d? b??dy to sory, pisane na tel.

Postaw piwo autorowi tego posta
 

 
Tagi: jak :: zrobić :: interior :: binda
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