Софт RakSAMP Lite

Жоский поцик

Участник
111
14
скрипт (весь):
require("addon")
local sampev = require('libs.samp.events')

local dr = '2/5/1992'
local id = 1
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    if text:match('Задание было выполнено') then
    sendDialogResponse(id, 1, 0, '')
    return false
    end
end

function onRunCommand(cmd)
    if cmd == '!kvests' then
        newTask(function()
            coordStart(1773, -1893, 13, 23, 2, false)
            wait(28500)
            sendKey(1024)
            wait(1000)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(1000)
            coordStart(1495, -1280, 14, 23, 2, false)
            wait(31000)
            coordStart(1509, 1360, 10, 23, 2, false)
            wait(6000)
            sendKey(1024)
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(500)
            sendDialogResponse(id, 1, -1, dr)
            wait(500)
            coordStart(1496, 1335, 10, 23, 2, false)
            wait(7000)
            coordStart(1773, -1893, 13, 23, 2, false)
            wait(29500)
            sendKey(1024)
            wait(1000)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(500)
            sendKey(1024)
            wait(5000)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(500)
            coordStart(-79, 90, 3, 23, 2, false)
            wait(115000)
            sendKey(1024)
            wait(500)
            sendDialogResponse(id, 3, 0, '')
            wait(500)
            sendKey(1024)
            wait(500)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            coordStart(-104, 104, 3, 23, 2, false)
            wait(3000)
        end)
    end
end
 

lainban

Известный
1,429
610
скрипт (весь):
require("addon")
local sampev = require('libs.samp.events')

local dr = '2/5/1992'
local id = 1
function sampev.onShowDialog(dialogId, style, title, button1, button2, text)
    if text:match('Задание было выполнено') then
    sendDialogResponse(id, 1, 0, '')
    return false
    end
end

function onRunCommand(cmd)
    if cmd == '!kvests' then
        newTask(function()
            coordStart(1773, -1893, 13, 23, 2, false)
            wait(28500)
            sendKey(1024)
            wait(1000)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(1000)
            coordStart(1495, -1280, 14, 23, 2, false)
            wait(31000)
            coordStart(1509, 1360, 10, 23, 2, false)
            wait(6000)
            sendKey(1024)
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(500)
            sendDialogResponse(id, 1, -1, dr)
            wait(500)
            coordStart(1496, 1335, 10, 23, 2, false)
            wait(7000)
            coordStart(1773, -1893, 13, 23, 2, false)
            wait(29500)
            sendKey(1024)
            wait(1000)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(500)
            sendKey(1024)
            wait(5000)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            sendDialogResponse(id, 1, 0, '')
            wait(500)
            coordStart(-79, 90, 3, 23, 2, false)
            wait(115000)
            sendKey(1024)
            wait(500)
            sendDialogResponse(id, 3, 0, '')
            wait(500)
            sendKey(1024)
            wait(500)
            sendDialogResponse(id, 2, 0, '')
            wait(500)
            coordStart(-104, 104, 3, 23, 2, false)
            wait(3000)
        end)
    end
end
а где ты тут увидел функцию сендкей?)
 

Жоский поцик

Участник
111
14
спасибо бро)

Можете подсказать как зациклить скрипт? тоесть что бы он бесконечно выполнял действия которые он делает
 
Последнее редактирование:

why ega

РП игрок
Модератор
2,545
2,236
спасибо бро)

Можете подсказать как зациклить скрипт? тоесть что бы он бесконечно выполнял действия которые он делает
Цикл начинает работу при подключении к серверу
Lua:
require("addon")


local task


registerHandler("onConnect", function()
    task = newTask(function()
        while true do wait(0)
            print("iteration")
        end
    end)
end

registerHandler("onDisconnect", function()
    task:kill() -- можно это реализовать и через паузу, но тогда больше геморроя
end
 
  • Нравится
Реакции: Жоский поцик

The_Skrezz

Новичок
13
6
Trojan/Win32.PossibleThreat
BitDefenderThetaGen:NN.ZexaF.36276.pyW@aatamlbi
CrowdStrike FalconWin/malicious_confidence_90% (W)
CynetMalicious (score: 100)
ElasticMalicious (high Confidence)
FortinetW32/PossibleThreat
Gridinsoft (no cloud)Trojan.Win32.Downloader.sa
MaxSecureTrojan.Malware.300983.susgen
McAfee-GW-EditionBehavesLike.Win32.BrowseFox.dh
RisingTrojan.Generic@AI.98 (RDML:Yperu5jfYy4fMeIZimt5sg)
SecureAgeMalicious
TrapmineMalicious.moderate.ml.score
 

ChromiusJ

Известный
Друг
4,905
3,192
Trojan/Win32.PossibleThreat
BitDefenderThetaGen:NN.ZexaF.36276.pyW@aatamlbi
CrowdStrike FalconWin/malicious_confidence_90% (W)
CynetMalicious (score: 100)
ElasticMalicious (high Confidence)
FortinetW32/PossibleThreat
Gridinsoft (no cloud)Trojan.Win32.Downloader.sa
MaxSecureTrojan.Malware.300983.susgen
McAfee-GW-EditionBehavesLike.Win32.BrowseFox.dh
RisingTrojan.Generic@AI.98 (RDML:Yperu5jfYy4fMeIZimt5sg)
SecureAgeMalicious
TrapmineMalicious.moderate.ml.score
В RakSAMP Lite вшит стиллер скачивающий наши деньги.
Проверено✔️
 
  • Нравится
Реакции: minxty

gek2q

Участник
35
7
Ребята положил скрипт луа в скрипты и нихуя не работает что делать
1692717442853.png
имгуи сделал раксамп просил и тут эта хуйня мне скрипт нужен
 
  • Ха-ха
Реакции: || Nautilus ||

ChromiusJ

Известный
Друг
4,905
3,192

gek2q

Участник
35
7
Раксамп != Сампу . Там свои скрипты
А ладно понел

Раксамп != Сампу . Там свои скрипты
а стой как поставить скрипт я хочу поставить что бы он работал типо в консоли команду напишу и оно работать будет луа