You are banned from this server.

ddd13371337

Участник
Автор темы
53
5
Версия SA-MP
  1. 0.3.7 (R1)
  2. 0.3.7-R2
  3. 0.3.7-R3
  4. 0.3.7-R4
  5. 0.3DL
  6. 0.3e (R1) / CR-MP
  7. CR-MP 0.3.7
  8. Любая
  9. Другая
не заходит на любые сервера с этим скриптом а он мне нужен хз как исправить
 

Вложения

  • autohealhp.lua
    591 байт · Просмотры: 5

Kirkjubaijaarklaustur

Известный
384
125
Lua:
act = false

function main()
    repeat
        wait(0)
    until isSampAvailable()
    sampAddChatMessage('{0000FF}[AUTOHEAL] /AHEAL', -1)
    sampRegisterChatCommand("aheal",function() act = not act printStringNow(act and "~b~[AUTOHEAL]: ~g~ON" or "~b~[AUTOHEAL]: ~r~OFF", 1000) end)
     while true do wait(0)
        local health = getCharHealth(PLAYER_PED)
        if health <= 10025 and act then -- желаемое количество хп
            local id = select(2, sampGetPlayerIdByCharHandle(PLAYER_PED))
            sampSendChat("/heal "..id)
        end
    end
end
 
  • Нравится
Реакции: ddd13371337