-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e353e6
commit f3154d7
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |