SA-MP Socket Plugin — SSL-Free
A lightweight and minimal socket plugin for San Andreas Multiplayer (SA-MP) that provides TCP/UDP communication without OpenSSL dependencies on Windows and Linux.
Technologies Used

SA-MP Socket Plugin — SSL-Free
Overview
SA-MP Socket Plugin (SSL-Free) is a lightweight socket plugin for San Andreas Multiplayer (SA-MP) servers that provides simple TCP/UDP communication capabilities without relying on OpenSSL.
The project was created as an SSL-free rebuild of the original BlueG Socket plugin, removing external OpenSSL dependencies such as libcrypto, libeay32.dll, and ssleay32.dll. This makes deployment simpler and helps avoid common runtime dependency issues on both Windows and Linux.
Features
- Supports TCP and UDP socket communication.
- Built without OpenSSL or related external SSL libraries.
- Eliminates
libcryptodependency issues on Linux. - Eliminates
libeay32.dllandssleay32.dlldependency issues on Windows. - Lightweight and minimal.
- Supports both Windows and Linux server environments.
- Easy to compile from source.
- Compatible with most modern AMX-based SA-MP scripts.
- Useful for communicating with external backends such as Node.js and Python applications.
- Prebuilt binaries are available through GitHub Releases.
- Published as an Open.MP package through PawnDEX.
Installation
Windows
- Download the latest
socket.dllfrom the GitHub Releases page. - Copy
socket.dllinto your SA-MP server'spluginsfolder. - Copy
socket.incintopawno/include/. - Add the plugin to your
server.cfg:
plugins socket
Linux
- Download
socket.sofrom the GitHub Releases page. - Copy
socket.sointo yourpluginsfolder. - Copy
socket.incintopawno/include/. - Add the plugin to your
server.cfg:
plugins socket.so
Make sure the plugin has execute permissions:
chmod +x plugins/socket.so
Usage
The plugin can be used directly from Pawn scripts to create and connect sockets:
#include <socket>
new Socket:g_socket;
public OnGameModeInit()
{
g_socket = socket_create(TCP);
socket_connect(g_socket, "127.0.0.1", 7000);
}
public onSocketAnswer(Socket:id, data[], data_len)
{
printf("[TCP Server] %s", data);
}
Build
The project includes build support for both Linux and Windows.
Linux
Requirements:
g++make
Build with:
git clone https://github.com/RJRYT/samp-socket-plugin.git
cd samp-socket-plugin/socket
make
The generated plugin is available at:
Release/socket.so
Windows
Requirements:
- Visual Studio Build Tools
- MSBuild
Build with:
git clone https://github.com/RJRYT/samp-socket-plugin.git
msbuild "absolute\path\to\socket.vcxproj" /p:Configuration=Release /p:Platform=Win32
The generated plugin is available at:
Release/socket.dll
Release
The project was completed and released on June 24, 2025.
The first public release, 1.0.0, provides prebuilt Windows and Linux binaries for easier installation.
Open.MP Package
The plugin is also available through Open.MP PawnDEX:
Credits
Status
✅ Completed — Personal project finished and released on June 24, 2025.
Related Projects
Discover more projects with similar technologies or categories.
New City Roleplay
A full-featured San Andreas Multiplayer (SA-MP) roleplay gamemode built with Pawn. Includes dynamic jobs, factions, vehicles, admin tools, anti-cheat systems, and continuous updates.
New City Roleplay Android Launcher
An Android launcher app for New City Roleplay that manages game downloads, updates, and launching with server lists.
New City Roleplay — UCP & Admin Panel
A modern, installable user control panel and admin dashboard for the New City Roleplay SA-MP server, featuring Discord OAuth, PWA/TWA support, push notifications, and Mongo→MySQL migration utilities.