Показать сообщение отдельно

  #16  
Старый 06.09.2020, 19:35
CaJlaT
Флудер
Регистрация: 06.07.2016
Сообщений: 2,855
С нами: 5185431

Репутация: 183


По умолчанию

Цитата:
Сообщение от S E V E N  

Lua:





Код:
local
memory
=
require
"memory"
memory
.
setuint8
(
0x58932A
,
7
,
true
)

чо я делаю не так?

Код:





Код:
local memory = require 'memory'
local speed = 3
function main()
     while true do
        wait(0)
        if actall then
            local r, g, b, a = rainbow(speed, 255)
            local rgba = join_argb(r, g, b, a)
            local argb = join_argb(a, r, g, b)
            memory.setuint8(0x58932A, rgba, true) -- хп
        end
    end
end
function rainbow(speed, alpha)
    local r = math.floor(math.sin(os.clock() * speed) * 127 + 128)
    local g = math.floor(math.sin(os.clock() * speed + 2) * 127 + 128)
    local b = math.floor(math.sin(os.clock() * speed + 4) * 127 + 128)
    return r,g,b,alpha
end


Цитата:
Сообщение от Спойлер  


Цитата:
Сообщение от Спойлер  


 
Ответить с цитированием