function system(hitElement)
local vehicle = getPedOccupiedVehicle(hitElement)
if destmarker then
if vehicle then
if rozl_licznik == 0 then
playerPoints = getElementData(hitElement, "Pkt")
local trucks_ids = trucks[getElementModel(vehicle)]
local trailers_ids = trailers[getElementModel(vehicle)]
if vehicle_ids[getElementModel(vehicle)] or getVehicleTowedByVehicle (vehicle) then
local jobstat = getElementData(vehicle, "praca2")
if jobstat == false then
guiSetVisible(oknotoww, true)
showCursor(true)
for k, v in ipairs ( towary ) do
guiSetEnabled ( kupuj [ k ], ( playerPoints >= v [ 3 ] ) )
end
else
rozladunek()
end
else
outputChatBox("To nie jest pojazd dostawczy!", hitElement, 0, 255, 0)
end
else
outputChatBox("Jeszcze nie mo?esz za?adowa?/roz?adowa? towaru!", hitElement)
end
else
outputChatBox("Aby za?adowa?/roz?adowa? towar musisz mie? pojazd!", hitElement, 0, 255, 0)
end
end
end
addEventHandler( "onClientMarkerHit", resourceRoot, system )
Nie zauwa?y?e? poprzedniej wiadomo?ci: "Rozwi?zane... Gdzie ? Domy?lcie si?." ? Jest to ju? rozwi?zane, ale postawi? ci piwo, dlatego ?e po obejrzeniu kodu s?dz?, ?e to te? mo?e dzia?a?.
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