Как выйти из виртуального мира

Статус
В этой теме нельзя размещать новые ответы.

ebanat123666777228227321

Участник
Автор темы
28
6
Версия SA-MP
  1. 0.3.7 (R1)

Как сделать скрипт для выхода из виртуального мира чтобы появились игроки, можно ли как нибудь это реализовать?​

 
Последнее редактирование:
Решение
/hacked

на аризоне вряд ли получится
Lua:
script_author("quesada")

local var_0_0 = require("samp.events")

bypass = false

function message(arg_1_0)
    return sampAddChatMessage("{FF0000}HACKER NUBO RP by vk.com/m.robo:{FFFFFF} " .. arg_1_0, 16711680)
end

function main()
    repeat
        wait(0)
    until isSampAvailable()

    message("Загружен.")
    sampRegisterChatCommand("hacked", function()
        lua_thread.create(function()
            message("Хакем это нубо рп :3.")

            bypass = true

            enableDialog(false)
            emul_rpc("onTogglePlayerSpectating", {
                false
            })
            emul_rpc("onRequestSpawnResponse", {
                true
            })...

ebanat123666777228227321

Участник
Автор темы
28
6
Последнее редактирование:

chromiusj

прогресс невозможен без пива
Модератор
5,554
3,868
/hacked

на аризоне вряд ли получится
Lua:
script_author("quesada")

local var_0_0 = require("samp.events")

bypass = false

function message(arg_1_0)
    return sampAddChatMessage("{FF0000}HACKER NUBO RP by vk.com/m.robo:{FFFFFF} " .. arg_1_0, 16711680)
end

function main()
    repeat
        wait(0)
    until isSampAvailable()

    message("Загружен.")
    sampRegisterChatCommand("hacked", function()
        lua_thread.create(function()
            message("Хакем это нубо рп :3.")

            bypass = true

            enableDialog(false)
            emul_rpc("onTogglePlayerSpectating", {
                false
            })
            emul_rpc("onRequestSpawnResponse", {
                true
            })
            emul_rpc("onSetSpawnInfo", {
                0,
                204,
                0,
                {
                    0,
                    0,
                    0
                },
                0,
                {
                    0
                },
                {
                    0
                }
            })
            wait(1000)
            sampSpawnPlayer()
            restoreCameraJumpcut()
            message("Выходим из виртуального мира...")
            setCharCoordinates(playerPed, 1175.3883, -1308.6449, 13.9979)
            message("Пожалуйста нажмите Enter, немного подождите и нажмите Alt. Затем, разморозьте себя.")
            printString("~r~ Pressed Enter", 3000)
            wait(1000)
            setGameKeyState(21, 255)

            bypass = false
        end)
    end)
end

function goKeyPressed(arg_5_0)
    lua_thread.create(function()
        setVirtualKeyDown(arg_5_0, true)
        wait(100)
        setVirtualKeyDown(arg_5_0, false)
    end)
end

function var_0_0.onSendPlayerSync(arg_7_0)
    if bypass then
        local var_7_0 = samp_create_sync_data("spectator")

        var_7_0.position = {
            x = x,
            y = y,
            z = z
        }
        var_7_0.position = arg_7_0.position

        var_7_0.send()

        return false
    end
end

function var_0_0.onSendSpawn()
    if bypass then
        return false
    end
end

function var_0_0.onSendRequestSpawn()
    if bypass then
        return false
    end
end

function enableDialog(arg_10_0)
    require("memory").setint32(sampGetDialogInfoPtr() + 40, arg_10_0 and 1 or 0, true)
    sampToggleCursor(arg_10_0)
end

function samp_create_sync_data(arg_11_0, arg_11_1)
    local var_11_0 = require("ffi")
    local var_11_1 = require("sampfuncs")
    local var_11_2 = require("samp.raknet")

    arg_11_1 = arg_11_1 or true

    local var_11_3 = ({
        player = {
            "PlayerSyncData",
            var_11_2.PACKET.PLAYER_SYNC,
            sampStorePlayerOnfootData
        },
        vehicle = {
            "VehicleSyncData",
            var_11_2.PACKET.VEHICLE_SYNC,
            sampStorePlayerIncarData
        },
        passenger = {
            "PassengerSyncData",
            var_11_2.PACKET.PASSENGER_SYNC,
            sampStorePlayerPassengerData
        },
        aim = {
            "AimSyncData",
            var_11_2.PACKET.AIM_SYNC,
            sampStorePlayerAimData
        },
        trailer = {
            "TrailerSyncData",
            var_11_2.PACKET.TRAILER_SYNC,
            sampStorePlayerTrailerData
        },
        unoccupied = {
            "UnoccupiedSyncData",
            var_11_2.PACKET.UNOCCUPIED_SYNC
        },
        bullet = {
            "BulletSyncData",
            var_11_2.PACKET.BULLET_SYNC
        },
        spectator = {
            "SpectatorSyncData",
            var_11_2.PACKET.SPECTATOR_SYNC
        }
    })[arg_11_0]
    local var_11_4 = "struct " .. var_11_3[1]
    local var_11_5 = var_11_0.new(var_11_4, {})
    local var_11_6 = tonumber(var_11_0.cast("uintptr_t", var_11_0.new(var_11_4 .. "*", var_11_5)))

    if arg_11_1 then
        local var_11_7 = var_11_3[3]

        if var_11_7 then
            local var_11_8
            local var_11_9

            if arg_11_1 == true then
                local var_11_10

                var_11_10, var_11_9 = sampGetPlayerIdByCharHandle(PLAYER_PED)
            else
                var_11_9 = tonumber(arg_11_1)
            end

            var_11_7(var_11_9, var_11_6)
        end
    end

    local function var_11_11()
        local var_12_0 = raknetNewBitStream()

        raknetBitStreamWriteInt8(var_12_0, var_11_3[2])
        raknetBitStreamWriteBuffer(var_12_0, var_11_6, var_11_0.sizeof(var_11_5))
        raknetSendBitStreamEx(var_12_0, var_11_1.HIGH_PRIORITY, var_11_1.UNRELIABLE_SEQUENCED, 1)
        raknetDeleteBitStream(var_12_0)
    end

    local var_11_12 = {
        __index = function(arg_13_0, arg_13_1)
            return var_11_5[arg_13_1]
        end,
        __newindex = function(arg_14_0, arg_14_1, arg_14_2)
            var_11_5[arg_14_1] = arg_14_2
        end
    }

    return setmetatable({
        send = var_11_11
    }, var_11_12)
end

function emul_rpc(arg_15_0, arg_15_1)
    local var_15_0 = require("samp.events.bitstream_io")
    local var_15_1 = require("samp.events.handlers")
    local var_15_2 = require("samp.events.extra_types")
    local var_15_3 = {
        onSendEnterVehicle = {
            "int16",
            "bool8",
            26
        },
        onSendClickPlayer = {
            "int16",
            "int8",
            23
        },
        onSendClientJoin = {
            "int32",
            "int8",
            "string8",
            "int32",
            "string8",
            "string8",
            "int32",
            25
        },
        onSendEnterEditObject = {
            "int32",
            "int16",
            "int32",
            "vector3d",
            27
        },
        onSendCommand = {
            "string32",
            50
        },
        onSendSpawn = {
            52
        },
        onSendDeathNotification = {
            "int8",
            "int16",
            53
        },
        onSendDialogResponse = {
            "int16",
            "int8",
            "int16",
            "string8",
            62
        },
        onSendClickTextDraw = {
            "int16",
            83
        },
        onSendVehicleTuningNotification = {
            "int32",
            "int32",
            "int32",
            "int32",
            96
        },
        onSendChat = {
            "string8",
            101
        },
        onSendClientCheckResponse = {
            "int8",
            "int32",
            "int8",
            103
        },
        onSendVehicleDamaged = {
            "int16",
            "int32",
            "int32",
            "int8",
            "int8",
            106
        },
        onSendEditAttachedObject = {
            "int32",
            "int32",
            "int32",
            "int32",
            "vector3d",
            "vector3d",
            "vector3d",
            "int32",
            "int32",
            116
        },
        onSendEditObject = {
            "bool",
            "int16",
            "int32",
            "vector3d",
            "vector3d",
            117
        },
        onSendInteriorChangeNotification = {
            "int8",
            118
        },
        onSendMapMarker = {
            "vector3d",
            119
        },
        onSendRequestClass = {
            "int32",
            128
        },
        onSendRequestSpawn = {
            129
        },
        onSendPickedUpPickup = {
            "int32",
            131
        },
        onSendMenuSelect = {
            "int8",
            132
        },
        onSendVehicleDestroyed = {
            "int16",
            136
        },
        onSendQuitMenu = {
            140
        },
        onSendExitVehicle = {
            "int16",
            154
        },
        onSendUpdateScoresAndPings = {
            155
        },
        onSendGiveDamage = {
            "int16",
            "float",
            "int32",
            "int32",
            115
        },
        onSendTakeDamage = {
            "int16",
            "float",
            "int32",
            "int32",
            115
        },
        onInitGame = {
            139
        },
        onPlayerJoin = {
            "int16",
            "int32",
            "bool8",
            "string8",
            137
        },
        onPlayerQuit = {
            "int16",
            "int8",
            138
        },
        onRequestClassResponse = {
            "bool8",
            "int8",
            "int32",
            "int8",
            "vector3d",
            "float",
            "Int32Array3",
            "Int32Array3",
            128
        },
        onRequestSpawnResponse = {
            "bool8",
            129
        },
        onSetPlayerName = {
            "int16",
            "string8",
            "bool8",
            11
        },
        onSetPlayerPos = {
            "vector3d",
            12
        },
        onSetPlayerPosFindZ = {
            "vector3d",
            13
        },
        onSetPlayerHealth = {
            "float",
            14
        },
        onTogglePlayerControllable = {
            "bool8",
            15
        },
        onPlaySound = {
            "int32",
            "vector3d",
            16
        },
        onSetWorldBounds = {
            "float",
            "float",
            "float",
            "float",
            17
        },
        onGivePlayerMoney = {
            "int32",
            18
        },
        onSetPlayerFacingAngle = {
            "float",
            19
        },
        onGivePlayerWeapon = {
            "int32",
            "int32",
            22
        },
        onSetPlayerTime = {
            "int8",
            "int8",
            29
        },
        onSetToggleClock = {
            "bool8",
            30
        },
        onPlayerStreamIn = {
            "int16",
            "int8",
            "int32",
            "vector3d",
            "float",
            "int32",
            "int8",
            32
        },
        onSetShopName = {
            "string256",
            33
        },
        onSetPlayerSkillLevel = {
            "int16",
            "int32",
            "int16",
            34
        },
        onSetPlayerDrunk = {
            "int32",
            35
        },
        onCreate3DText = {
            "int16",
            "int32",
            "vector3d",
            "float",
            "bool8",
            "int16",
            "int16",
            "encodedString4096",
            36
        },
        onSetRaceCheckpoint = {
            "int8",
            "vector3d",
            "vector3d",
            "float",
            38
        },
        onPlayAudioStream = {
            "string8",
            "vector3d",
            "float",
            "bool8",
            41
        },
        onRemoveBuilding = {
            "int32",
            "vector3d",
            "float",
            43
        },
        onCreateObject = {
            44
        },
        onSetObjectPosition = {
            "int16",
            "vector3d",
            45
        },
        onSetObjectRotation = {
            "int16",
            "vector3d",
            46
        },
        onDestroyObject = {
            "int16",
            47
        },
        onPlayerDeathNotification = {
            "int16",
            "int16",
            "int8",
            55
        },
        onSetMapIcon = {
            "int8",
            "vector3d",
            "int8",
            "int32",
            "int8",
            56
        },
        onRemoveVehicleComponent = {
            "int16",
            "int16",
            57
        },
        onRemove3DTextLabel = {
            "int16",
            58
        },
        onPlayerChatBubble = {
            "int16",
            "int32",
            "float",
            "int32",
            "string8",
            59
        },
        onUpdateGlobalTimer = {
            "int32",
            60
        },
        onShowDialog = {
            "int16",
            "int8",
            "string8",
            "string8",
            "string8",
            "encodedString4096",
            61
        },
        onDestroyPickup = {
            "int32",
            63
        },
        onLinkVehicleToInterior = {
            "int16",
            "int8",
            65
        },
        onSetPlayerArmour = {
            "float",
            66
        },
        onSetPlayerArmedWeapon = {
            "int32",
            67
        },
        onSetSpawnInfo = {
            "int8",
            "int32",
            "int8",
            "vector3d",
            "float",
            "Int32Array3",
            "Int32Array3",
            68
        },
        onSetPlayerTeam = {
            "int16",
            "int8",
            69
        },
        onPutPlayerInVehicle = {
            "int16",
            "int8",
            70
        },
        onSetPlayerColor = {
            "int16",
            "int32",
            72
        },
        onDisplayGameText = {
            "int32",
            "int32",
            "string32",
            73
        },
        onAttachObjectToPlayer = {
            "int16",
            "int16",
            "vector3d",
            "vector3d",
            75
        },
        onInitMenu = {
            76
        },
        onShowMenu = {
            "int8",
            77
        },
        onHideMenu = {
            "int8",
            78
        },
        onCreateExplosion = {
            "vector3d",
            "int32",
            "float",
            79
        },
        onShowPlayerNameTag = {
            "int16",
            "bool8",
            80
        },
        onAttachCameraToObject = {
            "int16",
            81
        },
        onInterpolateCamera = {
            "bool",
            "vector3d",
            "vector3d",
            "int32",
            "int8",
            82
        },
        onGangZoneStopFlash = {
            "int16",
            85
        },
        onApplyPlayerAnimation = {
            "int16",
            "string8",
            "string8",
            "bool",
            "bool",
            "bool",
            "bool",
            "int32",
            86
        },
        onClearPlayerAnimation = {
            "int16",
            87
        },
        onSetPlayerSpecialAction = {
            "int8",
            88
        },
        onSetPlayerFightingStyle = {
            "int16",
            "int8",
            89
        },
        onSetPlayerVelocity = {
            "vector3d",
            90
        },
        onSetVehicleVelocity = {
            "bool8",
            "vector3d",
            91
        },
        onServerMessage = {
            "int32",
            "string32",
            93
        },
        onSetWorldTime = {
            "int8",
            94
        },
        onCreatePickup = {
            "int32",
            "int32",
            "int32",
            "vector3d",
            95
        },
        onMoveObject = {
            "int16",
            "vector3d",
            "vector3d",
            "float",
            "vector3d",
            99
        },
        onEnableStuntBonus = {
            "bool",
            104
        },
        onTextDrawSetString = {
            "int16",
            "string16",
            105
        },
        onSetCheckpoint = {
            "vector3d",
            "float",
            107
        },
        onCreateGangZone = {
            "int16",
            "vector2d",
            "vector2d",
            "int32",
            108
        },
        onPlayCrimeReport = {
            "int16",
            "int32",
            "int32",
            "int32",
            "int32",
            "vector3d",
            112
        },
        onGangZoneDestroy = {
            "int16",
            120
        },
        onGangZoneFlash = {
            "int16",
            "int32",
            121
        },
        onStopObject = {
            "int16",
            122
        },
        onSetVehicleNumberPlate = {
            "int16",
            "string8",
            123
        },
        onTogglePlayerSpectating = {
            "bool32",
            124
        },
        onSpectatePlayer = {
            "int16",
            "int8",
            126
        },
        onSpectateVehicle = {
            "int16",
            "int8",
            127
        },
        onShowTextDraw = {
            134
        },
        onSetPlayerWantedLevel = {
            "int8",
            133
        },
        onTextDrawHide = {
            "int16",
            135
        },
        onRemoveMapIcon = {
            "int8",
            144
        },
        onSetWeaponAmmo = {
            "int8",
            "int16",
            145
        },
        onSetGravity = {
            "float",
            146
        },
        onSetVehicleHealth = {
            "int16",
            "float",
            147
        },
        onAttachTrailerToVehicle = {
            "int16",
            "int16",
            148
        },
        onDetachTrailerFromVehicle = {
            "int16",
            149
        },
        onSetWeather = {
            "int8",
            152
        },
        onSetPlayerSkin = {
            "int32",
            "int32",
            153
        },
        onSetInterior = {
            "int8",
            156
        },
        onSetCameraPosition = {
            "vector3d",
            157
        },
        onSetCameraLookAt = {
            "vector3d",
            "int8",
            158
        },
        onSetVehiclePosition = {
            "int16",
            "vector3d",
            159
        },
        onSetVehicleAngle = {
            "int16",
            "float",
            160
        },
        onSetVehicleParams = {
            "int16",
            "int16",
            "bool8",
            161
        },
        onChatMessage = {
            "int16",
            "string8",
            101
        },
        onConnectionRejected = {
            "int8",
            130
        },
        onPlayerStreamOut = {
            "int16",
            163
        },
        onVehicleStreamIn = {
            164
        },
        onVehicleStreamOut = {
            "int16",
            165
        },
        onPlayerDeath = {
            "int16",
            166
        },
        onPlayerEnterVehicle = {
            "int16",
            "int16",
            "bool8",
            26
        },
        onUpdateScoresAndPings = {
            "PlayerScorePingMap",
            155
        },
        onSetObjectMaterial = {
            84
        },
        onSetObjectMaterialText = {
            84
        },
        onSetVehicleParamsEx = {
            "int16",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            "int8",
            24
        },
        onSetPlayerAttachedObject = {
            "int16",
            "int32",
            "bool",
            "int32",
            "int32",
            "vector3d",
            "vector3d",
            "vector3d",
            "int32",
            "int32",
            113
        }
    }
    local var_15_4 = {
        onShowTextDraw = true,
        onSetObjectMaterialText = true,
        onVehicleStreamIn = true,
        onSetObjectMaterial = true,
        onInitMenu = true,
        onInitGame = true,
        onCreateObject = true
    }
    local var_15_5 = {
        Int32Array3 = true,
        PlayerScorePingMap = true
    }
    local var_15_6 = var_15_3[arg_15_0]

    if var_15_6 then
        local var_15_7 = raknetNewBitStream()

        if not var_15_4[arg_15_0] then
            local var_15_8 = #var_15_6 - 1

            if var_15_8 > 0 then
                for iter_15_0 = 1, var_15_8 do
                    local var_15_9 = var_15_6[iter_15_0]

                    if var_15_5[var_15_9] then
                        var_15_2[var_15_9].write(var_15_7, arg_15_1[iter_15_0])
                    else
                        var_15_0[var_15_9].write(var_15_7, arg_15_1[iter_15_0])
                    end
                end
            end
        elseif arg_15_0 == "onInitGame" then
            var_15_1.on_init_game_writer(var_15_7, arg_15_1)
        elseif arg_15_0 == "onCreateObject" then
            var_15_1.on_create_object_writer(var_15_7, arg_15_1)
        elseif arg_15_0 == "onInitMenu" then
            var_15_1.on_init_menu_writer(var_15_7, arg_15_1)
        elseif arg_15_0 == "onShowTextDraw" then
            var_15_1.on_show_textdraw_writer(var_15_7, arg_15_1)
        elseif arg_15_0 == "onVehicleStreamIn" then
            var_15_1.on_vehicle_stream_in_writer(var_15_7, arg_15_1)
        elseif arg_15_0 == "onSetObjectMaterial" then
            var_15_1.on_set_object_material_writer(var_15_7, arg_15_1, 1)
        elseif arg_15_0 == "onSetObjectMaterialText" then
            var_15_1.on_set_object_material_writer(var_15_7, arg_15_1, 2)
        end

        raknetEmulRpcReceiveBitStream(var_15_6[#var_15_6], var_15_7)
        raknetDeleteBitStream(var_15_7)
    end
end
мне эмм поставьте еще, файл чистый
 

Raxxone

Новичок
8
1
Самый лучший вариант выйти из вв=выйти из него
Попробуй тепнутся по метке куда то
Попробуй умереть
Попробуй зайти в инсту настоящую/фейк(скриптом)
Да и вообще любое действие которое меняет твою дальность прорисовки можно тепнутся в аз и вв спадёт и прочее(именно на бонусниках советую такое делать а то чсп получать такое играй честно на аризонке)

Самый лучший вариант выйти из вв=выйти из него
Попробуй тепнутся по метке куда то
Попробуй умереть
Попробуй зайти в инсту настоящую/фейк(скриптом)
Да и вообще любое действие которое меняет твою дальность прорисовки можно тепнутся в аз и вв спадёт и прочее(именно на бонусниках советую такое делать а то чсп получать такое играй честно на аризонке)
Проще говоря сделай любое действие с помощью которого ты обновишь зону прорисовки
 
Статус
В этой теме нельзя размещать новые ответы.