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: 4160 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.8535156251165.500976562519.795249938965"cylinder"0000130)

 function addwheels sourcePlayercommand )
 if isObjectInACLGroup "user." .. getAccountName(getPlayerAccount(sourcePlayer)), aclGetGroup "Mechanik_FC" ) ) then
     if isElementWithinMarker(sourcePlayer,markerthen
        theVehicle getPlayerOccupiedVehicle sourcePlayer )
        if ( theVehicle then 
            addVehicleUpgrade theVehicle1098 ) 
            takePlayerMoney(sourcePlayer,3420)
            outputChatBox "Zamontowano czesc w pojezdzie."source255255255true )
        end
     end
  end
end
addCommandHandler "dodaj.1098"addwheels )
 
function remwheels sourcePlayercommand )
 if isObjectInACLGroup "user." .. getAccountName(getPlayerAccount(sourcePlayer)), aclGetGroup "Mechanik_FC" ) ) then
     if isElementWithinMarker(sourcePlayer,markerthen
        theVehicle getPlayerOccupiedVehicle sourcePlayer )
        if ( theVehicle then
            removeVehicleUpgrade theVehicle1098 )
            givePlayerMoney(sourcePlayer,3249)
            outputChatBox "Zdemontowano Czesc w pojezdzie."source255255255true )
        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: 27
Na forum: 4931 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

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

function remwheels sourcePlayercommand )
 if isObjectInACLGroup "user." .. getAccountName(getPlayerAccount(sourcePlayer)), aclGetGroup "Mechanik_FC" ) ) then
     if isElementWithinMarker(sourcePlayer,markerthen
        theVehicle getPlayerOccupiedVehicle sourcePlayer )
        if ( theVehicle then
            if hasVehUpgrade(theVehicle1098) ~= false then
            removeVehicleUpgrade theVehicle1098 )
            givePlayerMoney(sourcePlayer,3249)
            outputChatBox "Zdemontowano Czesc w pojezdzie."source255255255true )
            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: 4160 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