|
1 | | -[](https://github.com/BenBurak/Textdraw-Streamer/releases/latest) [](https://github.com/BenBurak/Textdraw-Streamer/releases/latest) [](https://github.com/BenBurak/Textdraw-Streamer) |
| 1 | +## [SA:MP / Open.MP] Textdraw Streamer |
| 2 | +[](https://github.com/nexquery/samp-textdraw-streamer/releases/latest) [](https://github.com/nexquery/samp-textdraw-streamer/releases/latest) [](https://github.com/nexquery/samp-textdraw-streamer) |
2 | 3 |
|
3 | | -### Textdraw Streamer |
4 | | -This plugin removes the PlayerTextdraw limit. All you have to do is install the plugin. |
| 4 | +## Foreword |
| 5 | +This plugin is inspired by the streamer plugin. Previously people used a lot of CreatePlayerTextDraw under OnPlayerConnect, they were reaching the limits of text drawing because they used it too much. Because they had reached the limit, they could not display the text drawings properly and were looking for a solution. I decided to make such an add-on because I was having a lot of trouble because of this problem. |
5 | 6 |
|
6 | | -### Why This Plugin? |
7 | | -This add-on is designed to avoid pawn loads. It is as fast as possible because it is designed with C++. |
| 7 | +## Supports |
| 8 | +The plugin now supports [open.mp](https://github.com/openmultiplayer/open.mp/releases) versions. |
8 | 9 |
|
9 | | -### Bug? |
10 | | -As a result of the tests I have done, I have not encountered a bug. If you find an error, feel free to report it. |
| 10 | +## Arrangements |
| 11 | +You will need to change some natives as the plugin has undergone radical changes. If you haven't used these natives before, it should work fine when you install the plugin normally. Also add format support for all texts. |
11 | 12 |
|
12 | | -### Setup |
13 | | -Simply add the textdraw-streamer library to the very beginning of the game mode you are using. |
14 | | - |
15 | | -_Example:_ |
16 | | -```c++ |
17 | | -#include <a_samp> |
18 | | -#include <textdraw-streamer> |
19 | | - |
20 | | -other libraries... |
21 | | -``` |
22 | | - |
23 | | -### If You Are Using Weapon Config |
24 | | - |
25 | | -_Example:_ |
26 | | -```c++ |
27 | | -#include <a_samp> |
| 13 | +## The Most Important Part |
| 14 | +Always add the textdraw-streamer library to the bottom of the available libraries. |
| 15 | +```c |
| 16 | +#include <open.mp> |
| 17 | +#include <mysql> |
| 18 | +#include <sscanf2> |
28 | 19 | #include <weapon-config> |
29 | 20 | #include <textdraw-streamer> |
30 | | - |
31 | | -other libraries... |
32 | 21 | ``` |
33 | 22 |
|
34 | | -Then all you have to do is use one of the following callbacks. |
35 | | - |
36 | | -```c++ |
37 | | -public ClickDynamicPlayerTextdraw(playerid, PlayerText: playertextid) |
| 23 | +## Callbacks |
| 24 | +```c |
| 25 | +public OnCancelDynamicTextDraw(playerid) |
38 | 26 | { |
39 | | - return 0; |
| 27 | + return 0; |
40 | 28 | } |
41 | 29 |
|
42 | | -public OnPlayerClickDynamicTextdraw(playerid, PlayerText: playertextid) |
| 30 | +public OnClickDynamicTextDraw(playerid, Text:textid) |
43 | 31 | { |
44 | | - return 0; |
| 32 | + return 0; |
45 | 33 | } |
46 | 34 |
|
47 | | -public OnDynamicPlayerTextdrawClicked(playerid, PlayerText: playertextid) |
| 35 | +public OnClickDynamicPlayerTextDraw(playerid, PlayerText:textid) |
48 | 36 | { |
49 | | - return 0; |
| 37 | + return 0; |
50 | 38 | } |
51 | 39 | ``` |
52 | 40 |
|
53 | | -### How can I compile the plugin? |
| 41 | +## Compilation |
| 42 | +Install gcc and g++, make and cmake. On Ubuntu you would do that like so: |
| 43 | +``` |
| 44 | +sudo apt-get install gcc g++ make cmake |
| 45 | +``` |
| 46 | +If you're on a 64-bit system you'll need additional packages for compiling for 32-bit: |
| 47 | +``` |
| 48 | +sudo apt-get install gcc-multilib g++-multilib |
| 49 | +``` |
| 50 | +Finally: |
54 | 51 | ``` |
55 | 52 | cd src |
56 | 53 | mkdir build && cd build |
|
0 commit comments