! Koniecznie zapoznaj się z regulaminem forum.
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również regulaminy działów, w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez Administrację, przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w tym dziale.
Najważniejsze informacje od Administracji możesz przeczytać tutaj oraz tutaj.
Podaj? kod, teraz mamy kas? jak? mieli?my czyli np. mieli?my 50$ to nam nie zabiera ju? kasy i nie mamy na minusie, ale teraz za free mo?na malowa?.
createBlip (-2715, 221.75, 3.4, 63)
setGarageOpen ( 15, true )
local strefyLakiernicze = {
LakierniaDoherty = {
cuboid = {-2730.0549, 210.62022, 3.234375, 14.25, 11.5, 3},--cuboid
marker = {-2715, 221.75, 3.4}, --marker
},
}
for i,v in pairs(strefyLakiernicze) do
l_cuboid = createColCuboid(unpack(v.cuboid))
l_wybor = createMarker(v.marker[1], v.marker[2], v.marker[3], "cylinder", 1, 0, 0, 0, 100)
end
addEventHandler("onMarkerHit",l_wybor,
function ( player )
outputChatBox("-> Aby zmieni? kolor pojazdu, wpisz odpowiedni? komend?.",player, 0, 120, 255, true)
outputChatBox("-> Koszt malowania: 150 z?.",player, 0, 120, 255, true)
outputChatBox("-> Kolory: #ffff00/zolty #ff9900/zloty #ff6600/pomaranczowy #ff0000/czerwony #ff00ff/rozowy #b803ff/fioletowy #800080/purpurowy #0000ff/niebieski #00ffff/niebieski2 #000080/granatowy #00ff00/limonkowy #00b400/zielony #006400/zielony2 #000000/czarny #ffffff/bialy",player, 0, 120, 255, true)
end
)
addCommandHandler("zolty",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("-> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 255, 255, 0)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("zloty",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 255, 200, 0)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("pomaranczowy",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("-> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("-> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 255, 102, 0)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("czerwony",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("-> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("-> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 255, 0, 0)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("rozowy",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 255, 0, 255)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("fioletowy",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 184, 3, 255)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("purpurowy",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 128, 0, 128)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("niebieski",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 0, 0, 255)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("niebieski2",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 0, 255, 255)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("granatowy",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 0, 0, 128)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("limonkowy",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 0, 255, 0)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("zielony",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 0, 180, 0)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("zielony2",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 0, 100, 0)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("czarny",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 0, 0, 0)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("bialy",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
setVehicleColor(pojazd[1], 255, 255, 255)
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
end
end
end
)
addCommandHandler("zolty",
function (player, cmd)
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if isElementWithinMarker(player,l_wybor) then
local pojazd = getElementsWithinColShape(l_cuboid, "vehicle")
if #pojazd<1 then
outputChatBox("> Na stanowisku lakierniczym nie ma ?adnego pojazdu!", el)
return
end
if #pojazd>1 then
outputChatBox("-> Na stanowisku lakierniczym jest zbyt du?o pojazd?w!", el)
return
end
if getPlayerMoney(player) >= 150 then
takePlayerMoney(player, 150)
setVehicleColor(pojazd[1], 255, 255, 0) else -- else = albo
outputChatBox("> Nie masz tyle got?wki!", player) return -- informacja na czacie
end
end
end
)
! Koniecznie zapoznaj się z regulaminem forum.
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również regulaminy działów, w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez Administrację, przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w tym dziale.
Najważniejsze informacje od Administracji możesz przeczytać tutaj oraz tutaj.
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