SA-MP Mobile

SA-MP Scripting and Plugins => Plugin Development => Topic started by: Kalcor, SA:MP on Aug 08, 2023, 07:46 AM

Title: [Tool/Web/Other] [C++] SA:MP Plugin Template Library (samp-ptl)
Post by: Kalcor, SA:MP on Aug 08, 2023, 07:46 AM
[Tool/Web/Other] [C++] SA:MP Plugin Template Library (samp-ptl)

SA:MP Plugin Template Library (samp-ptl)




Description:



C++17 template library that allows you to create your own plugins for SA:MP server very easy and fast.



Main features:
  • Safe C++ AMX API with errors handling

  • Pool of scripts (gamemode at the end)

  • Easy executing the callbacks (publics) with optional caching

  • Easy registration of natives: auto-conversion parameters from cell type to common C++ types. You may also define your own conversions

  • Logging

  • Checking for a version match between the plugin and scripts


Examples:

https://github.com/urShadow/samp-ptl...master/example

https://github.com/urShadow/Pawn.CMD

https://github.com/urShadow/Pawn.Regex



Source code:

https://github.com/urShadow/samp-ptl

Source: [Tool/Web/Other] [C++] SA:MP Plugin Template Library (samp-ptl) (https://sampforum.blast.hk/showthread.php?tid=676123)