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

Wysłany: 2015-05-28, 17:58


OskarYT

Mapper MTA






Wiek: 26
Na forum: 4245 dni
Posty: 267
Nick w MP: Kaczorek2306

Piwa: 1230

Respekt: 85,3

local districtsPizza = { ---- kordy dostarczania graczy
    {-291.13183593751163.727539062519.696998596191},
    {-335.06152343751171.69726562519.901586532593},
    {-320.76660156251163.112304687520.2421875},
    {-364.92871093751165.534179687519.7421875},
    {-367.4160156251145.835937520.235286712646},
    {-359.542968751129.711914062519.679533004761},
    {-369.23925781251119.278320312520.230415344238},
    {-361.925781251104.3164062519.749286651611},
    {-331.363281251115.3789062520.2421875},
    {-322.19628906251130.213867187519.83712387085},
    {-289.511718751122.33789062520.238082885742},
    {-304.3027343751114.5273437519.7421875},
    {-260.839843751165.437520.2421875},
    {-251.56933593751179.3945312519.93016242981},
    {-259.5175781251156.635742187519.7421875},
    {-251.6777343751142.809570312520.243007659912},
    {-260.63964843751130.666992187519.759662628174},
    {-253.79199218751115.99023437520.232286453247},
    {-248.88183593751083.75195312519.902923583984},
    {-262.73730468751076.237304687520.249408721924},
    {-252.07324218751054.1210937519.956705093384},
    {-260.5527343751040.3164062520.2421875},
    {-282.9853515625995.696289062520.2421875},
    {-267.7910156251004.33398437519.679946899414},
    {-256.2158203125994.5585937520.239133834839},
    {-242.81152343751002.174804687519.7421875},
}
local jobBlip
local jobTarget
local jobMarker
local jobVehicle
local maxTarget #districtsPizza

function finishJob()
    if jobMarker and isElement(jobMarkerthen
        destroyElement(jobMarker)
        jobMarker nil
    end
    
    if jobTarget and isElement(jobTargetthen
        destroyElement(jobTarget)
        jobTarget nil
        jobTarget 0
        
    end
        if jobBlip and isElement(jobBlipthen
        destroyElement(jobBlip)
        jobBlip nil
        end

triggerServerEvent("destroyVeh"localPlayer)

end


function busDriver(elmd)
    if el ~= localPlayer or not md then return end
    if jobTarget maxTarget and getPedOccupiedVehicle(elthen return end
    if jobTarget == maxTarget and not getPedOccupiedVehicle(elthen return end
    
    if jobTarget == #districtsPizza then
        finishJob()
        playSoundFrontEnd(5)
        outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Zako?czy?e?/a? prac?.",255,255,255true)
    else
        showMarker()
        playSoundFrontEnd(12)
        triggerServerEvent("givePlayerMoney"localPlayer151)
    end
end

function showMarker()
    if jobMarker and isElement(jobMarkerthen
        destroyElement(jobMarker)
        jobMarker nil
    end
  if jobBlip and isElement(jobBlipthen
        destroyElement(jobBlip)
        jobBlip nil
    end
  
    
    jobTarget jobTarget 1
    jobMarker createMarker(districtsPizza[jobTarget][1], districtsPizza[jobTarget][2], districtsPizza[jobTarget][3], "checkpoint"400255)
    jobBlip createBlipAttachedTo(jobMarker41)
    if districtsPizza[jobTarget+1then
        ile districtsPizza[jobTarget+1]
        setMarkerTarget(jobMarkerile[1], ile[2], ile[3])
    end
    
    addEventHandler("onClientMarkerHit"jobMarkerbusDriver)
    addEventHandler("onClientMarkerHit"jobMarkerfrezeBus)
end

function frezeBus(el)
 local p=getPedOccupiedVehicle(el)
       outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Dowioz?e? Pizze.",255,255,255true)
       setElementFrozen(ptrue)
       setTimer(setElementFrozen100001pfalse)
       end
       

addEvent("STARTJobBus"true)
addEventHandler("STARTJobBus"resourceRoot, function(veh)
    outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Rozpocz??e?/a? prac?.",255,255,255true)
    jobVehicle veh
    jobTarget 0
    showMarker()
end)

addEventHandler("onClientResourceStop"resourceRoot, function()
    if jobVehicle and getElementData(localPlayer"gracz_praca"then
        setElementData(localPlayer"gracz_praca"false)
    end
end)

addEventHandler("onClientVehicleExit"resourceRoot, function(plrseat)
    if seat == 0 then
        if plr == localPlayer then
            finishJob()
            outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Zako?czy?e? prac?",255,255,255true)
            end
        end
   end)


Witam mam skrypt na prace pizza boy
ale jak mam markery to lec? po kolei a ja bym chcia? aby bra?o losowo markery
przeistoczy? by kto? ten kod tak aby by?y brane pozycje RANDOMOWO ??
Stawiam za to :piwo: lub nawet R*

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-28, 18:52


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Musisz dodac random.math :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-28, 18:57


OskarYT

Mapper MTA






Wiek: 26
Na forum: 4245 dni
Posty: 267
Nick w MP: Kaczorek2306

Piwa: 1230

Respekt: 85,3

"AstroStudio" napisał/a:

Musisz dodac random.math :)


to wiem ale nwm jak i gdzie

 local nowmarker;
        repeat 
        nowmarker math.random(1,#jobPositions)
        until lastMarkerID ~= nowmarker
            lastMarkerID nowmarker
local xyunpack(jobPositions[nowmarker])
actualMarker createMarker(x,y,z-1,"checkpoint",3,255,0,0,50)


Co? takiego ??
jak narazie jestem zielony w LUA
wi?c prosz? o gotowca :(

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-28, 19:07


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4329 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

mozesz sobie podgladnac ten kod : jest on z pracy pizzy od splita :)
Kod:

local praca = createMarker(-37.422451019287, 1186.9564208984, 19.359375, "cylinder", 4.0, 255, 120, 0)

local miejscaelektryk = {
{19.359375,1229.2736816406,22.503162384033},
{76.78881072998,1161.9624023438,18.6640625},
{0.90696263313293,1076.0782470703,20.939865112305},
{-204.91404724121,1062.3820800781,19.7421875},
}

addEventHandler("onClientMarkerHit", praca, function(el, md)
if not md or getElementType(el) ~= "player" then return end
if el ~= localPlayer then return end
outputChatBox("* Zarobki pracy: 4 ZL? Za 1 Pizze.")
outputChatBox("* Aby rozpoczac prace kliknij 'E'")
end)

bindKey("e", "down", function()
if not isElementWithinMarker(localPlayer, praca) then return end
if not getElementData(localPlayer, "gracz_praca") then
local losuj = math.random(2, #miejscaelektryk)
setElementData(localPlayer, "gracz_praca", true)
outputChatBox("* Dostarcz pizze w wyznaczony cel")

local cel = createMarker(miejscaelektryk[losuj][1], miejscaelektryk[losuj][2], miejscaelektryk[losuj][3],miejscaelektryk[losuj][4]-1.0, "cylinder", 4.0, 255, 0, 0)
local blip = createBlipAttachedTo(cel, 41)

addEventHandler("onClientMarkerHit", cel, function(el, md)
if not md or getElementType(el) ~= "player" then return end
if el ~= localPlayer then return end

if getPedOccupiedVehicle(el) then
outputChatBox("* Wyjdz z pojazdu aby dac pizze")
return
end

destroyElement(cel)
destroyElement(blip)
setElementFrozen(el, true)
outputChatBox("* Pukasz Do Drzwi i dajesz Pizze Poczekaj (2 sekundy)")
setTimer(function()
setElementFrozen(el, false)
outputChatBox("* Oddales pizze dla klienta!")
setElementData(el, "gracz_praca", false)
triggerClientEvent("givePlayerMoney", el, 4 ,0)
end, 2000, 1)
end)
else
outputChatBox("* Posiadasz juz aktywna praca.")
end
end)



Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-29, 19:12


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

Zamie? sobie to:


addEvent("STARTJobBus"true)
addEventHandler("STARTJobBus"resourceRoot, function(veh)
    outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Rozpocz??e?/a? prac?.",255,255,255true)
    jobVehicle veh
    jobTarget 0
    math.random(26#districtsPizza) 
end)



Zawsze si? to robi, jak zaczyna si? prac?. Nie s?dzisz?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-30, 11:08


OskarYT

Mapper MTA






Wiek: 26
Na forum: 4245 dni
Posty: 267
Nick w MP: Kaczorek2306

Piwa: 1230

Respekt: 85,3

local districtsPizza = { ---- kordy dostarczania graczy
    {-291.13183593751163.727539062519.696998596191},
    {-335.06152343751171.69726562519.901586532593},
    {-320.76660156251163.112304687520.2421875},
    {-364.92871093751165.534179687519.7421875},
    {-367.4160156251145.835937520.235286712646},
    {-359.542968751129.711914062519.679533004761},
    {-369.23925781251119.278320312520.230415344238},
    {-361.925781251104.3164062519.749286651611},
    {-331.363281251115.3789062520.2421875},
    {-322.19628906251130.213867187519.83712387085},
    {-289.511718751122.33789062520.238082885742},
    {-304.3027343751114.5273437519.7421875},
    {-260.839843751165.437520.2421875},
    {-251.56933593751179.3945312519.93016242981},
    {-259.5175781251156.635742187519.7421875},
    {-251.6777343751142.809570312520.243007659912},
    {-260.63964843751130.666992187519.759662628174},
    {-253.79199218751115.99023437520.232286453247},
    {-248.88183593751083.75195312519.902923583984},
    {-262.73730468751076.237304687520.249408721924},
    {-252.07324218751054.1210937519.956705093384},
    {-260.5527343751040.3164062520.2421875},
    {-282.9853515625995.696289062520.2421875},
    {-267.7910156251004.33398437519.679946899414},
    {-256.2158203125994.5585937520.239133834839},
    {-242.81152343751002.174804687519.7421875},
}
local jobBlip
local jobTarget
local jobMarker
local jobVehicle
local maxTarget #districtsPizza

function finishJob()
    if jobMarker and isElement(jobMarkerthen
        destroyElement(jobMarker)
        jobMarker nil
    end
    
    if jobTarget and isElement(jobTargetthen
        destroyElement(jobTarget)
        jobTarget nil
        jobTarget 0
        
    end
        if jobBlip and isElement(jobBlipthen
        destroyElement(jobBlip)
        jobBlip nil
        end

triggerServerEvent("destroyVeh"localPlayer)

end


function busDriver(elmd)
    if el ~= localPlayer or not md then return end
    if jobTarget maxTarget and getPedOccupiedVehicle(elthen return end
    if jobTarget == maxTarget and not getPedOccupiedVehicle(elthen return end
    
    if jobTarget == #districtsPizza then
        finishJob()
        playSoundFrontEnd(5)
        outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Zako?czy?e?/a? prac?.",255,255,255true)
    else
        showMarker()
        playSoundFrontEnd(12)
        triggerServerEvent("givePlayerMoney"localPlayer31)
    end
end

function showMarker()
    if jobMarker and isElement(jobMarkerthen
        destroyElement(jobMarker)
        jobMarker nil
    end
  if jobBlip and isElement(jobBlipthen
        destroyElement(jobBlip)
        jobBlip nil
    end
  
    
    jobTarget jobTarget 1
    jobMarker createMarker(districtsPizza[jobTarget][1], districtsPizza[jobTarget][2], districtsPizza[jobTarget][3], "checkpoint"400255)
    jobBlip createBlipAttachedTo(jobMarker41)
    if districtsPizza[jobTarget+1then
        ile districtsPizza[jobTarget+1]
        setMarkerTarget(jobMarkerile[1], ile[2], ile[3])
    end
    
    addEventHandler("onClientMarkerHit"jobMarkerbusDriver)
    addEventHandler("onClientMarkerHit"jobMarkerfrezeBus)
end

function frezeBus(el)
 local p=getPedOccupiedVehicle(el)
       outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Dowioz?e? Pizze.",255,255,255true)
       setElementFrozen(ptrue)
       setTimer(setElementFrozen100001pfalse)
       end
       

addEvent("STARTJobBus"true)
addEventHandler("STARTJobBus"resourceRoot, function(veh)
    outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Rozpocz??e?/a? prac?.",255,255,255true)
    jobVehicle veh
    jobTarget 0
    math.random(26#districtsPizza) 
end)

addEventHandler("onClientResourceStop"resourceRoot, function()
    if jobVehicle and getElementData(localPlayer"gracz_praca"then
        setElementData(localPlayer"gracz_praca"false)
    end
end)

addEventHandler("onClientVehicleExit"resourceRoot, function(plrseat)
    if seat == 0 then
        if plr == localPlayer then
            finishJob()
            outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Zako?czy?e? prac?",255,255,255true)
            end
        end
   end)


Zmieni?em tak jak powiedzia?e? zobacz sobie powy?ej ale teraz wog?le nie wida? blipa na mapie i markery niew powstaj? tam gdzie si? dowozi pizze !!
prosz? ciebie aby? mi pom?g? teraz to naprawi? :(

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-30, 11:11


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

Wiesz, z?otej kuli nie mam. Podaj b??dy w /debugscript 3.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-30, 11:13


OskarYT

Mapper MTA






Wiek: 26
Na forum: 4245 dni
Posty: 267
Nick w MP: Kaczorek2306

Piwa: 1230

Respekt: 85,3

"Fanciak" napisał/a:

Wiesz, z?otej kuli nie mam. Podaj b??dy w /debugscript 3.


0% bug?w ale i tak nie pokazuje teraz blip?w na mapie !! :(

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-30, 11:14


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

Mog? prosi? tu lub na PW reszt? kodu (reszt? plik?w .lua)? Wgram sobie to na serwer i spr?buje naprawi?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-30, 11:16


OskarYT

Mapper MTA






Wiek: 26
Na forum: 4245 dni
Posty: 267
Nick w MP: Kaczorek2306

Piwa: 1230

Respekt: 85,3

"Fanciak" napisał/a:

Mog? prosi? tu lub na PW reszt? kodu (reszt? plik?w .lua)? Wgram sobie to na serwer i spr?buje naprawi?.


wy?l? ci na PM

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-30, 11:48


Fanciak

BOT






Wiek: 25
Na forum: 4446 dni
Posty: 728
Nick w MP: Fanciak

Piwa: 1572

Respekt: 500
Respekt: 500

Ju? dzia?a :)


local districtsPizza = {} ---- kordy dostarczania graczy  
    districtsPizza[1]= {-320.76660156251163.112304687520.2421875}
  districtsPizza[2]= {-364.92871093751165.534179687519.7421875}
    districtsPizza[3]= {-367.4160156251145.835937520.235286712646}
    districtsPizza[4]= {-359.542968751129.711914062519.679533004761}
    districtsPizza[5]= {-369.23925781251119.278320312520.230415344238}
    districtsPizza[6]= {-361.925781251104.3164062519.749286651611}
    districtsPizza[7]= {-331.363281251115.3789062520.2421875}
    districtsPizza[8]= {-322.19628906251130.213867187519.83712387085}
    districtsPizza[9]= {-289.511718751122.33789062520.238082885742}
    districtsPizza[10]= {-304.3027343751114.5273437519.7421875}
    districtsPizza[11]= {-260.839843751165.437520.2421875}
    districtsPizza[12]= {-251.56933593751179.3945312519.93016242981}
    districtsPizza[13]= {-259.5175781251156.635742187519.7421875}
    districtsPizza[14]= {-251.6777343751142.809570312520.243007659912}
    districtsPizza[15]= {-260.63964843751130.666992187519.759662628174}
    districtsPizza[16]= {-253.79199218751115.99023437520.232286453247}
    districtsPizza[17]= {-248.88183593751083.75195312519.902923583984}
    districtsPizza[18]= {-262.73730468751076.237304687520.249408721924}
    districtsPizza[19]= {-252.07324218751054.1210937519.956705093384}
    districtsPizza[20]= {-260.5527343751040.3164062520.2421875}
    districtsPizza[21]= {-282.9853515625995.696289062520.2421875}
    districtsPizza[22]= {-267.7910156251004.33398437519.679946899414}
    districtsPizza[23]= {-256.2158203125994.5585937520.239133834839}
    districtsPizza[24]= {-242.81152343751002.174804687519.7421875}

local jobBlip
local jobTarget
local jobMarker
local jobVehicle
local maxTarget math.random(124)

function finishJob()
    if jobMarker and isElement(jobMarkerthen
        destroyElement(jobMarker)
        jobMarker nil
    end
    
    if jobTarget and isElement(jobTargetthen
        destroyElement(jobTarget)
        jobTarget nil
        jobTarget 0
        
    end
        if jobBlip and isElement(jobBlipthen
        destroyElement(jobBlip)
        jobBlip nil
        end

triggerServerEvent("destroyVeh"localPlayer)

end


function busDriver(elmd)
    if el ~= localPlayer or not md then return end
    if jobTarget maxTarget and getPedOccupiedVehicle(elthen return end
    if jobTarget == maxTarget and not getPedOccupiedVehicle(elthen return end
    
    if jobTarget == #districtsPizza then
        finishJob()
        playSoundFrontEnd(5)
        outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Zako?czy?e?/a? prac?.",255,255,255true)
    else
        showMarker(unpack(districtsPizza[maxTarget]))
        playSoundFrontEnd(12)
        triggerServerEvent("givePlayerMoney"localPlayer151)
    end
end

function showMarker()
    if jobMarker and isElement(jobMarkerthen
        destroyElement(jobMarker)
        jobMarker nil
    end
  if jobBlip and isElement(jobBlipthen
        destroyElement(jobBlip)
        jobBlip nil
    end
  
    
    jobTarget jobTarget 1
    jobMarker createMarker(districtsPizza[jobTarget][1], districtsPizza[jobTarget][2], districtsPizza[jobTarget][3], "checkpoint"400255)
    jobBlip createBlipAttachedTo(jobMarker41)
    if districtsPizza[jobTarget+1then
        ile districtsPizza[jobTarget+1]
        setMarkerTarget(jobMarkerile[1], ile[2], ile[3])
    end
    
    addEventHandler("onClientMarkerHit"jobMarkerbusDriver)
    addEventHandler("onClientMarkerHit"jobMarkerfrezeBus)
end

function frezeBus(el)
 local p=getPedOccupiedVehicle(el)
       outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Dowioz?e? Pizze.",255,255,255true)
       setElementFrozen(ptrue)
       setTimer(setElementFrozen100001pfalse)
       end
       

addEvent("STARTJobBus"true)
addEventHandler("STARTJobBus"resourceRoot, function(veh)
    outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Rozpocz??e?/a? prac?.",255,255,255true)
    jobVehicle veh
    jobTarget 0
    showMarker(unpack(districtsPizza[maxTarget]))
    end)

addEventHandler("onClientResourceStop"resourceRoot, function()
    if jobVehicle and getElementData(localPlayer"gracz_praca"then
        setElementData(localPlayer"gracz_praca"false)
    end
end)

addEventHandler("onClientVehicleExit"resourceRoot, function(plrseat)
    if seat == 0 then
        if plr == localPlayer then
            finishJob()
            outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Zako?czy?e? prac?",255,255,255true)
            end
        end
   end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-30, 12:54


OskarYT

Mapper MTA






Wiek: 26
Na forum: 4245 dni
Posty: 267
Nick w MP: Kaczorek2306

Piwa: 1230

Respekt: 85,3

Fanciak, to nie jest random tylko zawsze jak zaczne prace od nowa to s? w tych samych miejscach markery nie zmienia si? !!

W debugscript 3 0% bug?w !!

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-05-30, 21:19


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

Trzymaj


local districtsPizza = { ---- kordy dostarczania graczy
    {-291.13183593751163.727539062519.696998596191},
    {-335.06152343751171.69726562519.901586532593},
    {-320.76660156251163.112304687520.2421875},
    {-364.92871093751165.534179687519.7421875},
    {-367.4160156251145.835937520.235286712646},
    {-359.542968751129.711914062519.679533004761},
    {-369.23925781251119.278320312520.230415344238},
    {-361.925781251104.3164062519.749286651611},
    {-331.363281251115.3789062520.2421875},
    {-322.19628906251130.213867187519.83712387085},
    {-289.511718751122.33789062520.238082885742},
    {-304.3027343751114.5273437519.7421875},
    {-260.839843751165.437520.2421875},
    {-251.56933593751179.3945312519.93016242981},
    {-259.5175781251156.635742187519.7421875},
    {-251.6777343751142.809570312520.243007659912},
    {-260.63964843751130.666992187519.759662628174},
    {-253.79199218751115.99023437520.232286453247},
    {-248.88183593751083.75195312519.902923583984},
    {-262.73730468751076.237304687520.249408721924},
    {-252.07324218751054.1210937519.956705093384},
    {-260.5527343751040.3164062520.2421875},
    {-282.9853515625995.696289062520.2421875},
    {-267.7910156251004.33398437519.679946899414},
    {-256.2158203125994.5585937520.239133834839},
    {-242.81152343751002.174804687519.7421875},
}
local jobBlip
local jobMarker
local jobVehicle
local maxTarget #districtsPizza

function finishJob()
    if jobMarker and isElement(jobMarkerthen
        destroyElement(jobMarker)
        jobMarker nil
    end
    
        if jobBlip and isElement(jobBlipthen
        destroyElement(jobBlip)
        jobBlip nil
        end

triggerServerEvent("destroyVeh"localPlayer)

end


function busDriver(elmd)
    if el ~= localPlayer or not md then return end
if not getPedOccupiedVehicle(elthen return end
        showMarker()
        playSoundFrontEnd(12)
        triggerServerEvent("givePlayerMoney"localPlayer151)
    end

function showMarker()
    if jobMarker and isElement(jobMarkerthen
        destroyElement(jobMarker)
        jobMarker nil
    end
  if jobBlip and isElement(jobBlipthen
        destroyElement(jobBlip)
        jobBlip nil
    end
  
    los math.random(1#districtsPizza)
    jobMarker createMarker(districtsPizza[los][1], districtsPizza[los][2], districtsPizza[los][3], "checkpoint"3.20150255,100,52)
    jobBlip createBlipAttachedTo(jobMarker41)

    
    addEventHandler("onClientMarkerHit"jobMarkerbusDriver)
    addEventHandler("onClientMarkerHit"jobMarkerfrezeBus)
end

function frezeBus(el)
 local p=getPedOccupiedVehicle(el)
       outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Dowioz?e? Pizze.",255,255,255true)
       setElementFrozen(ptrue)
       setTimer(setElementFrozen100001pfalse)
       end
       

addEvent("STARTJobBus"true)
addEventHandler("STARTJobBus"resourceRoot, function(veh)
    outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Rozpocz??e?/a? prac?.",255,255,255true)
    jobVehicle veh
    showMarker()
end)

addEventHandler("onClientResourceStop"resourceRoot, function()
    if jobVehicle and getElementData(localPlayer"gracz_praca"then
        setElementData(localPlayer"gracz_praca"false)
    end
end)

addEventHandler("onClientVehicleExit"resourceRoot, function(plrseat)
    if seat == 0 then
        if plr == localPlayer then
            finishJob()
            outputChatBox("[#0033ffPraca#FFFFFF]#ffff99*Zako?czy?e? prac?",255,255,255true)
            end
        end
   end)



Postaw piwo autorowi tego posta
 

 
Tagi: pizzaboy :: praca :: randomowe :: pozycje
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