function SulfurCheck()
while 1 do
sleep(1)
if GetPlayerResource(1, SULFUR) >= 50 then
SetPlayerResource(1, SULFUR, GetPlayerResource(1, SULFUR)-50)
SetObjectPosition("имя героя", x,y,fl, effect type)
break
end
end
end
В нужный момент startThread(SulfurCheck).
X, y, fl — координаты, effect_type — тип эффекта телепорта, от 1 до 4 (подробнее у Новика) или -1.