Fast hotkey-based reconnect tool for SA-MP that lets you instantly rejoin servers without restarting the game.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-21 18:51:49 +02:00
dllmain.cpp v1 2026-06-21 18:45:49 +02:00
README.md Create README.md 2026-06-21 18:51:49 +02:00

SA-MP Quick Reconnect Tool

Simple tool for SA-MP that allows fast reconnect to the last server using a hotkey.


Overview

When SA-MP disconnects, the client normally requires manual reconnect through the menu or a game restart.
This tool removes that step.

Press Alt + R to reconnect immediately without restarting the game.

Useful mainly for testing and development where repeated reconnects are needed.


Features

  • Hotkey reconnect (Alt + R)
  • No game restart required
  • Faster reconnect workflow during testing

Usage

  1. Inject the DLL into gta_sa.exe
  2. Start GTA San Andreas with SA-MP
  3. Connect to a server
  4. If disconnected, press Alt + R
  5. Reconnect happens immediately

Extra (development use)

The project includes a disabled function ConnectTo, which can be used to connect directly to a specific IP and port.

This is intended for cases where multiple servers are tested and switching needs to be done from code instead of the in-game menu.

The function is left in the source code but not active by default.

Example

INET_Connection connection { "127.0.0.1", 7777 };
ConnectTo(&connection);