Home - samp-incognito/samp-streamer-plugin GitHub Wiki
Language: English, Russian
- Create a directory called
pluginsinside of the server directory if one does not already exist. - Place the plugin file (
streamer.dllorstreamer.so) inside of the directory that was just created. - Add the following line to
server.cfgso that the plugin will load the next time the server starts:-
plugins streamer.dll(Windows) -
plugins streamer.so(Linux)
-
- On Windows, add
streamer.incto thepawno\includefolder. - Add the following line to any of the scripts the server is running:
#include <streamer>
The Windows version requires the Microsoft Visual C++ 2015 Redistributable Package (x86).
-
Download and install the following:
- CMake (3.0+)
- C++ Compiler
-
Clone the repository:
git clone https://github.com/samp-incognito/samp-streamer-plugin.git -
Navigate to the cloned respository (
cd samp-streamer-plugin). -
Update the submodules:
git submodule update --init --recursive
-
Enter the following commands:
mkdir build cd buildIf on Windows:
cmake ..If on Linux (So you don't accidentally build a Debug version):
cmake .. -DCMAKE_BUILD_TYPE=ReleaseThen on either of those platforms:
cmake --build . --config Release -
Navigate to the
bindirectory (cd bin). Thestreamer.dllorstreamer.sofile should be placed here when the plugin has finished compiling.
sampgdk Support
samp-streamer-plugin-sampgdk-invoke can be used to invoke this plugin's natives as well as hook its callbacks from within another plugin that uses sampgdk.