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

Wysłany: 2015-08-03, 18:08


sebik2303

Mapper :)






Wiek: 25
Na forum: 4301 dni
Posty: 298
Nick w MP: sebik2303

Piwa: 899

Respekt: 55,3

Witam, czemu jak ju? nie ma tuningu a jeszcze raz wpisz? komend? na usuni?cie to dodaje mi kas? chod? nie ma go. Prosz? o pomoc.

marker = createMarker(-145.853515625, 1165.5009765625, 19.795249938965, "cylinder", 0, 0, 0, 0, 130)

 function addwheels ( sourcePlayer, command )
 if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(sourcePlayer)), aclGetGroup ( "Mechanik_FC" ) ) then
     if isElementWithinMarker(sourcePlayer,marker) then
        theVehicle = getPlayerOccupiedVehicle ( sourcePlayer )
        if ( theVehicle ) then 
            addVehicleUpgrade ( theVehicle, 1098 ) 
            takePlayerMoney(sourcePlayer,3420)
            outputChatBox ( "Zamontowano czesc w pojezdzie.", source, 255, 255, 255, true )
        end
     end
  end
end
addCommandHandler ( "dodaj.1098", addwheels )
 
function remwheels ( sourcePlayer, command )
 if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(sourcePlayer)), aclGetGroup ( "Mechanik_FC" ) ) then
     if isElementWithinMarker(sourcePlayer,marker) then
        theVehicle = getPlayerOccupiedVehicle ( sourcePlayer )
        if ( theVehicle ) then
            removeVehicleUpgrade ( theVehicle, 1098 )
            givePlayerMoney(sourcePlayer,3249)
            outputChatBox ( "Zdemontowano Czesc w pojezdzie.", source, 255, 255, 255, true )
        end
     end
  end
end
addCommandHandler ( "usun.1098", remwheels ) 


[ Dodano: 2015-08-03, 18:55 ]
https://wiki.multitheftauto.com/wiki/GetVehicleUpgradeOnSlot

To b?dzie trza by?o wykorzysta? ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-03, 21:14


Tostuch







Wiek: 28
Na forum: 5072 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

Powinno spe?nia? oczekiwania
local function hasVehUpgrade(veh, upgrade)
    for k,v in pairs (getVehicleUpgrades(veh)) do
        if v == upgrade then
        return v or false
        end
    end
end

function remwheels ( sourcePlayer, command )
 if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(sourcePlayer)), aclGetGroup ( "Mechanik_FC" ) ) then
     if isElementWithinMarker(sourcePlayer,marker) then
        theVehicle = getPlayerOccupiedVehicle ( sourcePlayer )
        if ( theVehicle ) then
            if hasVehUpgrade(theVehicle, 1098) ~= false then
            removeVehicleUpgrade ( theVehicle, 1098 )
            givePlayerMoney(sourcePlayer,3249)
            outputChatBox ( "Zdemontowano Czesc w pojezdzie.", source, 255, 255, 255, true )
            end
        end
     end
  end
end
addCommandHandler ( "usun.1098", remwheels ) 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-08-03, 23:22


sebik2303

Mapper :)






Wiek: 25
Na forum: 4301 dni
Posty: 298
Nick w MP: sebik2303

Piwa: 899

Respekt: 55,3

Tostuch, a mam pytanko.
Jak zrobi? aby kasa z demonta?u cz??ci nie sz?a do mechanika tylko do kierowcy pojazdu?

Postaw piwo autorowi tego posta
 

 
Tagi: usuwanie :: tuningu
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » usuwanie tuningu 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