| Tematy otagowane jako: kończenie |
| 1. kończenie pracy wszystkim na magazynie |
odczas wej??ia w blip ko?czenia pracy, zaka?cza prac? wszystkim raz wy?wietla notke wszystkim wok??
Jak kto? mo?e to prosze o wys?anie naprawionego kodu (ko?czenie pracy na samym ko?cu)
kod:
[lua]local screenW, screenH = guiGetScreenSize()
local startMagazyn = createMarker(2128.73, -2281.29, 14.24, "cylinder", 1.2)
setElementData(startMagazyn, "praca", true)
setElementDimension(startMagazyn, 0)
x, y = guiGetScreenSize()
px, py = (x/1024), (y/768)
pkt = {
{2162.06, -2263.93, 13.80},
{2159.68, -2270.21, 13.80},
{2137.31, -2255.17, 13.80},
{2143.15, -2254.54, 13.80},
{2143.77, -2249.24, 13.80},
{2150.12, -2252.99, 13.80},
{2148.86, -2248.05, 13.80},
{2160.23, -2258.49, 13.80},
--
{2163.50, -2259.14, 13.80},
{2165.94, -2261.86, 13.80},
{2166.06, -2242.07, 13.80},
{2163.87, -2244.06, 13.80},
{2165.07, -2250.83, 13.80},
{2167.08, -2252.51, 13.80},
{2170.59, -2252.84, 13.80},
{2172.83, -2250.83, 13.80},
{2174.66, -2249.49, 13.80},
}
setElementData(localPlayer, "skrzynia:magazyn", nil)
function isMouseIn ( x, y, width, height )
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then
return true
else
return false
end
end
posx, posy = 465, 6... |
| 2. kończenie wszystkim pracy |
Podczas wej??ia w blip ko?czenia pracy, zaka?cza prac? wszystkim raz wy?wietla notke wszystkim wok??
kod:
[lua]ocal screenW, screenH = guiGetScreenSize()
local startMagazyn = createMarker(2128.73, -2281.29, 14.24, "cylinder", 1.2)
setElementData(startMagazyn, "praca", true)
setElementDimension(startMagazyn, 0)
x, y = guiGetScreenSize()
px, py = (x/1024), (y/768)
pkt = {
{2162.06, -2263.93, 13.80},
{2159.68, -2270.21, 13.80},
{2137.31, -2255.17, 13.80},
{2143.15, -2254.54, 13.80},
{2143.77, -2249.24, 13.80},
{2150.12, -2252.99, 13.80},
{2148.86, -2248.05, 13.80},
{2160.23, -2258.49, 13.80},
--
{2163.50, -2259.14, 13.80},
{2165.94, -2261.86, 13.80},
{2166.06, -2242.07, 13.80},
{2163.87, -2244.06, 13.80},
{2165.07, -2250.83, 13.80},
{2167.08, -2252.51, 13.80},
{2170.59, -2252.84, 13.80},
{2172.83, -2250.83, 13.80},
{2174.66, -2249.49, 13.80},
}
setElementData(localPlayer, "skrzynia:magazyn", nil)
function isMouseIn ( x, y, width, height )
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then
return true
else
return false
end
end
posx, posy = 465, 621
addEventHandler("onClientRender", root, function()
if not getElementData(localPlayer, &... |
|