Skip to content

Commit

Permalink
Add README
Browse files Browse the repository at this point in the history
  • Loading branch information
vsergeenko777 committed Oct 3, 2018
1 parent 8e353e6 commit f3154d7
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SA-MP fmt plugin
San Andreas Multiplayer plugin that adds natives with formatting support:
```pawn
native SendClientMessagef(playerid, color, const message[], {Float,_}:...);
native SendClientMessageToAllf(color, const message[], {Float,_}:...);
native GameTextForAllf(time, style, const string[], {Float,_}:...);
native GameTextForPlayerf(playerid, time, style, const string[], {Float,_}:...);
native SendRconCommandf(const command[], {Float,_}:...);
native TextDrawSetStringf(Text:text, const string[], {Float,_}:...);
native PlayerTextDrawSetStringf(playerid, PlayerText:text, const string[], {Float,_}:...);
native ShowPlayerDialogf(playerid, dialogid, style, const caption[], const button1[], const button2[], const info[], {Float,_}:...);
```

## Build
* Clone repository:
```
git clone --recursive https://github.com/vsergeenko777/samp-plugin-fmt.git
cd samp-plugin-fmt
```
* Generate the files needed for compilation:
```
mkdir build
cd build
cmake ..
```
* Build a plugin:
* On Windows, open Visual Studio and compile the project
* On Linux, use make:
> make
* The compiled plugin should appear in the **bin** folder

0 comments on commit f3154d7

Please sign in to comment.