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

Wysłany: 2016-04-09, 16:36


Odważny

Początki LUA :P






Wiek: 25
Na forum: 3739 dni
Posty: 140
Nick w MP: ReseT_

Piwa: 166

Respekt: 50

Mam problem gdyz ktos maluje i ma 0$ to mu zostawie pieniadze na minusie.


createBlip (-2715221.753.463)

setGarageOpen 15true )

local strefyLakiernicze = {
    LakierniaDoherty = {
        cuboid = {-2730.0549210.620223.23437514.2511.53},--cuboid
        marker = {-2715221.753.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"1000100)
end

addEventHandler("onMarkerHit",l_wybor,
    function ( player )
            outputChatBox("> Aby zmieni? kolor pojazdu, wpisz odpowiedni? komend?.",player0120255true)
            outputChatBox("> Koszt malowania: 150 z?.",player0120255true)
            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",player0120255true)
    end
)

addCommandHandler("zolty",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 2552550)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("zloty",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 2552000)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("pomaranczowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 2551020)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("czerwony",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 25500)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("rozowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 2550255)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("fioletowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 1843255)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("purpurowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 1280128)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("niebieski",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 00255)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("niebieski2",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 0255255)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("granatowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 00128)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("limonkowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 02550)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("zielony",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 01800)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("zielony2",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 01000)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("czarny",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 000)
                takePlayerMoney(player150)
        end
    end
)

addCommandHandler("bialy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 255255255)
                takePlayerMoney(player150)
        end
    end
)


Chc? ?eby ka?de kolory da?o si? kupi? je?eli masz pieni?dze, ?eby nie zostawa?y na minusie.
Stawiam piwa

Podpis
, pomogłem Ci? Wynagrodź mnie :piwo: :P
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-09, 16:37


_Wicek_

Majstersztyk






Wiek: 25
Na forum: 4260 dni
Posty: 747
Nick w MP: Wicek

Piwa: 1841

Respekt: 360,5
Respekt: 360,5Respekt: 360,5Respekt: 360,5Respekt: 360,5

Ostrzeżeń: 40%
Taki przyk?adzik

 if getPlayerMoney(player) => 150 then
---- TUTAJ KOD
else
----- INFORMACJA O BRAKU HAJSU
end


Podpis

Support-Team: 25.01.2016
Moderator: 10.07.2016




GG: 51274621
Skype : kuba_wicinski
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-09, 16:38


Emm

***** ***






Wiek: 32
Na forum: 3880 dni
Posty: 3191
Nick w MP: Emm

Piwa: 6162

Respekt: 1580
Respekt: 1580Respekt: 1580


   Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .

Więcej informacji znajdziesz w Wikipedii MTA:

getPlayerMoney

Taki przyk?ad:
if getPlayerMoney(zmienna_gracza) => 150 then 
takePlayerMoney(zmienna_gracza150) 
else
outputChatBox("** Nie posiadasz got?wki na co? tam"zmienna_gracza) return end


edit. Wicek by? szybszy

Podpis

Użytkownik: 20.10.2015r
GTAO Member: 06.03.2016r
Support-Team: 20.01.2016r
Moderator: 30.03.2016r
Mod-Team: 08.10.2016r
Vice Admin: 04.05.2018r
Administrator: 03.05.2022r


! 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.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-09, 16:40


Odważny

Początki LUA :P






Wiek: 25
Na forum: 3739 dni
Posty: 140
Nick w MP: ReseT_

Piwa: 166

Respekt: 50

_Wicek_, Zamiast tego:

  takePlayerMoney(player150)


da? to?

if getPlayerMoney(player) => 150 then
                else
              end


[ Komentarz dodany przez: Emm: 2016-04-09, 16:42 ]
M?j przyk?ad pokazuje jak to zrobi? dok?adniej, z takePlayerMoney itp.

Podpis
, pomogłem Ci? Wynagrodź mnie :piwo: :P
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-09, 16:42


_Wicek_

Majstersztyk






Wiek: 25
Na forum: 4260 dni
Posty: 747
Nick w MP: Wicek

Piwa: 1841

Respekt: 360,5
Respekt: 360,5Respekt: 360,5Respekt: 360,5Respekt: 360,5

Ostrzeżeń: 40%
if getPlayerMoney(player) => 150 then ---- Sprawdza czy gracz ma te 150Je?eli ma wykonaj
takePlayerMoney(player150)
end


Podpis

Support-Team: 25.01.2016
Moderator: 10.07.2016




GG: 51274621
Skype : kuba_wicinski
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-09, 16:59


Odważny

Początki LUA :P






Wiek: 25
Na forum: 3739 dni
Posty: 140
Nick w MP: ReseT_

Piwa: 166

Respekt: 50

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 (-2715221.753.463)

setGarageOpen 15true )

local strefyLakiernicze = {
    LakierniaDoherty = {
        cuboid = {-2730.0549210.620223.23437514.2511.53},--cuboid
        marker = {-2715221.753.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"1000100)
end

addEventHandler("onMarkerHit",l_wybor,
    function ( player )
            outputChatBox("-> Aby zmieni? kolor pojazdu, wpisz odpowiedni? komend?.",player0120255true)
            outputChatBox("-> Koszt malowania: 150 z?.",player0120255true)
            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",player0120255true)
    end
)

addCommandHandler("zolty",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 2552550)
                if getPlayerMoney(player) >= 150 then
                takePlayerMoney(player150)
            end
        end
    end
)

addCommandHandler("zloty",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 2552000)
                if getPlayerMoney(player) >= 150 then
                takePlayerMoney(player150)
            end
        end
    end
)

addCommandHandler("pomaranczowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 2551020)
                if getPlayerMoney(player) >= 150 then
                takePlayerMoney(player150)
            end
        end
    end
)

addCommandHandler("czerwony",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 25500)
                if getPlayerMoney(player) >= 150 then
                takePlayerMoney(player150)
            end
        end
    end
)

addCommandHandler("rozowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 2550255)
               if getPlayerMoney(player) >= 150 then
                takePlayerMoney(player150)
            end
        end
    end
)

addCommandHandler("fioletowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 1843255)
                if getPlayerMoney(player) >= 150 then
                takePlayerMoney(player150)
            end
        end
    end
)

addCommandHandler("purpurowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 1280128)
                if getPlayerMoney(player) >= 150 then
               takePlayerMoney(player150)
           end
        end
    end
)

addCommandHandler("niebieski",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 00255)
                if getPlayerMoney(player) >= 150 then
               takePlayerMoney(player150)
           end
        end
    end
)

addCommandHandler("niebieski2",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 0255255)
                if getPlayerMoney(player) >= 150 then
               takePlayerMoney(player150)
           end
        end
    end
)

addCommandHandler("granatowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 00128)
                if getPlayerMoney(player) >= 150 then
               takePlayerMoney(player150)
           end
        end
    end
)

addCommandHandler("limonkowy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 02550)
                if getPlayerMoney(player) >= 150 then
               takePlayerMoney(player150)
           end
        end
    end
)

addCommandHandler("zielony",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 01800)
                if getPlayerMoney(player) >= 150 then
               takePlayerMoney(player150)
           end
        end
    end
)

addCommandHandler("zielony2",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 01000)
                if getPlayerMoney(player) >= 150 then
               takePlayerMoney(player150)
           end
        end
    end
)

addCommandHandler("czarny",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 000)
                if getPlayerMoney(player) >= 150 then
               takePlayerMoney(player150)
           end
        end
    end
)

addCommandHandler("bialy",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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], 255255255)
                if getPlayerMoney(player) >= 150 then
               takePlayerMoney(player150)
           end
        end
    end
)


Podpis
, pomogłem Ci? Wynagrodź mnie :piwo: :P
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-04-09, 17:02


Emm

***** ***






Wiek: 32
Na forum: 3880 dni
Posty: 3191
Nick w MP: Emm

Piwa: 6162

Respekt: 1580
Respekt: 1580Respekt: 1580


   Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
addCommandHandler("zolty",
    function (playercmd)
        local pojazd getElementsWithinColShape(l_cuboid"vehicle")
        if isElementWithinMarker(player,l_wyborthen
        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(player150) 
                setVehicleColor(pojazd[1], 2552550) else  -- else = albo
                outputChatBox("> Nie masz tyle got?wki!"player) return  -- informacja na czacie
            end
        end
    end
)


Poprzerabiaj tak ka?de

Podpis

Użytkownik: 20.10.2015r
GTAO Member: 06.03.2016r
Support-Team: 20.01.2016r
Moderator: 30.03.2016r
Mod-Team: 08.10.2016r
Vice Admin: 04.05.2018r
Administrator: 03.05.2022r


! 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.
Postaw piwo autorowi tego posta
 

 
Tagi: kasa :: minusie
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