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

Wysłany: 2018-06-04, 17:49


killercycDDS

Migacz






Wiek: 25
Na forum: 4512 dni
Posty: 629
Nick w MP: killer_cyc[DDS]

Piwa: 1659

Respekt: 22

Witam zrobi?em sobie prac? na tartak wszystko ?adnie dzia?a wi?c postanowi?em zrobi?, ?e musisz donie?? stworzone drewno z tabeli "o" lecz teraz to ani drzew nie pokazuje ani niczego debugscript 3 czysty

= {
    {-1183.07, -1054.53129.22},
    {-1172.19, -1037.23129.22},
    {-1152.89, -957.45129.22},
    {-1043.15, -1033.05129.21},
    {-1088.06, -1046.35129.21},
    {-1154.39, -1048.53129.22},
    {-1181.89, -982.51129.22},
    {-1157.75, -938.56129.22},
    {-1157.03, -934.55129.22},

}    
= {
    {-1196.55, -1069.02129.22},
    
    
}
function stworztartak(plrmd)
    math.random(1#q)
    math.random(1#o)
    object createObject(616q[x][1], q[x][2], q[x][3]-1.550,0q[x][4], false)
    setObjectScale(object1)
    object2 createObject(1463q[x][1], q[x][2], q[x][3]-1.550,0q[x][4], false)
    setObjectScale(object21)
    marker createMarker(q[x][1], q[x][2], q[x][3]+4"arrow"1.4255,0,040)
    blip createBlip(q[x][1], q[x][2], q[x][3],12)
    blip2 createBlip(o[y][1], o[y][2], o[y][3],12)
    marker2 createMarker(q[x][1], q[x][2], q[x][3], "corona"1.20,0,0)
    marker3 createMarker(q[x][1], q[x][2], q[x][3], "arrow"1.20,0,0)
    marker4 createMarker(o[y][1], o[y][2], q[y][3], "arrow"1.20,0,0)
    toggleControl("sprint"false)
    attachElements object200.80.5)
    setElementAlpha(marker2255)
end

addEvent("tartak"true)

addEvent("usunmarkery2"true)
addEventHandler("usunmarkery2"getRootElement(), function(gracz,dim)
    if isElement(object) then
    destroyElement(object)
    end
    if isElement(markerthen
    destroyElement(marker)
    end
    if isElement(blipthen
    destroyElement(blip)
    end
    if isElement(marker2then
    destroyElement(marker2)
    end
    if isElement(marker3then
    destroyElement(marker3)
    end
    if isElement(marker4then
    destroyElement(marker4)
    end
    if isElement(blip2then
    destroyElement(blip2)
    end
    if isElement(object2then
    destroyElement(object2)
    end
end)

function nastepnatartak(plr,md)
if getElementData(localPlayer,"player:svip"then 
            local money math.random(50000,52000)
            local reputation math.random(3,4)
            triggerServerEvent("givePlayerMoney"localPlayermoney) 
            setElementData(localPlayer,'player:reputation',getElementData(localPlayer,'player:reputation')+reputation)
            outputChatBox ("[SuperVIP] Za sciecie drzewa otrzymujesz "..money.." PLN"255255255true )
        elseif getElementData(localPlayer,'player:vip'then
            local money math.random(48500,49900)
            local reputation math.random(1,2)
            triggerServerEvent("givePlayerMoney"localPlayermoney)  
            setElementData(localPlayer,'player:reputation',getElementData(localPlayer,'player:reputation')+reputation)
            outputChatBox ("[VIP] Za sciecie drzewa otrzymujesz "..money.." PLN"255255255true )
        else
            local money math.random(47000,48000)
            local reputation math.random(0,1)
            triggerServerEvent("givePlayerMoney"localPlayermoney) 
            setElementData(localPlayer,'player:reputation',getElementData(localPlayer,'player:reputation')+reputation)
            outputChatBox ("[GRACZ] Za sciecie drzewa otrzymujesz "..money.." PLN"255255255true )
    end
    if isElement(object) then
    destroyElement(object)
    end
    if isElement(markerthen
    destroyElement(marker)
    end
    if isElement(blipthen
    destroyElement(blip)
    end
    if isElement(marker2then
    destroyElement(marker2)
    end
    if isElement(marker3then
    destroyElement(marker3)
    end
    if isElement(marker4then
    destroyElement(marker4)
    end
    if isElement(blip2then
    destroyElement(blip2)
    end
    if isElement(object2then
    destroyElement(object2)
    end
    setElementFrozen(plr,false)
    setPedAnimation(plr,nil,nil)
    math.random(1#q)
    math.random(1#o)
    object createObject(616q[x][1], q[x][2], q[x][3]-1.550,0q[x][4], false)
    setObjectScale(object1)
    marker createMarker(q[x][1], q[x][2], q[x][3]+4"arrow"1.4255,0,040)
    blip createBlip(q[x][1], q[x][2], q[x][3],12)
    blip2 createBlip(o[y][1], o[y][2], o[y][3],12)
    marker2 createMarker(q[x][1], q[x][2], q[x][3], "corona"1.20,0,0)
    marker2 createMarker(q[x][1], q[x][2], q[x][3], "corona"1.20,0,0)
    marker3 createMarker(q[x][1], q[x][2], q[x][3], "arrow"1.20,0,0)
    marker4 createMarker(o[y][1], o[y][2], q[y][3], "arrow"1.20,0,0)
    toggleControl("sprint"false)
    attachElements object200.80.5)
    setElementAlpha(marker2255)
end

addEventHandler("onClientMarkerHit"getRootElement(), function(el,md)
if el ~= localPlayer then return end
    if source == marker2 then
        setElementFrozen(eltrue)
        setPedAnimation (el"CHAINSAW""WEAPON_csaw", -1truefalse )
        if source == marker3 then end
        setPedAnimation localPlayer"CARRY""putdwn"1,false )
        setTimer(nastepnatartak,8000,1,el,md)
    end
end)

poprawione

Ostatnio zmieniony przez killercycDDS 2018-06-04, 18:16, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Tagi: tartak :: nie :: działa :: poprawnie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » tartak nie działa poprawnie 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