Почему не работает скрипт?

Senya.Volin

Участник
Автор темы
67
4
Версия MoonLoader
Другое
Lua:
script_name("timer.weaponarm") -- Название скрипта
script_author("noname") -- Автор скрипта
script_description("Timer") -- Про скрипт



require "lib.moonloader"
local keys = require "vkeys"

function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end


    sampRegisterChatCommand("timer", cmd_timer)
    wait(0)
end
 
 
function cmd_timer()
        sampAddChatMessage("60")
        wait(10000)
        sampAddChatMessage("50")
        wait(10000)
        sampAddChatMessage("40")
        wait(10000)
        sampAddChatMessage("30")
        wait(10000)
        sampAddChatMessage("20")
        wait(10000)
        sampAddChatMessage("10")
        wait(0)
        sampAddChatMessage("One minute passed")
end