нужен скрипт

lakman

Активный
Автор темы
103
30
Версия SA-MP
  1. 0.3.7-R3
нужен скрипт чтобы при этой строчке, писалось в чат /jmeat (хавалось мясо)
1705849492258.png
 
Решение
raksamplite:
local sampev = require('samp.events')
require('addon')
function sampev.onServerMessage(color, text)
   if text:find('Ваш уровень сытости ниже (%d+)') and text:find('теперь Вы не можете быстро бегать%.') then sendInput('/jmeat') end
end
raksamplite:
function sampev.onDisplayGameText(style, time, text)
   if text:find('hungry%!') then sendInput('/jmeat') end
end

фидарза

Известный
339
190
raksamplite:
local sampev = require('samp.events')
require('addon')
function sampev.onServerMessage(color, text)
   if text:find('Ваш уровень сытости ниже (%d+)') and text:find('теперь Вы не можете быстро бегать%.') then sendInput('/jmeat') end
end
raksamplite:
function sampev.onDisplayGameText(style, time, text)
   if text:find('hungry%!') then sendInput('/jmeat') end
end
 
  • Влюблен
Реакции: lakman

lakman

Активный
Автор темы
103
30
raksamplite:
local sampev = require('samp.events')
require('addon')
function sampev.onServerMessage(color, text)
   if text:find('Ваш уровень сытости ниже (%d+)') and text:find('теперь Вы не можете быстро бегать%.') then sendInput('/jmeat') end
end
спасибо

raksamplite:
local sampev = require('samp.events')
require('addon')
function sampev.onServerMessage(color, text)
   if text:find('Ваш уровень сытости ниже (%d+)') and text:find('теперь Вы не можете быстро бегать%.') then sendInput('/jmeat') end
end
raksamplite:
function sampev.onDisplayGameText(style, time, text)
   if text:find('hungry%!') then sendInput('/jmeat') end
end
привет, только сегодня зачекал, можешь кинуть либу "addon"?
1705931743738.png
 
Последнее редактирование:

фидарза

Известный
339
190
Lua:
local sampev = require('samp.events')
function main()
    while not isSampAvailable() do wait(0) end
    while true do wait(0) end
end
function sampev.onServerMessage(msgcolor, text)
    if (text:find('Ваш уровень сытости ниже')
    and text:find('теперь Вы не можете быстро бешать')) then sampSendChat('/jmeat') end
end
 
  • Ха-ха
Реакции: |Il|Il|