Не работает скрипт lua

ганстер

Участник
Автор темы
65
10
pikap:
local active = false
function main()
    while not isSampAvailable() do wait(0) end
    sampRegisterChatCommand('pizda', function()
        active = not active
        sampAddChatMessage(tostring(active), -1)
    end)
    while true do
        wait(5000)
        if active then
            sampSendPickedUpPickup(2216)
        end
    end
end
 

Вложения

  • piar_-_Copy.lua
    428 байт · Просмотры: 2