Skip to content

Commit 90d058e

Browse files
authored
Update README.md
1 parent ca640b0 commit 90d058e

File tree

1 file changed

+32
-35
lines changed

1 file changed

+32
-35
lines changed

README.md

Lines changed: 32 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,53 @@
1-
[![GitHub Release](https://img.shields.io/github/release/BenBurak/Textdraw-Streamer.svg)](https://github.com/BenBurak/Textdraw-Streamer/releases/latest) [![Download](https://img.shields.io/github/downloads/BenBurak/Textdraw-Streamer/total?color=blue)](https://github.com/BenBurak/Textdraw-Streamer/releases/latest) [![License](https://img.shields.io/github/license/BenBurak/Textdraw-Streamer?color=blue)](https://github.com/BenBurak/Textdraw-Streamer)
1+
## [SA:MP / Open.MP] Textdraw Streamer
2+
[![GitHub Release](https://img.shields.io/github/release/nexquery/samp-textdraw-streamer.svg)](https://github.com/nexquery/samp-textdraw-streamer/releases/latest) [![Download](https://img.shields.io/github/downloads/nexquery/samp-textdraw-streamer/total?color=blue)](https://github.com/nexquery/samp-textdraw-streamer/releases/latest) [![License](https://img.shields.io/github/license/nexquery/samp-textdraw-streamer?color=blue)](https://github.com/nexquery/samp-textdraw-streamer)
23

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.
56

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.
89

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.
1112

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>
2819
#include <weapon-config>
2920
#include <textdraw-streamer>
30-
31-
other libraries...
3221
```
3322

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)
3826
{
39-
return 0;
27+
return 0;
4028
}
4129

42-
public OnPlayerClickDynamicTextdraw(playerid, PlayerText: playertextid)
30+
public OnClickDynamicTextDraw(playerid, Text:textid)
4331
{
44-
return 0;
32+
return 0;
4533
}
4634

47-
public OnDynamicPlayerTextdrawClicked(playerid, PlayerText: playertextid)
35+
public OnClickDynamicPlayerTextDraw(playerid, PlayerText:textid)
4836
{
49-
return 0;
37+
return 0;
5038
}
5139
```
5240
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:
5451
```
5552
cd src
5653
mkdir build && cd build

0 commit comments

Comments
 (0)