Auto-translated
Agas.
function proverka()
while 1 do
sleep(1)
if GetHeroCreatures ('heroname' , creature_id) < 1 then
--what happens if the number of creatures in the hero's army is less than 1
break -- if you need to disable the check later
end
end
end
startThread(proverka)
Whatever