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

Wysłany: 2019-02-12, 12:59


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3098 dni
Posty: 964

Piwa: 3102

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

Witam, prosz? o pomoc poniewa? mam problem z topkami macie tutaj skrypty:

https://www44.zippyshare.com/v/jwv7EgR4/file.html

Mam kolumny do tego:



A nie chce mi liczy? kurs?w przerobi mi kto? skrypt lub zrobi mi kolumn? do tego za to daj? :piwo: i R*

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-12, 13:23


Query

SyndicateMTA






Wiek: 24
Na forum: 3072 dni
Posty: 319
Nick w MP: Query

Piwa: 5257

Respekt: 141
Respekt: 141

Po zaliczeniu punktu dodawaj warto??, i zapisuj j? do bazy. Pr?buj samemu :)

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-12, 13:30


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3098 dni
Posty: 964

Piwa: 3102

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

Query, A masz skrypt na topki albo kolumn? ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-12, 13:33


Query

SyndicateMTA






Wiek: 24
Na forum: 3072 dni
Posty: 319
Nick w MP: Query

Piwa: 5257

Respekt: 141
Respekt: 141

TheSebaPL, og?lnie z tego co pami?tam pojawia?y si? GM'y lub pojedy?cze skrypty ktore mialy wlasnie takie funkcje.

Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-12, 14:02


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3098 dni
Posty: 964

Piwa: 3102

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

Kto? ma mo?e ? (nie mam zamiaru p?aci? za skrypt i baz? danych)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-12, 17:09


BlueCry

ŚĆRIPTER LUJA






Wiek: 25
Na forum: 4006 dni
Posty: 78
Nick w MP: BlueCry

Piwa: 2176

Respekt: 110
Respekt: 110

"TheSebaPL" napisał/a:

Kto? ma mo?e ? (nie mam zamiaru p?aci? za skrypt i baz? danych)

Je?li mo?esz to podaj skrypt, lub kod pracy SV.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-12, 17:19


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3098 dni
Posty: 964

Piwa: 3102

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

bus_c.lua
local districtsBus = {
    {-2112.4543457031,10.473585128784,35.3203125},
    {-2091.669921875,27.598743438721,35.171875},
    {-2009.5999755859,7.4368567466736,33.543090820313},
    {-1938.1381835938,-67.006874084473,25.5546875},
    {-1860.8737792969,-118.50411987305,7.3407878875732},
    {-1801.4018554688,-129.65942382813,5.6747193336487},
    {-1801.6910400391,-213.92892456055,16.964654922485},
    {-1801.8167724609,-290.54330444336,23.971193313599},
    {-1826.0701904297,-529.17169189453,14.968566894531},
    {-1793.5629882813,-584.46673583984,16.224987030029},
    {-1763.5051269531,-630.12091064453,17.608341217041},
    {-1753.1650390625,-715.35394287109,29.486890792847},
    {-1677.7746582031,-768.953125,41.604061126709},
    {-1548.3265380859,-815.95013427734,53.871223449707},
    {-1440.7314453125,-821.81011962891,77.138549804688},
    {-1270.3139648438,-798.49658203125,68.69261932373},
    {-1186.1108398438,-711.42547607422,54.942920684814},
    {-1131.6624755859,-546.24139404297,30.085731506348},
    {-1042.8786621094,-456.53387451172,35.826889038086},
    {-966.05603027344,-350.89752197266,36.148643493652},
    {-933.56945800781,-188.91920471191,44.191707611084},
    {-712.46765136719,-70.73119354248,69.247650146484},
    {-715.65313720703,10.09538936615,60.625747680664},
    {-848.77819824219,-42.910068511963,42.022018432617},
    {-789.57684326172,15.104936599731,33.284473419189},
    {-664.73474121094,64.81224822998,29.681154251099},
    {-752.53308105469,114.79402923584,14.151502609253},
    {-708.34973144531,230.01347351074,2.2706401348114},
    {-540.71875,281.25399780273,2.078125},
    {-460.32797241211,279.45794677734,2.078125},
    {-362.97900390625,271.06723022461,2.078125},
    {-215.94351196289,239.73611450195,11.989356994629},
    {-78.858383178711,199.0751953125,2.1615881919861},
    {33.276279449463,136.38909912109,2.078125},
    {132.23629760742,78.195869445801,2.078125},
    {230.53802490234,33.822834014893,2.4296875},
    {219.01574707031,-19.738906860352,1.4356426000595},
    {180.2837677002,-58.236930847168,1.4282984733582},
    {214.37117004395,-73.916603088379,1.4320075511932},
    {266.41464233398,-73.915962219238,1.4296875},
    {328.84225463867,-77.3662109375,1.4296875},
    {346.11856079102,-144.43388366699,1.5214405059814},
    {413.73309326172,-144.51821899414,10.124887466431},
    {531.27709960938,-123.32814025879,37.543003082275},
    {532.84332275391,29.104608535767,21.69303894043},
    {527.36706542969,111.47816467285,22.711248397827},
    {519.1591796875,191.8272857666,18.113828659058},
    {530.76312255859,246.26824951172,14.783703804016},
    {600.47326660156,298.33474731445,19.179664611816},
    {618.34515380859,337.04901123047,19.254707336426},
    {551.33837890625,433.78646850586,18.9296875},
    {501.3017578125,504.92532348633,18.9296875},
    {440.24871826172,592.30053710938,18.9296875},
    {384.70361328125,683.06768798828,10.914054870605},
    {447.24279785156,721.29766845703,7.0441923141479},
    {542.69927978516,675.84796142578,3.3422355651855},
    {659.81427001953,654.35083007813,7.5931425094604},
    {809.99188232422,671.88592529297,11.585075378418},
    {910.66815185547,711.41168212891,10.7109375},
    {1017.5953369141,752.23400878906,10.70955657959},
    {1151.0659179688,840.80731201172,10.720628738403},
    {1269.9013671875,880.94970703125,15.513366699219},
    {1340.8717041016,999.02508544922,14.740748405457},
    {1278.4000244141,1073.0041503906,9.3573837280273},
    {1229.193359375,1174.5899658203,6.820125579834},
    {1229.5440673828,1328.7833251953,6.7419948577881},
    {1229.6319580078,1457.796875,6.734375},
    {1229.1430664063,1603.4959716797,6.734375},
    {1239.5107421875,1694.6842041016,6.6965689659119},
    {1296.5970458984,1796.4979248047,10.659494400024},
    {1291.4168701172,1849.3494873047,10.420990943909},
    {1240.3875732422,1929.41796875,6.6833391189575},
    {1229.5346679688,2037.9178466797,6.734375},
    {1229.037109375,2164.0625,6.7356634140015},
    {1291.5834960938,2247.798828125,10.430912017822},
    {1348.1597900391,2369.6162109375,17.715160369873},
    {1238.9641113281,2433.8754882813,13.927812576294},
    {1140.4916992188,2472.9721679688,10.59375},
    {1058.8698730469,2530.0922851563,10.634737968445},
    {973.70428466797,2584.1821289063,10.559419631958},
    {873.41558837891,2633.5031738281,11.192245483398},
    {772.13873291016,2655.095703125,16.308870315552},
    {652.39471435547,2659.2424316406,29.206588745117},
    {485.54718017578,2658.8503417969,52.501800537109},
    {395.32241821289,2705.8212890625,60.710147857666},
    {249.88844299316,2746.4294433594,59.84375},
    {114.51280975342,2716.7707519531,52.64769744873},
    {-57.757221221924,2640.5903320313,63.835971832275},
    {-177.52903747559,2638.4458007813,63.374572753906},
    {-184.63482666016,2692.2302246094,62.5390625},
    {-205.0924987793,2753.5732421875,62.5390625},
    {-259.57708740234,2728.7602539063,62.5390625},
    {-293.61837768555,2703.8200683594,62.5390625},
    {-377.4765625,2694.322265625,63.805229187012},
    {-451.28961181641,2721.064453125,63.411987304688},
    {-548.43426513672,2725.8310546875,65.067039489746},
    {-643.90057373047,2752.4721679688,60.884624481201},
    {-773.22827148438,2733.203125,45.383228302002},
    {-921.31927490234,2723.9970703125,45.8671875},
    {-1010.397644043,2714.3403320313,45.8671875},
    {-1071.4399414063,2706.431640625,45.8671875},
    {-1190.6403808594,2692.2939453125,45.8671875},
    {-1322.6632080078,2652.080078125,49.945892333984},
    {-1402.0821533203,2560.5068359375,59.528987884521},
    {-1441.6455078125,2444.7729492188,59.466579437256},
    {-1416.7796630859,2314.0092773438,54.492515563965},
    {-1356.1611328125,2174.5090332031,48.68119430542},
    {-1343.4499511719,2033.9217529297,54.121131896973},
    {-1280.3450927734,1935.6683349609,44.184238433838},
    {-1218.4924316406,1866.0548095703,40.865589141846},
    {-1196.5659179688,1802.2718505859,41.364051818848},
    {-1274.7821044922,1836.5871582031,39.971294403076},
    {-1367.2191162109,1858.3969726563,37.322441101074},
    {-1536.0595703125,1866.7894287109,28.523071289063},
    {-1615.9475097656,2016.5988769531,18.49634552002},
    {-1696.4152832031,2188.7893066406,21.04607963562},
    {-1830.8270263672,2289.0185546875,29.024108886719},
    {-1943.8171386719,2530.7592773438,53.577144622803},
    {-2120.0883789063,2666.484375,52.976871490479},
    {-2136.2922363281,2670.4299316406,53.219863891602},
    {-2157.1938476563,2674.8498535156,53.511329650879},
    {-2177.4875488281,2677.939453125,53.790367126465},
    {-2194.3159179688,2679.8747558594,53.993576049805},
    {-2215.0852050781,2680.9265136719,54.252281188965},
    {-2235.6125488281,2681.2260742188,54.522727966309},
    {-2405.5876464844,2673.1625976563,60.213539123535},
    {-2562.0407714844,2671.7111816406,70.765014648438},
    {-2734.6354980469,2623.4602050781,90.175239562988},
    {-2771.5031738281,2443.9008789063,92.612319946289},
    {-2754.0380859375,2296.0239257813,64.839096069336},
    {-2692.3713378906,2147.4104003906,55.4296875},
    {-2692.3842773438,2062.818359375,55.560012817383},
    {-2692.0244140625,1948.0833740234,63.343105316162}, 
    {-2691.8020019531,1824.2430419922,67.592376708984},
    {-2691.7429199219,1678.2078857422,67.043853759766},
    {-2692.0207519531,1500.0096435547,58.247241973877},
    {-2692.1931152344,1364.6265869141,55.4296875},
    {-2691.037109375,1245.8338623047,55.4296875},
    {-2625.1953125,1134.3801269531,55.4296875},
    {-2499.6120605469,1090.0808105469,55.578125}, 
    {-2387.2971191406,1075.6965332031,55.578125},
    {-2389.5952148438,1028.7783203125,55.578125},
    {-2390.4553222656,896.91522216797,45.296875},
    {-2390.3518066406,790.36083984375,35.020500183105},
    {-2390.3083496094,773.16467285156,35.015625},
    {-2390.3264160156,758.18914794922,35.015625},
    {-2390.330078125,744.05834960938,35.015625},
    {-2390.341796875,729.23931884766,35.015625},
    {-2389.9035644531,645.04431152344,35.015625},
    {-2383.4067382813,524.96649169922,27.485925674438},
    {-2340.9731445313,450.08938598633,33.237155914307},
    {-2277.2138671875,383.40301513672,34.49747467041},
    {-2254.6096191406,303.30108642578,35.1640625},
    {-2235.8991699219,206.0025177002,35.171875},
    {-2160.7944335938,205.79377746582,35.171875},
    {-2149.4462890625,158.73318481445,35.171875}, 
    {-2137.8151855469,106.56034088135,35.171875}, 
    {-2109.8598632813,93.942077636719,35.1640625}, 
    {-2109.4536132813,43.559669494629,35.1640625}, 
    {-2123.9077148438,16.604663848877,35.3203125},  
}

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
    
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 == #districtsBus then
        finishJob()
        playSoundFrontEnd(5)
        outputChatBox(" Zako?czy?e?(a?) prac?.",213750)
    else
        showMarker()
        playSoundFrontEnd(12)
        if getElementData(el,"player:premium"then
        outputChatBox(" [PREMIUM] Zidentyfikowa?e?(a?) punkt i otrzymujesz 7000 PLN.",213750)
        setElementData(el,"player:reputation"getElementData(el,"player:reputation")+2)
        triggerServerEvent("givePlayerMoney"el70000)
        else
        outputChatBox(" Zidentyfikowa?e?(a?) punkt z drogi i otrzymujesz 6000 PLN.",213750)
        setElementData(el,"player:reputation"getElementData(el,"player:reputation")+2)
        triggerServerEvent("givePlayerMoney"el60000)
        end
    end
end

-- Kod s?‚uĹĽ?…cy od sprawdzania prawa jazdy
function getVehicleLicense(plr,type)
    if getElementData(plr,"player:license:pjC"..type.."") ~= 1 then
        outputChatBox(" Nie posiadasz prawa jazdy kategorii "..type..", zdaj je w urz?™dzie miasta"plr213750)
        return
    end
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_punish WHERE serial=? AND type=? AND active=1 AND time>NOW()"getPlayerSerial(plr), tostring(type))
    if result and #result > 0 then
        v=result[1]
        outputChatBox(" Posiadasz zawieszone prawo jazdy do "..v.time.." za "..v.reasonplr,213750)
        return true
    else
        exports["ogrpg-db"]:dbSet("DELETE FROM ogrpg_punish WHERE serial=? AND type=? AND active=1 AND time<NOW()"getPlayerSerial(plr), tostring(type))
        return false
    end
end

function showMarker()
    if jobMarker and isElement(jobMarkerthen
        --outputChatBox("* Sprz?tn??e?(a?) ?mieci z drogi i otrzymujesz 16 PLN.")
        --if getElementData(localPlayer,"player:premium"then
        --outputChatBox("* Sprz?tn??e?(a?) ?mieci z drogi i otrzymujesz 32 PLN.",localPlayer)
        --triggerServerEvent("givePlayerMoney"localPlayer320)
        --else
        --outputChatBox("* Sprz?tn??e?(a?) ?mieci z drogi i otrzymujesz 16 PLN.",localPlayer)
        --triggerServerEvent("givePlayerMoney"localPlayer160)
        destroyElement(jobMarker)
        jobMarker nil
    end
    
    jobTarget jobTarget 1
    jobMarker createMarker(districtsBus[jobTarget][1], districtsBus[jobTarget][2], districtsBus[jobTarget][3], "checkpoint"2.5212,194,0)
    
    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(" Rozpocz??e?(a?) prac?.",213750)
    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?(a?) prac?.",213750)
        end
    end
end)


bus.lua

&#65279;--[[

@copyright 2015 Rudy <kmil50489@gmail.com>
@author Rudy <kmil50489@gmail.com>

Nie masz prawa u?ywac tego kodu bez mojej zgody.
Napisz do mnie bymo?e sizgodzna u?ycie kodu.
--]]

local b=createElement("text")
setElementData(b,"name","Street View\nLevel: 1\nWymagania:\nKategoria: C\noraz 1000RP")
setElementPosition(b,-2128.3483886719,5.9528646469116,35.3203125)

local zone createColCuboid(-1989.4969482422949.9393310546944.3491859436045.98.34.5)

createBlip(-2127.947265625,5.9392910003662,35.320312546,2,0,0,0,0,0,275)

local m1 createMarker(-2128.3483886719,5.9528646469116,35.453125-1"cylinder"1212,194,0)
vehs = {}


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 przygotowania."el,213750)
        return
    end
    if getElementData(el,"player:license:pjC") ~= 1 then
    outputChatBox ("Aby tu pracowa? musisz mie? zdane prawo jazdy kat. C!",el,213750)            
    return
    end
    if getElementData(el,"player:reputation") <= 999 then
        outputChatBox ("Aby tu pracowa? musisz mie? 1000 RP!",el,213750)
        return
    end     

    if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(elthen return end
    if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox(" Parking zaj?ty czekaj a? wyjedzie!",el,213, 75, 0) return end
    
    local x,y,getElementPosition(el)
    local bus createVehicle(400, -2124.23,1.16,35.41,0.0,0.0,272.5)
 
    setElementData(bus,"vehicle:desc","Street View\n! Prosz? Zachowa? Ostro?no?? !")
    setElementData(bus"zrespilGracz"el)
    setElementData(bus"vehicle:fuel"100)
    setElementData(bus"vehicle:mileage"math.random(12978,109237))
    setVehiclePlateText(bus"PL-PRACA" )
    setVehicleColor(bus212,194,)
    
    setVehicleHandling(bus,"maxVelocity"100.00) -- 40 10 50km/h
    
    warpPedIntoVehicle(elbus)
    removePreviousVehicles(el)
    triggerClientEvent(el"STARTJobBus"resourceRootbus)
    setVehicleHandling(bus,"maxVelocity"100.00) -- 40 10 50km/h

    vehs[el] = bus
    vehicles_object[bus] = createObject(3031,0,0,0)
    attachElements(vehicles[bus],bus,0.3,-0.9,1.6,0,0,90)
end)

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

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

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

addEventHandler("onElementDestroy",resourceRoot,function()
  if getElementType(source) == "vehicle" then
    if vehicles[sourcethen destroyElement(vehicles[source]); vehicles[source] = nil end
  end
end)

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


Masz tutaj 2 kody daj mi od razu tabelk? do tego jak zrobisz i skrypt na topki.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-12, 21:27


Gravgor







Wiek: 22
Na forum: 3619 dni
Posty: 380
Nick w MP: 1944

Piwa: 702

Respekt: 57,8

Chodzi Ci o takie topki, ?e przyk?adowo: Kto najwi?cej zarobi??

Podpis
Portfolio marceliborowczak.me
Postaw piwo autorowi tego posta
 

 
Wysłany: 2019-02-13, 09:03


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3098 dni
Posty: 964

Piwa: 3102

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

Gravgor, ilo?? uko?czonych tras tak?e do magazyniera je?eli by si? da?o ilo?? oddanych paczek.

[ Dodano: 2019-02-17, 18:26 ]
@ref

Postaw piwo autorowi tego posta
 

 
Tagi: topki :: pod :: 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 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