Изменить код

HaU

Активный
Автор темы
190
99
Переместить текст с цифрами вверх экрана
 

Вложения

  • 5832.lua
    653 байт · Просмотры: 3

#######

Участник
195
13
Rjl:
function main()
    local delay = 1000
    sampRegisterChatCommand('setdelay', function(arg)
        if arg:match('%d+') then
            delay = tonumber(arg)
            sampAddChatMessage('new delay = '..delay, -1)
        else
            sampAddChatMessage('incorrect delay', -1)
        end
    end)
    sampRegisterChatCommand('startnum', function()
        active = not active
        sampAddChatMessage(active and 'on' or 'off', -1)
    end)
    while true do wait(delay)
        if active then
            math.randomseed(os.time()^3.14)
            printStyledString(math.random(18,5832), delay, 4)
        end
    end
end