[ARZ] Ищу автоеду актуальную

schtolz

Известный
Автор темы
111
66
Версия SA-MP
  1. 0.3.7-R3
Перестало работать после обновы автоеда, ищу рабочую автоеду
Это код нерабочей автоеды
Lua:
function samp.onShowTextDraw(id,data)
    if activ and (data.text:find('You are hungry!') or data.text:find('You are very hungry!')) then
        sampSendChat('/jmeat')
    end
end
function samp.onDisplayGameText(style, time, text)
    if activ and (data.text:find('You are hungry!') or data.text:find('You are very hungry!')) then
        sampSendChat('/jmeat')
    end
end
 

Dimonster1997

Известный
139
14
Lua:
local sampev = require 'samp.events'
local st = false
function sampev.onShowTextDraw(id, data)
    if data.text:find('You are hungry!') or data.text:find('You are very hungry!') then
        lua_thread.create(function()
            sampSendChat('/cheeps')
            wait(1000)
            sampSendChat('/smoke')
            st = true
        end)
    end
end
function sampev.onServerMessage(color, text)
    if st then
        if text:find('достал сигарету с зажигалкой и попыталс¤ закурить %(Ќеудачно%)') then
            lua_thread.create(function()
                repeat sampSendChat('/smoke') wait(1000)
                until st == false
            end)
        end
        if text:find('достал сигарету с зажигалкой и закурил') then
            st = false
        end
    end
end

Держи!
 
Последнее редактирование модератором:

schtolz

Известный
Автор темы
111
66
local sampev = require 'samp.events'
local st = false
function sampev.onShowTextDraw(id, data)
if data.text:find('You are hungry!') or data.text:find('You are very hungry!') then
lua_thread.create(function()
sampSendChat('/cheeps')
wait(1000)
sampSendChat('/smoke')
st = true
end)
end
end
function sampev.onServerMessage(color, text)
if st then
if text:find('достал сигарету с зажигалкой и попыталс¤ закурить %(Ќеудачно%)') then
lua_thread.create(function()
repeat sampSendChat('/smoke') wait(1000)
until st == false
end)
end
if text:find('достал сигарету с зажигалкой и закурил') then
st = false
end
end
end

Держи!
Оно у тебя работает на лаунчере?