require 'lib.moonloader'
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", active)
active = false
while true do
wait(0)
health = getCharHealth(PLAYER_PED)
if health < 20 and active then
sampProcessChatInput("/usedrugs 3")
wait(500)
sampSendChat("0")
wait(0)
setVirtualKeyDown(ID, true)
wait(100)
setVirtualKeyDown(ID, false)
end
end
end
function active()
if active == true then
active = false
sampAddChatMessage("[{FF0000}you won't die{FFFFFF}] деактивирован.", -1)
else
active = true
sampAddChatMessage("[{00FF00}you won't die{FFFFFF}] активирован.", -1)
end
end