autoscreen

Molodoyy_Softer

Участник
Автор темы
162
6
мне не нужен скрипт, дайте просто код автоскрина после команды /jail /ban /mute /kick
 
Решение
D
Lua:
--Функция скриншота
function makeScreenshot(disable) -- если передать true, интерфейс и чат будут скрыты
    if disable then displayHud(false) sampSetChatDisplayMode(0) end
    require('memory').setuint8(sampGetBase() + 0x119CBC, 1)
    if disable then displayHud(true) sampSetChatDisplayMode(2) end
end

--Делаешь скриншот после определенного действия
makeScreenshot()

Даже в твоем случае допустим:

Lua:
local sampev = require("samp.events")

function sampev.onSendCommand(command)
    if command == ("/jail") then
        makeScreenshot()
    end
end
D

deleted-user-139653

Гость
Lua:
--Функция скриншота
function makeScreenshot(disable) -- если передать true, интерфейс и чат будут скрыты
    if disable then displayHud(false) sampSetChatDisplayMode(0) end
    require('memory').setuint8(sampGetBase() + 0x119CBC, 1)
    if disable then displayHud(true) sampSetChatDisplayMode(2) end
end

--Делаешь скриншот после определенного действия
makeScreenshot()

Даже в твоем случае допустим:

Lua:
local sampev = require("samp.events")

function sampev.onSendCommand(command)
    if command == ("/jail") then
        makeScreenshot()
    end
end
 
  • Нравится
Реакции: dmitry.karle

dmitry.karle

Известный
408
109
Lua:
--Функция скриншота
function makeScreenshot(disable) -- если передать true, интерфейс и чат будут скрыты
    if disable then displayHud(false) sampSetChatDisplayMode(0) end
    require('memory').setuint8(sampGetBase() + 0x119CBC, 1)
    if disable then displayHud(true) sampSetChatDisplayMode(2) end
end

--Делаешь скриншот после определенного дейсвия
makeScreenshot()

Даже в твоем случае допустим:

Lua:
local sampev = require("samp.events")

function sampev.onSendCommand(command)
    if command == ("/jail") then
        makeScreenshot()
    end
end
хотел скинуть, но потом вспомнил что есть @percheklii который поможет)
 
  • Нравится
Реакции: deleted-user-139653