- Версия MoonLoader
- .026-beta
почему не срабатывает?
текст от сервера появляется, а скрипт не срабатывает
Lua:
function main()
repeat wait(0) until isSampAvailable()
while true do
wait(0)
end
end
function hook.onDisplayGameText(style,tm,text)
lua_thread.create(function()
if text == ("you are very hungry!") then
setCharKeyDown(16, true)
wait(500)
setCharKeyDown(16,false)
sampSendChat('/jmeat')
wait(2000)
sampSendChat('/beer')
setCharKeyDown(16, true)
wait(500)
setCharKeyDown(16,false)
wait(500)
sampSendChat('/anim 8')
end
end)
end