GDK allows you to easily create SA-MP gamemodes in C or C++ and load them as server plugins.
-
Windows
- Download and install
libsampgdk-x.y.z-win32.exe
. - Don't forget to check Add sampgdk to the system PATH option - otherwise you will have to copy the .dll into your server's folder or change PATH variable manually.
- Set proper include and library paths in your IDE.
- Download and install
-
Linux
- Download
libsampgdk-x.y.z-Linux.sh
. - Run it as follows:
sudo sh sampgdk-x.y.z-Linux.sh --prefix=/usr/local/
. This will install the library and headers to /usr/local/lib and /usr/local/include respectively. - Link against libsampgdk, e.g.
g++ -shared plugin.cpp -lsampgdk -o plugin.so
.
- Download
Report bugs here: https://github.com/Zeex/sampgdk/issues.