ищу скрипт

rakzo

Известный
Автор темы
99
3
Версия MoonLoader
.027.0-preview
ищу скрипт что бы если он видит диалог с определёным идом, нажимал enter
Если кто имеет, или может сделать, буду ооочень благодарен)
 

rakzo

Известный
Автор темы
99
3
Не понял суть вопроса,но вот
Lua:
local sampev = require 'lib.samp.events'


function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
if dialogId == iddialoga then
-- то,что тебе нужно
end
end
Мне нужно что бы он после того как нашел диалог нажал бы enter
 

leekyrave

Известный
420
224
Lua:
local sampev = require 'lib.samp.events'


function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    if dialogId == iddialoga then
        sampHasDialogRespond(int id, bool result, int button, int list, zstring input)
-- то,что тебе нужно
    end
end
sampsenddialogrespond надо,если хочешь нажать на кнопку скипа или покупки
 

Jendosik

Участник
211
12
Скрипт умерает
] (error) dialog.lua: C:\GTA San Andreas\moonloader\dialog.lua:6: ')' expected near 'id'
[ML] (error) dialog.lua: Script died due to an error. (286CA334)
вк свой дай помогу
вк свой дай помогу
Lua:
local sampev = require 'lib.samp.events'


function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    print(dialogId) -- сначала узнать нада
    if dialogId == сюда ид диалога then
        sampHasDialogRespond(int id, bool result, int button, int list, zstring input)
-- то,что тебе нужно
    end
end
вк свой дай помогу

Lua:
local sampev = require 'lib.samp.events'


function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    print(dialogId) -- сначала узнать нада
    if dialogId == сюда ид диалога then
        sampHasDialogRespond(int id, bool result, int button, int list, zstring input)
-- то,что тебе нужно
    end
end
без вк сложно
 
Последнее редактирование:

rakzo

Известный
Автор темы
99
3
вк свой дай помогу

Lua:
local sampev = require 'lib.samp.events'


function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    print(dialogId) -- сначала узнать нада
    if dialogId == сюда ид диалога then
        sampHasDialogRespond(int id, bool result, int button, int list, zstring input)
-- то,что тебе нужно
    end
end

без вк сложно
vk.com/max.gornostay