Помогите найти скрипт

ugblood

Новичок
Автор темы
6
0
Нужен скрипт который при вводе определенной команды включал Nop SetPlayerPos и SetVehiclePos
 

verdis

Участник
25
2
взял от сюда (команда /nops)

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

local nops = false

function main()
    while not isSampAvailable() do
        wait(100)
    end

    sampRegisterChatCommand("nops",
        function()
            nops = not nops

            sampAddChatMessage(("nops | %s"):format(nops and "on" or "off"))
        end
    )

    wait(-1)
end

function nop()
    if nops then
        return false
    end
end

se.onSetPlayerPos = nop
se.onSetVehiclePosition = nop
 

Вложения

  • nop.lua
    513 байт · Просмотры: 1