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

Wysłany: 2017-03-05, 14:14


Pemo97







Wiek: 26
Na forum: 3822 dni
Posty: 49

Piwa: 3

Respekt: 45,3

Witam, mam paczke NewYourLife, i gdy jest ustawiony zarobek na 80PLN w ka?dej pracy np. streetview, to si? dostaje 80PLN do bankomatu,a jak ustawie zarobek 3000PLN to nic si? nie dostaje tylko pisz? ?e dosta?em..

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 14:49


dida102

LUA To moja Pasja






Wiek: 25
Na forum: 3612 dni
Posty: 86
Nick w MP: Remi

Piwa: 642

Respekt: 20

Ostrzeżeń: 100%
daj db 3 i kodzik

Podpis
Witaj na Moim Profilu.
Chętnie Pomogę Skype Pazdaix.
Szukam Mapera,Web Mastera,Modelarza Na Serwer Autorski Pod SQL .
Co Potrafię ,XML,LUA,Mapować,CSS,gui editor,siren editor.

!Pomogłem?Zostaw Respekt Oraz Piwo.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 14:56


Pemo97







Wiek: 26
Na forum: 3822 dni
Posty: 49

Piwa: 3

Respekt: 45,3

mam ogrpg-db i DB2

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:13


_Haze

Peace Yo!






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

Piwa: 2628

Respekt: 1020
Respekt: 1020

Pemo97, db 1 i db 2 jako zasoby to po??czenie do mysql. db 3 to jest tzw /debugscript 3 pokazuj? si? tam b??dy przy starcie skryptu/eventu. Podaj kod.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:21


Pemo97







Wiek: 26
Na forum: 3822 dni
Posty: 49

Piwa: 3

Respekt: 45,3

Nie wiem gdzie jest ten kod..

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:26


amited







Wiek: 26
Na forum: 3714 dni
Posty: 1233
Nick w MP: Amited

Piwa: 512

Respekt: 466
Respekt: 466

w b??dzie jest napisana ?cie?ka do pliku.

Podpis
"amited" napisał/a:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:28


Pemo97







Wiek: 26
Na forum: 3822 dni
Posty: 49

Piwa: 3

Respekt: 45,3

Tylko ?e nie ma ?adnego b?edu tylko co? blokuje ?e sie nie dostaje wi?cej ni? 3000 PLN do bankomatu

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:30


amited







Wiek: 26
Na forum: 3714 dni
Posty: 1233
Nick w MP: Amited

Piwa: 512

Respekt: 466
Respekt: 466

to podaj ten kod zarobku

Podpis
"amited" napisał/a:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:33


Pemo97







Wiek: 26
Na forum: 3822 dni
Posty: 49

Piwa: 3

Respekt: 45,3

Kod:

local districtsBus = {

{-1986.92, 935.31, 45.30},
{-2002.48, 924.51, 45.30},
{-2008.31, 887.55, 45.30},
{-2008.17, 834.59, 45.30},
{-2007.89, 759.92, 45.30},
{-1984.33, 728.10, 45.30},
{-1913.74, 727.53, 45.30},
{-1895.93, 758.23, 45.30-0.2},
{-1895.81, 814.11, 35.51-0.4},
{-1895.44, 867.77, 35.02},
{-1895.12, 909.97, 35.02},
{-1868.51, 920.64, 35.02},
{-1814.47, 920.15, 24.74},
{-1790.50, 957.41, 24.73},
{-1790.08, 1042.79, 31.16-1},
{-1790.48, 1092.34, 45.30},
{-1747.34, 1100.14, 45.29},
{-1710.80, 1122.96, 44.09-0.8},
{-1710.91, 1170.81, 25.47-0.5},
{-1738.79, 1191.10, 24.98},
{-1806.16, 1190.50, 24.97},
{-1864.76, 1181.62, 44.22-0.8},
{-1941.06, 1181.27, 45.30},
{-1968.86, 1134.57, 50.21-0.4},
{-1969.36, 1079.88, 55.57},
{-1929.44, 1051.48, 50.92-0.3},
{-1888.07, 1040.56, 45.18-0.3},
{-1898.95, 973.68, 35.02},
{-1911.91, 934.74, 35.03-0.2},
{-1957.99, 934.49, 43.10-0.4},
{-1979.58, 941.75, 45.45-0.2},
{-1980.02, 955.66, 45.45-0.1},

}

local jobTarget
local jobMarker
local jobVehicle
local maxTarget = #districtsBus

function finishJob()
if jobMarker and isElement(jobMarker) then
destroyElement(jobMarker)
jobMarker = nil
end

if jobTarget and isElement(jobTarget) then
destroyElement(jobTarget)
jobTarget = nil
jobTarget = 0

end

triggerServerEvent("destroyVeh", localPlayer)

end


function busDriver(el, md)
if el ~= localPlayer or not md then return end
if jobTarget > maxTarget and getPedOccupiedVehicle(el) then return end
if jobTarget == maxTarget and not getPedOccupiedVehicle(el) then return end

if jobTarget == #districtsBus then
finishJob()
playSoundFrontEnd(5)
outputChatBox("* Zako?czy?e?(a?) prac?.")
else
showMarker()
playSoundFrontEnd(12)
if getElementData(el,"player:premium") then
outputChatBox("* Zidentyfikowa?e?(a?) punkt i otrzymujesz 4000 EURO.")
setElementData(el,"player:reputation", getElementData(el,"player:reputation")+math.random(0,1))
triggerServerEvent("givePlayerMoney", el, 4000, 0)
else
outputChatBox("* Zidentyfikowa?e?(a?) punkt z drogi i otrzymujesz 3000 EURO.")
setElementData(el,"player:reputation", getElementData(el,"player:reputation")+math.random(0,1))
triggerServerEvent("givePlayerMoney", el, 3090, 0)
end
end
end

function showMarker()
if jobMarker and isElement(jobMarker) then
--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", localPlayer, 32, 0)
--else
--outputChatBox("* Sprz?tn??e?(a?) ?mieci z drogi i otrzymujesz 16 PLN.",localPlayer)
--triggerServerEvent("givePlayerMoney", localPlayer, 16, 0)
destroyElement(jobMarker)
jobMarker = nil
end

jobTarget = jobTarget + 1
jobMarker = createMarker(districtsBus[jobTarget][1], districtsBus[jobTarget][2], districtsBus[jobTarget][3], "checkpoint", 1.75, 255, 255, 255)

if districtsBus[jobTarget+1] then
ile = districtsBus[jobTarget+1]
setMarkerTarget(jobMarker, ile[1], ile[2], ile[3])
end

addEventHandler("onClientMarkerHit", jobMarker, busDriver)
end

addEvent("STARTJobBus", true)
addEventHandler("STARTJobBus", resourceRoot, function(veh)
outputChatBox("* Rozpocz??e?(a?) prac?.")
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(plr, seat)
if seat == 0 then
if plr == localPlayer then
finishJob()
outputChatBox("* Zako?czy?e?(a?) prac?.")
end
end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:37


amited







Wiek: 26
Na forum: 3714 dni
Posty: 1233
Nick w MP: Amited

Piwa: 512

Respekt: 466
Respekt: 466

no przecie? w pracy dostajes 3090/4000 euro to o co chodzi? podaj jeszcze stron? servera tego pliku

Podpis
"amited" napisał/a:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:38


Pemo97







Wiek: 26
Na forum: 3822 dni
Posty: 49

Piwa: 3

Respekt: 45,3

W?asnie oto chodzi ?e jak ustawie 3000 PLN to nie daje mi tego, a jak 60, 300 PLN To mi doda.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:40


amited







Wiek: 26
Na forum: 3714 dni
Posty: 1233
Nick w MP: Amited

Piwa: 512

Respekt: 466
Respekt: 466

podaj strone servera.

Podpis
"amited" napisał/a:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:41


Pemo97







Wiek: 26
Na forum: 3822 dni
Posty: 49

Piwa: 3

Respekt: 45,3

Na czym stoi serwer czy co? - Serwerygier.com
a je?li chodzi o paczk? to - http://gtao.pl/%3Cfont-co...10-vt108912.htm

Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:42


amited







Wiek: 26
Na forum: 3714 dni
Posty: 1233
Nick w MP: Amited

Piwa: 512

Respekt: 466
Respekt: 466

to co poda?e? to strona clienta a w tej pracy powinien by? 2 plik z dopisk? lub bez "-s" to strona servera

Podpis
"amited" napisał/a:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-03-05, 15:43


Pemo97







Wiek: 26
Na forum: 3822 dni
Posty: 49

Piwa: 3

Respekt: 45,3

Kod:

--[[

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

Nie masz prawa u?ywac tego kodu bez mojej zgody.
Napisz do mnie by? mo?e si? zgodz? na u?ycie kodu.
--]]

local b=createElement("text")
setElementData(b,"name","PRACA: Kierowca StreetView\nZAROBEK:\nGRACZ 3000EURO | PREMIUM 4000EURO")
setElementPosition(b,-1990.74, 957.88, 45.45)

local zone = createColCuboid(-1989.4969482422, 949.93933105469, 44.349185943604, 5.9, 8.3, 4.5)

createBlip(-1984.40, 953.92, 45.45, 46,2,0,0,0,0,0,275)

local m1 = createMarker(-1990.74, 957.88, 45.45-1, "cylinder", 1.5, 35, 142, 35)
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("* Parking zaj?ty czekaj a? wyjedzie!",el) return end

local x,y,z = getElementPosition(el)
local bus = createVehicle(400, -1986.33, 955.06, 45.34+0.2, 0.00, -0.00, 178.49)

setElementData(bus,"vehicle:desc","Kierowca StreevView\n! Prosz? Zachowa? Ostro?no?? !")
setElementData(bus, "zrespilGracz", el)
setElementData(bus, "vehicle:fuel", 100)
setElementData(bus, "vehicle:mileage", math.random(69,2500))
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)


Postaw piwo autorowi tego posta
 

 
Tagi: pieniadze :: 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