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

Wysłany: 2020-07-14, 23:19


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Zr?b to w ten spos?b, najprostszy spos?b i najlepszy wed?ug mnie, nie potrzebujesz zadnych timerow, podepnij to pod event onClientRender


kond=getElementData(localPlayer,"kondycja") or 100
    if getPedControlState(localPlayer,"sprint") or getPedControlState(localPlayer,"jump"then
        if kond<=0 then
            setElementHealth(localPlayer,getElementHealth(localPlayer)-0.2)
        elseif kond>0 then
            kond=tonumber(kond)-0.2
        end
    elseif not getPedControlState(localPlayer,"forwards") and not getPedControlState(localPlayer,"backwards") and not getPedControlState(localPlayer,"left") and not getPedControlState(localPlayer,"right"then
        if kond<100 then
            kond=tonumber(kond)+0.1
        end
    end


Postaw piwo autorowi tego posta
 

 
Tagi: uzupelnianie :: prostokatu :: (dxdrawrectangle)
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » uzupelnianie prostokatu (dxDrawRectangle) 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