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

Wysłany: 2016-08-29, 16:19


AlaneqYT

Uczeń LUA






Wiek: 25
Na forum: 3885 dni
Posty: 37

Piwa: 20

Respekt: 25,3

Ostrzeżeń: 20%
Witam, mam kod na prace, ale niestety nie tepa mnie po sko?czeniu.

addEventHandler("onMarkerHit"miejsce, function(elmd)
    if not md or getElementType(el) ~= "vehicle" then return end
    local plr getVehicleOccupant(el,0)
    if getElementData(el,"vehicle:pack") == false then outputChatBox("bla bla bla XD .",plr255255255) return end
    local paczki getElementData(el,"vehicle:pack")
    setElementData(el,"vehicle:pack",false)
    local pieniadze paczki*money
    triggerEvent("givePlayerMoney",plr,pieniadze/2)
        triggerEvent("givePlayerMoney",plr,pieniadze/2)
    outputChatBox("bla bla bla XD",plr0160,0)
        destroyElement(car)
    destroyElement(blip)
    destroyElement(miejsce)
    setElementData(el,"vehicle:destination",false)
    setElementData(el"vehicle:desc",false)
        setElementPosition(el2062.132271.0510.82)
end)
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-29, 17:04


piotr172







Wiek: 26
Na forum: 4417 dni
Posty: 130

Piwa: 2329

Respekt: 105,3
Respekt: 105,3


addEventHandler("onMarkerHit"miejsce, function(elmd)
    if not md or getElementType(el) ~= "vehicle" then return end
    local plr getVehicleOccupant(el,0)
    if getElementData(el,"vehicle:pack") == false then outputChatBox("bla bla bla XD .",plr255255255) return end
    local paczki getElementData(el,"vehicle:pack")
    setElementData(el,"vehicle:pack",false)
    local pieniadze paczki*money
    triggerEvent("givePlayerMoney",plr,pieniadze/2)
        triggerEvent("givePlayerMoney",plr,pieniadze/2)
    outputChatBox("bla bla bla XD",plr0160,0)
        destroyElement(car)
    destroyElement(blip)
    destroyElement(miejsce)
    setElementData(el,"vehicle:destination",false)
    setElementData(el"vehicle:desc",false)
        setElementPosition(el2062.132271.0510.82)
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-08-29, 17:40


ZZiomek

..::LUA::..






Wiek: 26
Na forum: 3868 dni
Posty: 134
Nick w MP: NexBoy

Piwa: 5961

Respekt: 155,3
Respekt: 155,3Respekt: 155,3

addEventHandler("onMarkerHit"miejsce, function(elmd)
    if not md or getElementType(el) ~= "vehicle" then return end
    local plr getVehicleOccupant(el,0)
    if getElementData(el,"vehicle:pack") == false then outputChatBox("bla bla bla XD .",plr255255255) return end
    local paczki getElementData(el,"vehicle:pack")
    setElementData(el,"vehicle:pack",false)
    local pieniadze paczki*money
    triggerEvent("givePlayerMoney",plr,pieniadze/2)
        triggerEvent("givePlayerMoney",plr,pieniadze/2)
    outputChatBox("bla bla bla XD",plr0160,0)
        destroyElement(car)
    destroyElement(blip)
    destroyElement(miejsce)
    setElementData(el,"vehicle:destination",false)
    setElementData(el"vehicle:desc",false)
    removePedFromVehicle(el)
        setElementPosition(el2062.132271.0510.82)
end
end)


Podpis

Dodaj na Steam: Kod: 1093365219
Discord: NoOne#3644

Postaw piwo autorowi tego posta
 

 
Tagi: nie :: teleportuje
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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