[Plugin] [REL] Textdraw Plugin V0.1a - BETA
#1

Textdraw Plugin V0.1a - BETA

Let's go straight into the details:

Natives:

* Text:TD_Create(Float:PosX, Float:PosY, textstring[]);
- Creates a Textdraw, and applies the default attributes.

* TD_Destroy(Text:textid);
- Destroys a Textdraw.

* TD_SetString(Text:textid, textstring[]);
- Set the string of a textdraw.

* TD_GetString(Text:textid);
- Get the string of a textdraw. (Alternative: pTD_GetString(Text:textid, returnstring[]); Incase you want to specify the length yourself.)

* Bool:TD_Shown(playerid, Text:textid);
- Check if a Textdraw is shown to a playerid.

* Bool:TD_ShownForAll(Text:textid);
- Check if a textdraw is shown to all players.

* Bool:TD_Valid(Text:textid);
- Check if a textdraw ID is valid or not.

* TD_CopyAttributes(Text: sourcetextid, Text:targettextid);
- Copy the attributes of a textdraw to another. (Excluding the string & position)

* TD_SetPos(Text:textid, Float:PosX, Float:PosY);
- Set the X,Y position of a textdraw.

* TD_GetPos(Text:textid, &Float:PosX, &Float:PosY);
- Get the X,Y position of a textdraw.

* TD_LetterSize(Text:textid, Float: sizeX, Float: sizeY);
- Set the letter size.

* TD_GetLetterSize(Text:textid, &Float: sizeX, &Float: sizeY);
- Get the letter size.

* TD_TextSize(Text:textid, Float: sizeX, Float: sizeY);
- Set the Text size.

* TD_GetTextSize(Text:textid, &Float: sizeX, &Float: sizeY);
- Get the Text size.

* TD_Alignment(Text:textid, alignmenttype);
- Set Alignment.

* TD_GetAlignment(Text:textid);
- Get Alignment.

* TD_Color(Text:textid, color);
- Set Color.

* TD_GetColor(Text:textid);
- Get Color.

* TD_UseBox(Text:textid, option);
- Enable/Disable Box.

* TD_IsBox(Text:textid);
- Returns Box True or False.

* TD_BoxColor(Text:textid, color);
- Set Box Color.

* TD_GetBoxColor(Text:textid);
- Get Box Color.

* TD_SetShadow(Text:textid, shadowsize);
- Set Shadow size.

* TD_GetShadow(Text:textid);
- Get shadow size.

* TD_SetOutline(Text:textid, outlinesize);
- Set outline size.

* TD_GetOutline(Text:textid);
- Get outline size.

* TD_BackgroundColor(Text:textid, color);
- Set Background Color.

* TD_GetBackgroundColor(Text:textid);
- Get Background Color.

* TD_Font(Text:textid, fonttype);
- Set Textdraw Font.

* TD_GetFont(Text:textid);
- Get Textdraw Font.

* TD_SetProportional(Text:textid, option);
- Set the letters proportional.

* TD_GetProportional(Text:textid);
- Proportionality True/False.

* TD_Show(playerid, Text:textid);
- Show a textdraw to a player.

* TD_Hide(playerid, Text:textid);
- Hide a textdraw from a player.

* TD_ShowForAll(Text:textid);
- Show a textdraw to all players.

* TD_HideForAll(Text:textid);
- Hide a textdraw from all players.

* TD_EnableLogs();
* TD_DisableLogs();
- Enabling logs will show you Each and Every textdraw changes taking place.

Features:
- Extra useful functions.
- Whenever you change a single attribute of the textdraw, it will update on every clients screen.
- You don't have to use TextDrawShowForPlayer again and again after changing settings.

Installation:
- Download the .rar file and Extract it using Archive Extractors like WinRAR.
- Copy pawno/include/tdstreamer.inc to your server/pawno/include/
- Copy plugins/tdstreamer.dll to your server/plugins
- Add tdstreamer to server.cfg:
Code:
Example: "plugins sscanf tdstreamer"
- Finally, add this: #include <tdstreamer> to your script and all done..
You don't have to change the default functions, it will be done automatically.

Notes:
- When you include this to your script, all your default TextDraw functions will change into the modified ones.
- By speed, this is slower than the default functions, well, duh. But Flawless and Better.
- I'll go into detail soon, topic will be updated.

Special thanks to:
- Zeex
- CyNiC
- Gamer_Z

Downloads:
Windows - Plugin/Source
Linux - I need someone to help me compile an .so file. I'm no good with GCC Cross compilers and all.. x) [PM ME if you're interested]

This is in Beta stage (Testing purpose), so if you find bugs, report ASAP.
Reply


Messages In This Thread
[REL] Textdraw Plugin V0.1a - BETA - by iPLEOMAX - 08.10.2011, 18:19
Re: [REL] Textdraw Plugin V0.1a - BETA - by Markx - 08.10.2011, 18:28
Re: [REL] Textdraw Plugin V0.1a - BETA - by Kar - 08.10.2011, 18:30
Re : [REL] Textdraw Plugin V0.1a - BETA - by Naruto_Emilio - 08.10.2011, 19:27
Re: [REL] Textdraw Plugin V0.1a - BETA - by Slice - 08.10.2011, 19:27
Re: [REL] Textdraw Plugin V0.1a - BETA - by iPLEOMAX - 08.10.2011, 19:31
Re: [REL] Textdraw Plugin V0.1a - BETA - by GangsTa_ - 08.10.2011, 19:39
Respuesta: [REL] Textdraw Plugin V0.1a - BETA - by Zafiro - 08.10.2011, 19:43
Re: [REL] Textdraw Plugin V0.1a - BETA - by TheArcher - 08.10.2011, 19:46
Re: [REL] Textdraw Plugin V0.1a - BETA - by MicroD - 08.10.2011, 20:18
Re: [REL] Textdraw Plugin V0.1a - BETA - by [L3th4l] - 08.10.2011, 20:37
Re: [REL] Textdraw Plugin V0.1a - BETA - by steki. - 08.10.2011, 20:44
Re: [REL] Textdraw Plugin V0.1a - BETA - by knackworst - 08.10.2011, 20:48
AW: [REL] Textdraw Plugin V0.1a - BETA - by Awesome™ - 08.10.2011, 21:39
Re: [REL] Textdraw Plugin V0.1a - BETA - by Lorenc_ - 09.10.2011, 02:54
Re: [REL] Textdraw Plugin V0.1a - BETA - by iGetty - 09.10.2011, 03:11
Respuesta: [REL] Textdraw Plugin V0.1a - BETA - by DarkChildren - 09.10.2011, 04:16
Re: [REL] Textdraw Plugin V0.1a - BETA - by HyperZ - 09.10.2011, 04:47
Re: [REL] Textdraw Plugin V0.1a - BETA - by Diagram - 09.10.2011, 08:41
Re: [REL] Textdraw Plugin V0.1a - BETA - by Edvin - 09.10.2011, 08:47
Re: [REL] Textdraw Plugin V0.1a - BETA - by wups - 09.10.2011, 09:42
Re: [REL] Textdraw Plugin V0.1a - BETA - by SpiderWalk - 09.10.2011, 11:03
Re: [REL] Textdraw Plugin V0.1a - BETA - by OKStyle - 09.10.2011, 11:33
Re: [REL] Textdraw Plugin V0.1a - BETA - by Gamer_Z - 10.10.2011, 16:42
Re: [REL] Textdraw Plugin V0.1a - BETA - by QuaTTrO - 18.10.2011, 07:34
AW: [REL] Textdraw Plugin V0.1a - BETA - by Pablo Borsellino - 18.10.2011, 09:43
Re: [REL] Textdraw Plugin V0.1a - BETA - by Deskoft - 18.10.2011, 11:50
Respuesta: [REL] Textdraw Plugin V0.1a - BETA - by pistoL - 18.10.2011, 19:20
Re: [REL] Textdraw Plugin V0.1a - BETA - by Lazoking - 25.10.2011, 12:10
Re: [REL] Textdraw Plugin V0.1a - BETA - by iPLEOMAX - 26.10.2011, 15:16
Re: [REL] Textdraw Plugin V0.1a - BETA - by Lorenc_ - 28.10.2011, 10:18
Re: [REL] Textdraw Plugin V0.1a - BETA - by Romzes24 - 28.10.2011, 12:39
Re: [REL] Textdraw Plugin V0.1a - BETA - by LeNy - 26.11.2011, 17:52
Re: [REL] Textdraw Plugin V0.1a - BETA - by Lazoking - 26.11.2011, 18:30
Re: [REL] Textdraw Plugin V0.1a - BETA - by Tailer - 21.02.2012, 03:31
Re: [REL] Textdraw Plugin V0.1a - BETA - by iPLEOMAX - 21.02.2012, 11:24
Re: [REL] Textdraw Plugin V0.1a - BETA - by iPLEOMAX - 21.02.2012, 11:45
Re: [REL] Textdraw Plugin V0.1a - BETA - by n0namE - 22.02.2012, 14:40
Re: [REL] Textdraw Plugin V0.1a - BETA - by Flashhiee - 13.11.2012, 13:29
Re: [REL] Textdraw Plugin V0.1a - BETA - by ZmaXy - 11.03.2013, 22:29
Re: [REL] Textdraw Plugin V0.1a - BETA - by Gamer_Z - 12.03.2013, 06:50
Re: [REL] Textdraw Plugin V0.1a - BETA - by ZmaXy - 12.03.2013, 18:21
Respuesta: [REL] Textdraw Plugin V0.1a - BETA - by Dreyfuz - 12.03.2013, 21:31
Respuesta: [REL] Textdraw Plugin V0.1a - BETA - by DarkChildren - 21.03.2013, 16:55
Re: [REL] Textdraw Plugin V0.1a - BETA - by Ryan_Obeles - 01.05.2013, 07:12

Forum Jump:


Users browsing this thread: 8 Guest(s)