Grand Theft Auto V

Private Public Lobby – GTA:O (PC)

GrandTheftAutoV8 - Private Public Lobby - GTA:O (PC)
Loading...

Hi, I don't know how useful this will be, but I got annoyed with all of the griefers a while ago, and created a batch file for personal use, and figured I would share it with everybody due to the reduced loading times and resurgence in modders

@echo off set PORT=6672 set RULE_NAME="Block GTAV Online" >nul 2>&1 "%SYSTEMROOT%system32cacls.exe" "%SYSTEMROOT%system32configsystem" if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%getadmin.vbs" set params = %*:"="" echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%getadmin.vbs" "%temp%getadmin.vbs" del "%temp%getadmin.vbs" exit /B :gotAdmin pushd "%CD%" CD /D "%~dp0" title GTA V Multiplayer Control Manager color 0a :begin cls echo 1. - Create firewall rule to block GTA V Online Multiplayer - Press 1 echo. echo 2. - Delete firewall rule to block GTA V Online Multiplayer - Press 2 echo. echo 3. - Exit Without making changes - Press 3 echo. echo. choice /N /C:123 %1 IF ERRORLEVEL ==3 GOTO THREE IF ERRORLEVEL ==2 GOTO TWO IF ERRORLEVEL ==1 GOTO ONE GOTO END :THREE echo. Echo You have selected to Quit, Is this Correct? echo. CHOICE /C:YN %1 IF ERRORLEVEL ==2 GOTO BEGIN Echo Thank you for using this program pause GOTO END :TWO echo. Echo You have opted to unblock GTA, Correct? echo. CHOICE /C:YN %1 IF ERRORLEVEL ==2 GOTO BEGIN netsh advfirewall firewall delete rule name=%RULE_NAME% IF errorlevel 1 GOTO FAULT GOTO END :ONE echo. Echo You have opted to block GTA, Correct? echo. CHOICE /C:YN %1 IF ERRORLEVEL ==2 GOTO BEGIN netsh advfirewall firewall delete rule name=%RULE_NAME% netsh advfirewall firewall add rule name=%RULE_NAME% dir=in action=block protocol=TCP localport=%PORT% netsh advfirewall firewall add rule name=%RULE_NAME% dir=out action=block protocol=TCP localport=%PORT% netsh advfirewall firewall add rule name=%RULE_NAME% dir=in action=block protocol=UDP localport=%PORT% netsh advfirewall firewall add rule name=%RULE_NAME% dir=out action=block protocol=UDP localport=%PORT% IF errorlevel 1 GOTO FAULT GOTO END :FAULT cls color C0 echo The batch file failed. pause :END 

The first part of the batch requests administrator privileges which are required for managing firewall rules,

Загрузка...

Other than that, all it does is block port 6672 using windows firewall.

I hope this helps somebody.

Kind Regards

Sympathy-Fuzzy

Source: Original link


Loading...
© Post "Private Public Lobby – GTA:O (PC)" for game Grand Theft Auto V.


Top 10 Most Anticipated Video Games of 2020

2020 will have something to satisfy classic and modern gamers alike. To be eligible for the list, the game must be confirmed for 2020, or there should be good reason to expect its release in that year. Therefore, upcoming games with a mere announcement and no discernible release date will not be included.

Top 15 NEW Games of 2020 [FIRST HALF]

2020 has a ton to look forward to...in the video gaming world. Here are fifteen games we're looking forward to in the first half of 2020.

You Might Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *