рекконект для вайссити

MrCH

Участник
109
17
lua:
require 'lib.moonloader'
require 'lib.sampfuncs'
local ServerIp = "127.0.0.1" ---Сюда вписываешь ip Основного своего сервера(не VC)
local ServerPort = 7777
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('vrec', vrec)
    wait(-1)
end
function vrec()
    sampConnectToServer(ServerIp, ServerPort)
end
Вот код скрипта, он подключит тебя к твоему основному серверу, а там ты по менюшкам доберешься до спавна на vc.
Команда /vrec
 
  • Нравится
Реакции: MLycoris

tacher228333

Участник
Автор темы
317
20
lua:
require 'lib.moonloader'
require 'lib.sampfuncs'
local ServerIp = "127.0.0.1" ---Сюда вписываешь ip Основного своего сервера(не VC)
local ServerPort = 7777
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('vrec', vrec)
    wait(-1)
end
function vrec()
    sampConnectToServer(ServerIp, ServerPort)
end
Вот код скрипта, он подключит тебя к твоему основному серверу, а там ты по менюшкам доберешься до спавна на vc.
Команда /vrec
wrong server pasword пишет
 

Diqeey

Активный
444
61
lua:
require 'lib.moonloader'
require 'lib.sampfuncs'
local ServerIp = "127.0.0.1" ---Сюда вписываешь ip Основного своего сервера(не VC)
local ServerPort = 7777
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('vrec', vrec)
    wait(-1)
end
function vrec()
    sampConnectToServer(ServerIp, ServerPort)
end
Вот код скрипта, он подключит тебя к твоему основному серверу, а там ты по менюшкам доберешься до спавна на vc.
Команда /vrec
Сделай чтобы из ника убирался номер сервера
[11]Nick_Name
 

MrCH

Участник
109
17
Сделай чтобы из ника убирался номер сервера
[11]Nick_Name
lua:
require 'lib.moonloader'
require 'lib.sampfuncs'
local ServerIp = "127.0.0.1" ---Сюда вписываешь ip Основного своего сервера(не VC)
local ServerPort = 7777
local name = 'Carl_Jonson' -- Сюда вписать ник
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('vrec', vrec)
    wait(-1)
end
function vrec()
    sampSetLocalPlayerName(name)
    sampConnectToServer(ServerIp, ServerPort)
end
 
Последнее редактирование:
  • Нравится
Реакции: Diqeey

bfdf15555

Активный
193
56
lua:
require 'lib.moonloader'
require 'lib.sampfuncs'
local ServerIp = "127.0.0.1" ---Сюда вписываешь ip Основного своего сервера(не VC)
local ServerPort = 7777
local name = 'Carl_Jonson' -- Сюда вписать ник
function main()
    if not isSampLoaded() or not isSampfuncsLoaded() then return end
    while not isSampAvailable() do wait(100) end
    sampRegisterChatCommand('vrec', vrec)
    wait(-1)
end
function vrec()
    sampSetLocalPlayerName(name)
    sampConnectToServer(ServerIp, ServerPort)
end
С сервера вайс сити не коннектит на другой. Ник меняется, а сервер для подключения нет, но для перезахода между обычными серверами работает
 

MrCH

Участник
109
17
С сервера вайс сити не коннектит на другой. Ник меняется, а сервер для подключения нет, но для перезахода между обычными серверами работает
По моему была тема с неплохим реконектом