Lua Anti-Crash Reconnect

horacy

Известный
Автор темы
102
92
Версия SA-MP
  1. 0.3.7 (R1)
Here's my next script, multi-tasking and crash-proof reconnect.



The script has functions:
Reconnect
Auto reconnect
Change name and reconnect
Four favorite servers that you can change
Change server ip via command
Anti-crash when reconnect
Anti-ban against reconnect spam
Full client cleansing before reconnecting
Immediate disconnection from the server via command

How it's working? It simply removes all players, vehicles and npc before reconnecting, and then blocks the incoming packet that removes buildings, previously the game crashed if the server wanted to remove previously removed buildings, which happened during reconnect and was the main reason for a failure on. If your game crashes with this script with the default configuration it is your gta or mod's fault.
The script is configurable config > recon.ini.

Как это работает? Он просто удаляет всех игроков, транспорт и NPC перед повторным подключением, а затем блокирует входящий пакет, который удаляет здания, ранее игра вылетала, если сервер хотел удалить ранее удаленные здания, что произошло во время повторного подключения и было основной причиной сбоя. Если ваша игра вылетает с этим скриптом с конфигурацией по умолчанию, это вина вашей GTA или мода.
Скрипт настраивается config > recon.ini.

I allow any use of the script as long as my authorship is preserved

/recon help - help
/recon - Reconnect via command
/recon na [nick] - Change nick and reconnect
/recon f1-f4 - Changes the server to the one saved in config
/recon x - Disconnects immediately from the server
/recon ip:port - Connects to the given server
/recon autorec - Enable/disable automatic reconnect temporarily
/recon anticrash - Enable/disable anticrash temporarily
/recon clear - Remove players, npc and cars

[config]
antiban=true --protection against flooding of connections
anticrash=true --crash protection during reconnect
autorecon=true --automatic reconnect when connection is closed, banned, rejected, lost.
valautorecon=2 --number of reconnect maxima for autorecon
delaycheck=100 --how long does the script have to wait while checking the gamestate
disconnectdelay=4000 --how long the script must wait after disconnecting from the server
f1=samp.ugbase.eu:7777 --favorite server under the command f1 to f4
f2=samp.hzgaming.net:7777
f3=rp.valrisegaming.com:7777
f4=localhost:7777
intervalcheck=100 --number of intervals during checking. intervalcheck 100 + delaycheck 100 = 10 seconds
logs=true --displaying logs
remcar=2000 --number of cars to be removed
remchars=1000 --number of chars to be removed
remrchars=1000 --number of random chars in sphere to be removed
 

Вложения

  • ACReconnect.rar
    2.2 KB · Просмотры: 2,418

horacy

Известный
Автор темы
102
92
После рестарта на арз(в 5ч утра) автореконнект нормально работает? не кикает за игнор функции, точно не помню какая там именно причина кика но вроде эта
насколько я помню, для Аризоны это должно быть специальное исправление повторного подключения, поэтому я не знаю, подключитесь ли вы с помощью этого сценария.
 

ragedrugg

Известный
143
164
а resetremove.asi зачем?
resetremove.asi это совсем другое, тут игру не даёт крашнуть при большом количестве подключений, например, в некоторых говносборках после второго реконнекта игра просто крашится, а этот скрипт эту проблему убирает
 

cooqie

Известный
1,545
433
resetremove.asi это совсем другое, тут игру не даёт крашнуть при большом количестве подключений, например, в некоторых говносборках после второго реконнекта игра просто крашится, а этот скрипт эту проблему убирает
разве resetremove.asi не убирает объекты сервера, не давая крашнуться игре?
 

horacy

Известный
Автор темы
102
92
разве resetremove.asi не убирает объекты сервера, не давая крашнуться игре?
asi блокирует rpc, который удаляет здания

можно вопрос,будет когда то реконнект под арз? либо этот же рекконект который щас есть но с другим сценарием подключения для арз?
пока не знаю как исправить связь с аризоной.сценарий сладкого подключения, похоже, работает с Аризоной
 
  • Нравится
Реакции: cooqie