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

Wysłany: 2016-01-13, 17:07


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

local cos true

function marker (player)
if cos == false then
local veh getPedOccupiedVehicle(player)
if (getElementModel(veh) == id wozu) or (getElementModel(veh) == id wozuthen
local x,y,getElementPosition(player)
local marker createMarker(x,y,z,"arrow",2,255,0,0,255,player)
attachElements(marker,veh,0,0,2)
else return end
else
destroyElement(marker)
end
end

function cos (player)
bindKey(player,"L","down",marker)
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 17:20


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Marker si? nie pojawia

[ Dodano: 2016-01-13, 17:26 ]
Linijka z pojazdami powinna wygl?da? tak?:

if (getElementModel(veh) ==597) or (getElementModel(veh) ==596then


Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 17:54


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

if (getElementModel(veh) == 597) or (getElementModel(veh) == 596then 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 17:55


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Marker si? nie pokazuje, testowa?e? mo?e ty ?

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 17:56


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Ju? testuj? nie by?o mnie w domu poczekaj 5minutek :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 17:57


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Ok ;)

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 18:09


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Uda?o mi si? zrobi? ?e po wej?ciu do pojazdu marker si? poka?? a po wyj?ciu znika, chcesz?

[ Dodano: 2016-01-13, 18:09 ]
Chyba ?e zrobi? ?e pod "L" si? pojawia a pod ";" znika

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 18:14


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

To wybieram to, ?e pod L pojawia znika pod ;

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 18:15


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Ok czekaj :)

[ Dodano: 2016-01-13, 18:19 ]
c-side
bindKey("l","down",function()
local veh getPedOccupiedVehicle(localPlayer)
if (getElementModel(veh) == 411then
local x,y,getElementPosition(localPlayer)
local marker createMarker(x,y,z,"arrow",1,255,0,0,255)
attachElements(marker,veh,0,0,1.5)
bindKey(";","down",function()
destroyElement(marker)
end)
end
end)




[ Dodano: 2016-01-13, 18:20 ]
teraz tam tylko gdzie masz getElementModel zamien na id policji ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 18:22


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Tak wygl?da na dwa pojazdy policyjne ?
if (getElementModel(veh) == 596) or (getElementModel(veh) == 597


Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 18:23


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Tak :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 18:23


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Ok, pom?g?by? mi w czym? jeszcz? ?

[ Dodano: 2016-01-13, 18:31 ]
Co zrobi? aby auto, kt?re wjedzie do tego markera b?dzie mia?o freeza?

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 18:34


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Zaraz to napisze :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 18:35


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Ok :D

[ Dodano: 2016-01-13, 18:40 ]
Ok :D , czekam :D

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-13, 18:48


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

bindKey("l","down",function()
local veh getPedOccupiedVehicle(localPlayer)
if (getElementModel(veh) == 411then
local x,y,getElementPosition(localPlayer)
local marker createMarker(x,y,z,"arrow",1,255,0,0,255)
attachElements(marker,veh,0,0,1.5)
bindKey(";","down",function()
destroyElement(marker)
end)
end
addEventHandler("onClientMarkerHit",marker,function()
if isPedInVehicle then
setElementFrozen(localPlayer)
end
end)
end)


testuj nwm czy dzia?a: )

Postaw piwo autorowi tego posta
 

 
Tagi: zatrzymanie :: pojazdu...
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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