2.0.0
- Complete refactor of the entire codebase
- Many bugfixes and improvements
- API breakage PySAMP module is now called
samp
and charset conversions are done at C level - API breakage PySAMP now imports
python
module from server root directly (instead ofgamemode
frompython
directory under server root) - Add CallNativeFunction
- Add RegisterCallback
- Add
pysamp.config(encoding=target_encoding)
to set encoding charset for functions taking strings as input/output
Usage:
- Download the appropriate plugin file for your platform below.
- Note the associated Python version and install a matching 32 bits release.
- Rename the downloaded file to PySAMP.so/PySAMP.dll as appropriate.
- Put it in plugins/ folder of your SA-MP server.
- Add PySAMP (or PySAMP.so) to the plugins line of your server.cfg (either first, or right after crashdetect if you use it).
Alternatively (and preferably), use the docker setup available on the repository ; clone the repository, then cd docker/ && ./run.sh