require 'lib.moonloader'
local active = true
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("{FF00FF}You won't die {FFFF00}by Oldbiz :) {0000CB}активация /wdo", 0xFF2020)
sampRegisterChatCommand("wdo", function()
active = not active
sampAddChatMessage(active and "[{FF0000}you won't die{FFFFFF}] активирован." or "[{FF0000}you won't die{FFFFFF}] деактивирован.", -1)
end)
while true do wait(0)
health = getCharHealth(PLAYER_PED)
if health < 20 and active then
sampSendChat("/usedrugs 3")
wait(500)
sampSendChat("/anim 1")
wait(750)
setVirtualKeyDown(VK_RETURN, true)
wait(50)
setVirtualKeyDow(VK_RETURN,false)
end
end
end