Помогите lua скрипт

Статус
В этой теме нельзя размещать новые ответы.

Terratomorf

Известный
Автор темы
317
59
У меня есть кликер по текстдраву 306 когда открывается меню и там появляется этот текстдрав он на него кликает но потом почему-то зависатет камера вот код
Код:
script_name('AutoTextdrawClicker by Dessgun')
function main()
    if not isSampfuncsLoaded() or not isSampLoaded() then return end
    sampRegisterChatCommand("click", cmd_bot)
        while true do
        wait(0)
        if isPlayerPlaying(playerHandle) and enabled then
---------------------------------------------------------------------------
if sampTextdrawIsExists(306)then
sampSendClickTextdraw(306)
end
if sampTextdrawIsExists(306) then
sampSendClickTextdraw(306)
end
---------------------------------------------------------------------------
enabled = true
        end
    end
end 
function cmd_bot(param)
    enabled = not enabled
    if enabled then
        sampAddChatMessage(string.format("[%s]: Activated", thisScript().name), 0x40FF40)
    else
        sampAddChatMessage(string.format("[%s]: Deactivated", thisScript().name), 0xFF4040)
    end
end
 
Статус
В этой теме нельзя размещать новые ответы.