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

Wysłany: 2016-07-27, 19:45


STOPseba

Emeryt na scenie MTA






Wiek: 25
Na forum: 3771 dni
Posty: 448
Nick w MP: STOPseba

Piwa: 5014

Respekt: 576,3
Respekt: 576,3

Witam mam taki problem ze mam skrypt na nie rozwalanie aut bez kierowcy jak go wgram na serwer i uruchomi? to dalej mo?na te auta rozwala?
for _,v in pairs(getElementsByType("vehicle")) do
    if getElementData(v"damageproof")==1 then
        setVehicleDamageProof(sourcetrue)
    else
        setVehicleDamageProof(sourcefalse)
    end
end

addEventHandler("onVehicleExit"root,
function(plrs)
    if s==0 then
        setVehicleDamageProof(sourcetrue)
        setElementData(source"damageproof"1)
    end
end)

addEventHandler("onVehicleEnter"root,
function(plrs)
    if s==0 then
        setVehicleDamageProof(sourcefalse)
        setElementData(source"damageproof"0)
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-27, 19:55


luki123luki123

Place Game






Wiek: 28
Na forum: 5275 dni
Posty: 1948
Nick w MP: LuKiO

Piwa: 6101

Respekt: 611
Respekt: 611Respekt: 611

STOPseba,
for _,v in pairs(getElementsByType("vehicle")) do
    if getVehicleOccupant then
    if isVehicleDamageProof(v) == false then setVehicleDamageProof(vtrueend
    else
        if isVehicleDamageProof(v) == true then setVehicleDamageProof(vfalseend
end

addEventHandler("onVehicleExit"root,
function(plrs)
    if s==0 then
        setVehicleDamageProof(sourcetrue)
    end
end)

addEventHandler("onVehicleEnter"root,
function(plrs)
    if s==0 then
        setVehicleDamageProof(sourcefalse)
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-07-27, 20:09


STOPseba

Emeryt na scenie MTA






Wiek: 25
Na forum: 3771 dni
Posty: 448
Nick w MP: STOPseba

Piwa: 5014

Respekt: 576,3
Respekt: 576,3

nie wiem dlaczego ale dalej nie dzia?a.

Podpis



Kontakt
Discord: STOPseba#7603
STOPseba na fejsie
Messenger


Postaw piwo autorowi tego posta
 

 
Tagi: rozwalanie :: auta
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