local smoke = false
function main()
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('asmoke', asmoke)
while true do
wait(0)
local health = getCharHealth(PLAYER_PED)
if smoke then
if health < 80 then
wait(1337)
sampSendChat("/smoke")
end
end
end
end
function asmoke()
smoke = not smoke
if smoke then
printStringNow('~g~on', 1500)
else
printStringNow('~r~off', 1500)
end
end