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

Wysłany: 2017-01-23, 18:45


Boski1234567891

Młody Skrypter






Wiek: 31
Na forum: 3444 dni
Posty: 89
Nick w MP: Medyk312

Piwa: 1965

Respekt: 25,8

Siema! posiadam gamemode your adventure rpg


i problem w tym ze w kazdej pracy nie dostaje kasy wje?d?am w punkt i patrze na panelu admina i mi kasy nie dodaje wiecie o co chodzi? pls o pomoc


oraz nie dzia?a mi panel logowania znaczy dzia?a ale po zalogowaniu i wybraniu respa np ,,spawnu" jest czarny ekran i nie pokazuje nic kto? cos?

Ostatnio zmieniony przez Boski1234567891 2017-01-23, 19:03, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 18:58


_Haze

Peace Yo!






Wiek: 24
Na forum: 4184 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

Boski1234567891, jaki? debug jaki? kod z jakiej? pracy cokolwiek?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:01


Boski1234567891

Młody Skrypter






Wiek: 31
Na forum: 3444 dni
Posty: 89
Nick w MP: Medyk312

Piwa: 1965

Respekt: 25,8

  --[[
Praca busa

]]--
local code "StreetView"
local districtsBus = {
{-1989.33,543.99,34.53},
{-1989.24,602.24,34.53},
{-1901.84,590.70,34.49},
{-1852.00,527.57,33.36},
{-1843.98,439.45,16.61},
{-1847.36,404.70,16.53},
{-1802.15,358.29,16.53},
{-1760.78,316.68,6.55},
{-1712.75,335.50,6.55},
{-1607.54,440.50,6.55},
{-1557.71,517.88,6.55},
{-1556.47,664.26,6.56},
{-1540.68,733.45,6.56},
{-1531.87,836.49,6.56},
{-1529.15,954.26,6.56},
{-1580.35,1045.78,6.56},
{-1581.09,1158.34,6.56},
{-1631.71,1249.46,6.56},
{-1717.37,1334.93,6.56},
{-1822.41,1382.57,6.56},
{-1938.19,1314.65,6.56},
{-2060.73,1315.05,6.59},
{-2162.27,1334.65,6.56},
{-2296.35,1350.94,6.56},
{-2424.54,1381.62,6.57},
{-2568.06,1364.79,6.56},
{-2691.13,1293.06,6.56},
{-2811.30,1284.99,4.97},
{-2879.72,1192.88,6.50},
{-2882.67,1083.71,29.76},
{-2843.40,975.11,43.00},
{-2825.75,868.10,43.42},
{-2868.85,756.21,31.23},
{-2825.14,632.01,8.56},
{-2836.21,530.35,4.49},
{-2840.60,464.09,3.66},
{-2720.44,466.21,3.73},
{-2658.78,466.23,10.28},
{-2607.60,436.04,13.97},
{-2608.94,362.37,4.19},
{-2629.60,292.16,3.70},
{-2648.42,263.66,3.70},
{-2662.66,220.00,3.70},
{-2707.74,188.01,3.70},
{-2707.39,72.73,3.70},
{-2668.69,-72.45,3.70},
{-2566.71,-72.41,8.05},
{-2485.03,-72.30,26.59},
{-2373.36,-83.26,34.69},
{-2367.96,-178.35,34.69},
{-2284.98,-191.36,34.69},
{-2165.08,-150.74,34.69},
{-2116.72,-71.57,34.69},
{-2004.24,51.46,30.48},
{-2004.81,228.61,27.73},
{-1999.96,459.15,34.53},
{-1979.82,562.08,34.68},
{-1931.78,575.14,34.69},
}

local jobTarget
local jobMarker
local jobVehicle
local maxTarget #districtsBus

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 getElementData(localPlayer,"player:job") == code then
setElementData(localPlayer,"player:job",false)
end
triggerServerEvent("destroyVeh"localPlayer)

end
addEventHandler "onClientPlayerWasted"getLocalPlayer(),finishJob)
addEvent("finishJob",true)
addEventHandler("finishJob",root,function(plr)
if plr ~= localPlayer then return end
finishJob()
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 == #districtsBus then
        finishJob()
        playSoundFrontEnd(5)
        outputChatBox("* Zako?czy?e?/a? prac?.")
    else
        showMarker()
        playSoundFrontEnd(12)
        triggerServerEvent("givePlayerMoney"localPlayer2.60000)
        outputChatBox("Otrzymujesz 6 PLN za zidentyfikowanie punktu.")
    end
end

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

addEvent("STARTJobBus"true)
addEventHandler("STARTJobBus"resourceRoot, function(veh)
    outputChatBox("* Rozpocze?e?/a? prace.")
    jobVehicle veh
    jobTarget 0
    showMarker()
end)

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


addEventHandler("onClientVehicleExit"resourceRoot, function(plrseat)
    if seat == 0 then
        if plr == localPlayer then
            finishJob()
            outputChatBox("Zako?czy?e? prac?")
        end
    end
end)  




local missionText=createElement("text")
setElementData(missionText"name""Rozpocz?cie Pracy StreetView")
setElementPosition(missionText, -1922.67,573.14,35.45)
local zone createColCuboid(-1931.93115565.1687034.481256.7419433593756.85339355468754.5156234741211)
createBlip(-1934.01,579.19,38.2246,2,0,0,0,0,0,275)
local m1 createMarker(-1922.67,573.14,34.45"cylinder"2.2969696)
vehs = {}
local code "StreetView"


function removePreviousVehicles(plr)
    for i,v in ipairs(getElementsByType("vehicle"resourceRoot)) do
        local sby getElementData(v"zrespilGracz")
        if sby and sby == plr and getPedOccupiedVehicle(plr) ~= v then
            destroyElement(v)
        end
    end
end

addEventHandler("onMarkerHit"m1, function(elmd)
    if getElementData(el"zrespilGracz"then
        outputChatBox("praca w trakcie poprawek"el)
        return
    end
    if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(elthen return end
    if getElementData(el,"player:job"then return end
    if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("*Parking zaj?ty czekaj a? wyjedzie!",el) return end
    local x,y,getElementPosition(el)
    local bus createVehicle(400, -1928.50,568.61,35.27)
    setElementData(bus"zrespilGracz"el)
    setElementData(bus"vehicle:fuel"100000)
    setElementData(bus"vehicle:mileage"math.random(50000,80000))
    setVehicleHandling(bus,"maxVelocity"60,00)
    setElementData(el,"player:job",code)
    
    warpPedIntoVehicle(elbus)
    removePreviousVehicles(el)
    triggerClientEvent(el"STARTJobBus"resourceRootbus)

    vehs[el] = bus
end)

addEvent("STOPJobBus"true)
addEventHandler("STOPJobBus"resourceRoot, function()
    local pojazd getPedOccupiedVehicle(client)
    if pojazd then
        destroyElement(pojazd)
    end
end)

addEventHandler("onPlayerVehicleExit",resourceRoot,function()
destroyElement(source)
end)

addEvent("destroyVeh"true)
addEventHandler("destroyVeh"getRootElement(),
function()
     if vehs[clientthen
          if isElement(vehs[client]) then destroyElement(vehs[client]) end
     end
end)


addEvent("onPlayerQuit"true)
addEventHandler "onPlayerQuit"getRootElement(), function()
     if vehs[sourcethen
          if isElement(vehs[source]) then destroyElement(vehs[source]) end
    end
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:02


_Haze

Peace Yo!






Wiek: 24
Na forum: 4184 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

Boski1234567891, triggerServerEvent("givePlayerMoney", localPlayer, 2.6000, 0) podaj strone serwera

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:03


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

Plik ogrpg-prace-settings masz w??czony?

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:03


Boski1234567891

Młody Skrypter






Wiek: 31
Na forum: 3444 dni
Posty: 89
Nick w MP: Medyk312

Piwa: 1965

Respekt: 25,8

co to ta strona?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:05


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

Kod po stronie serwera...

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:06


Boski1234567891

Młody Skrypter






Wiek: 31
Na forum: 3444 dni
Posty: 89
Nick w MP: Medyk312

Piwa: 1965

Respekt: 25,8

czyli?...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:06


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

Plik xxx_s.lua

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:07


Boski1234567891

Młody Skrypter






Wiek: 31
Na forum: 3444 dni
Posty: 89
Nick w MP: Medyk312

Piwa: 1965

Respekt: 25,8

nie rozumiem... podaj tak np plik>>plik>>> plik>>> ...

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:08


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

Nie mam tej paczki to nie wiem jakie tam masz pliki...

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:11


Boski1234567891

Młody Skrypter






Wiek: 31
Na forum: 3444 dni
Posty: 89
Nick w MP: Medyk312

Piwa: 1965

Respekt: 25,8

http://www93.zippyshare.com/v/TYLjiKTJ/file.html tutaj masz ta paczke wiec jak znajdziesz ta strone to podaj tutaj

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:13


Avenged

Młodszy Szkrypter






Wiek: 23
Na forum: 3510 dni
Posty: 654
Nick w MP: Avenged

Piwa: 1570

Respekt: 326,3
Respekt: 326,3Respekt: 326,3Respekt: 326,3

Na telefon tego nie pobiore... :/

[ Dodano: 2017-01-23, 19:13 ]
XD

[ Dodano: 2017-01-23, 19:14 ]
XD

Podpis
LUA, JS, PHP



Zapraszam do skorzystania z moich usług: Klik

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:15


Boski1234567891

Młody Skrypter






Wiek: 31
Na forum: 3444 dni
Posty: 89
Nick w MP: Medyk312

Piwa: 1965

Respekt: 25,8

no to ja nie wiem gdzie jest ta strona..

[ Dodano: 2017-01-23, 19:15 ]
chodzi wam o ogrpg_db? czy jak?..

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-01-23, 19:18


_Haze

Peace Yo!






Wiek: 24
Na forum: 4184 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

Boski1234567891, typie strona serwera w mecie masz type="server" wchodzisz i masz tam plik wstaw go tu

Postaw piwo autorowi tego posta
 

 
Tagi: prace
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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