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

Wysłany: 2015-02-14, 22:23


Veav







Wiek: 28
Na forum: 4776 dni
Posty: 23
Nick w MP: Navell178



Respekt: 50

Witam, mam tu prac? busiarza i mam problem gdy? jak robi? 2 osoby t? prac? i jedna osoba wysi?dzie z autobusu(ko?czy prac?) to tamtej osobie te? znikaj? markery i blipy i musi zaczyna? od nowa
kod
Kod:

function onBusStopHit(hitPlayer)
if not hitPlayer == client then return end
triggerServerEvent("bus_finish",client,client)
if isElement(blip) then destroyElement(blip) end
if isElement(marker) then
removeEventHandler("onClientMarkerHit",marker,onBusStopHit)
destroyElement(marker)
end
end

addEventHandler("onClientVehicleExit",rootElement,
function ()
if isElement(marker) then
removeEventHandler("onClientMarkerHit",marker,onBusStopHit)
destroyElement(marker)
end
if isElement(blip) then destroyElement(blip) end
end)
[/code]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-15, 13:22


Terr9909

Skrypter LUA






Wiek: 26
Na forum: 4234 dni
Posty: 346
Nick w MP: Split

Piwa: 1043

Respekt: 182,8
Respekt: 182,8Respekt: 182,8

Ustaw to przy tworzeniu markera.
setElementData(marker,"m:owner",getPlayerName(tu wpisz element)


A potem przy wychodzeniu z pojazdu:

if getElementData(source,"m:owner") == getPlayerName(elementthen
-- kod kod bla bla bla
end


Postaw piwo autorowi tego posta
 

 
Tagi: praca :: busiarza
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