Вопрос

Tensay

Активный
Автор темы
165
52
Версия MoonLoader
.026-beta
Как сделать так, чтобы это работало, только тогда, когда игрок заспавнился? (Чтобы во время авторизации\захода на сервер не работало)
Abeme:
while true do
        wait(0)
        if  isPlayerPlaying(playerHandle) and not sampIsDialogActive() and not sampIsChatInputActive() then
        sampAddChatMessage('2',-1)
            if getCharArmour(PLAYER_PED) <= 20 then
                sampAddChatMessage('use',-1)
                setVirtualKeyDown(VK_1, true)
                wait(20)
                setVirtualKeyDown(VK_1, false)
                   
            end      
        end
end