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

Wysłany: 2018-03-10, 19:32


MonsteR2002







Wiek: 25
Na forum: 3436 dni
Posty: 20
Nick w MP: MonsteR2002

Piwa: 49

Respekt: 50

Witam pomo?e mi ktos przerobi? to ?eby by?o dost?pne od prawka kat.L ?

local b=createElement("text")
setElementData(b,"name","PRACA: Fotografie z lotu ptaka\nZAROBEK:\nGRACZ 18000PLN | PREMIUM 22000PLN\nOPIS: Wlatywanie w punkty wyznaczone przez system")
setElementPosition(b,1893.29749, -2328.5607914+0.5)

local zone createColCuboid(1967.2745361328, -2380.185791015612.54687511.7516.757.5)

createBlip(1893.29749, -2328.5607913.5468846,2,0,0,0,0,0,275)

local m1 createMarker(1893.29749, -2328.5607912"cylinder"210225551)
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)
        return
    end
    
    if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(elthen return end
    if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("* Pas lotu zaj?ty! Poczekaj na zwolnienie miejsca!",el) return end
    
    local x,y,getElementPosition(el)
    local bus createVehicle(5931971.92505,-2370.13916,15,360.1,1,180) 
 
    setElementData(bus,"vehicle:desc","Praca fotografa lotniczego!\n! Prosz? Zachowa? Ostro?no?? !")
    setElementData(bus"zrespilGracz"el)
    setElementData(bus"vehicle:fuel"100000)
    setElementData(bus"vehicle:mileage"math.random(12978,109237))
    setVehiclePlateText(bus" PRACA" )
    setVehicleColor(bus096255 )
    
    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
    veh_obj[bus] = createObject(3031,0,0,0)
    attachElements(veh_obj[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 veh_obj[sourcethen destroyElement(veh_obj[source]); veh_obj[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)


Podpis
Potrzebujesz mapera? pisz!
-Cena za 1 mape (2zl)
-Cena za mapowanie calego serwera (7;50)
(płatnosc sms)
Ostatnio zmieniony przez MonsteR2002 2018-03-10, 19:44, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-10, 19:41


jagoreq







Wiek: 24
Na forum: 3221 dni
Posty: 221
Nick w MP: dwd

Piwa: 18

Respekt: 66,3

Ostrzeżeń: 20%
"MonsteR2002" napisał/a:

Witam pomo?e mi ktos przerobi? to ?eby by?o dost?pne od prawka kat.L ?
Kod:


local b=createElement("text")
setElementData(b,"name","PRACA: Fotografie z lotu ptaka\nZAROBEK:\nGRACZ 18000PLN | PREMIUM 22000PLN\nOPIS: Wlatywanie w punkty wyznaczone przez system")
setElementPosition(b,1893.29749, -2328.56079, 14+0.5)

local zone = createColCuboid(1967.2745361328, -2380.1857910156, 12.546875, 11.75, 16.75, 7.5)

createBlip(1893.29749, -2328.56079, 13.54688, 46,2,0,0,0,0,0,275)

local m1 = createMarker(1893.29749, -2328.56079, 12, "cylinder", 2, 102, 255, 51)
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(el, md)
if getElementData(el, "zrespilGracz") then
outputChatBox("Praca w trakcie przygotowania.", el)
return
end

if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(el) then return end
if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("* Pas lotu zaj?ty! Poczekaj na zwolnienie miejsca!",el) return end

local x,y,z = getElementPosition(el)
local bus = createVehicle(593, 1971.92505,-2370.13916,15,360.1,1,180)

setElementData(bus,"vehicle:desc","Praca fotografa lotniczego!\n! Prosz? Zachowa? Ostro?no?? !")
setElementData(bus, "zrespilGracz", el)
setElementData(bus, "vehicle:fuel", 100000)
setElementData(bus, "vehicle:mileage", math.random(12978,109237))
setVehiclePlateText(bus, " PRACA" )
setVehicleColor(bus, 0, 96, 255 )

setVehicleHandling(bus,"maxVelocity", 100.00) -- 40 + 10 = 50km/h

warpPedIntoVehicle(el, bus)
removePreviousVehicles(el)
triggerClientEvent(el, "STARTJobBus", resourceRoot, bus)
setVehicleHandling(bus,"maxVelocity", 100.00) -- 40 + 10 = 50km/h

vehs[el] = bus
veh_obj[bus] = createObject(3031,0,0,0)
attachElements(veh_obj[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[source] then
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 veh_obj[source] then destroyElement(veh_obj[source]); veh_obj[source] = nil end
end
end)

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


Po 1. Daj to w znacznikach lua
Po 2. Pozamieniaj edaty

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-10, 19:45


MonsteR2002







Wiek: 25
Na forum: 3436 dni
Posty: 20
Nick w MP: MonsteR2002

Piwa: 49

Respekt: 50

Jak element daty? zielony jestem,nie za bardzo wiem

Podpis
Potrzebujesz mapera? pisz!
-Cena za 1 mape (2zl)
-Cena za mapowanie calego serwera (7;50)
(płatnosc sms)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-10, 20:14


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

Trzymaj,

local b=createElement("text")
setElementData(b,"name","PRACA: Fotografie z lotu ptaka\nZAROBEK:\nGRACZ 18000PLN | PREMIUM 22000PLN\nOPIS: Wlatywanie w punkty wyznaczone przez system")
setElementPosition(b,1893.29749, -2328.5607914+0.5)

local zone createColCuboid(1967.2745361328, -2380.185791015612.54687511.7516.757.5)

createBlip(1893.29749, -2328.5607913.5468846,2,0,0,0,0,0,275)

local m1 createMarker(1893.29749, -2328.5607912"cylinder"210225551)
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)
        return
    end
    
    if not md or getElementType(el) ~= "player" or getPedOccupiedVehicle(elthen return end
    if #getElementsWithinColShape(zone,"vehicle") >= 1 then outputChatBox("* Pas lotu zaj?ty! Poczekaj na zwolnienie miejsca!",el) return end
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_punish WHERE type=? AND active=? AND serial=? AND time>NOW()","prawko",1,getPlayerSerial(el))
    if #result >= 1 then
        outputChatBox("Posiadasz zawieszon? licencje: L",el)
    return end
    if getElementData(el,"player:license:pjL") == 0 then
        outputChatBox("Nie posiadasz zdanej licencji kategori L"el25500)
        return
    end
    
    local x,y,getElementPosition(el)
    local bus createVehicle(5931971.92505,-2370.13916,15,360.1,1,180) 
 
    setElementData(bus,"vehicle:desc","Praca fotografa lotniczego!\n! Prosz? Zachowa? Ostro?no?? !")
    setElementData(bus"zrespilGracz"el)
    setElementData(bus"vehicle:fuel"100000)
    setElementData(bus"vehicle:mileage"math.random(12978,109237))
    setVehiclePlateText(bus" PRACA" )
    setVehicleColor(bus096255 )
    
    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
    veh_obj[bus] = createObject(3031,0,0,0)
    attachElements(veh_obj[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 veh_obj[sourcethen destroyElement(veh_obj[source]); veh_obj[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)


Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-10, 20:23


MonsteR2002







Wiek: 25
Na forum: 3436 dni
Posty: 20
Nick w MP: MonsteR2002

Piwa: 49

Respekt: 50

Nie dzia?a db3 :
-39:exports: Call to non-running server resource(ogrpg-db) [string"?"]
-40:attempt to get length of local "result"a nil value)

Podpis
Potrzebujesz mapera? pisz!
-Cena za 1 mape (2zl)
-Cena za mapowanie calego serwera (7;50)
(płatnosc sms)
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-10, 20:26


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

"MonsteR2002" napisał/a:

Nie dzia?a db3 :
-39:exports: Call to non-running server resource(ogrpg-db) [string"?"]
-40:attempt to get length of local "result"a nil value)


Nauczcie si? czyta? 'skrypterzy' nie masz w??czonego skryptu ogrpg-db . :)

Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
MonsteR2002
Wysłany: 2018-03-10, 20:29


MonsteR2002







Wiek: 25
Na forum: 3436 dni
Posty: 20
Nick w MP: MonsteR2002

Piwa: 49

Respekt: 50

"Ciastuu?" napisał/a:

"MonsteR2002" napisał/a:

Nie dzia?a db3 :
-39:exports: Call to non-running server resource(ogrpg-db) [string"?"]
-40:attempt to get length of local "result"a nil value)


Nauczcie si? czyta? 'skrypterzy' nie masz w??czonego skryptu ogrpg-db . :)


Nie jestem skrypterem :P jestem pseudoSkrypterem,mam w?aczone,jakos ogarne masz piwerko <3

Podpis
Potrzebujesz mapera? pisz!
-Cena za 1 mape (2zl)
-Cena za mapowanie calego serwera (7;50)
(płatnosc sms)
Postaw piwo autorowi tego posta
 

 
Tagi: praca-od :: kat.prawka
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