02.08.2013, 16:08
(API does not support PlayerText)
Hi there.
I present here, the author's API to textdrawуw. In this way we can textdrawowi m.in retrieve information about a particular textdrawu or simply change its position.
Include, I started doing once, but someone had to do it and I gave up because I did not have internet and the free time I decided to finish the library.
The library has its wade in creating textdrawu (TextDrawCreate), Wade soon describe.Cons:
Currently TextDraw create *
in my API has been changed. *
That is the function of creation (TextDrawCreate) is one option, and from now on we have to ID textdrawu give in it.
As already talked about the possibility of downloading any information about textdrawie
getTextDrawPosX (Text: TD_ID) *
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Parameters:
Słуży to the TextDrawSetPos
TextDrawSetPos (Text: inc_TextDraw_, Float: posx, Float: posy)
Parameters:
*
For a small elite hejterуw, Appreciate it had put open soruce code, written specifically for Pawno and before you start I hejtować (or stain on) You think about it as if you wrote the API.
*
As I mentioned at the beginning of the API does not support PlayerText, so if you have the proper capacity, and you want to add support for drawing on my code - you're welcome .
*
Have a good time and I think someone useful API.
Download [attachment = 340: textdraw_api.zip]
I would add that in filterscripts folder is a sample script to use the API.
Original topic http://pawno.pl/index.php?/topic/190...-textdraw-api/
Download
http://p4serv.pl/textdraw_api.zip
Hi there.
I present here, the author's API to textdrawуw. In this way we can textdrawowi m.in retrieve information about a particular textdrawu or simply change its position.
Include, I started doing once, but someone had to do it and I gave up because I did not have internet and the free time I decided to finish the library.
The library has its wade in creating textdrawu (TextDrawCreate), Wade soon describe.
- All data are variable (ram ').
- Changes to the procedure for creating textdrawu.
- An example of the script.
- Ability to download data on the textdrawie.
- The ability to change the position TextDraw (system remembers who he turns TextDraw and all the information about it).
Currently TextDraw create *
Код:
new Text: moj_td = TextDrawCreate (0.0, 0.0, "My TextDraw")
Код:
new Text: moj_td; TextDrawCreate (moj_td, 0.0, 0.0, "My TextDraw")
As already talked about the possibility of downloading any information about textdrawie
getTextDrawPosX (Text: TD_ID) *
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: the X position textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: Y position textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: color textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: color box set textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: backgroundcolor textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: alignment textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: font textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: letter (?) Size X textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: letter (?) Size S textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: size textdrawu X
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: size textdrawu Y
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: outline textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: Shadow textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: Proportional textdrawu
Parameters:
- TD_ID: ID textdrawu which you want to take the data.
- The definition of returns: UseBox
Słуży to the TextDrawSetPos
TextDrawSetPos (Text: inc_TextDraw_, Float: posx, Float: posy)
Parameters:
- Inc_TextDraw_ - ID Textdrwau to change.
- POSX - new X position (often useful function getTextDrawPosX).
- Posy - new Y position (often useful function getTextDrawPosY).
- This function returns no value.
*
For a small elite hejterуw, Appreciate it had put open soruce code, written specifically for Pawno and before you start I hejtować (or stain on) You think about it as if you wrote the API.
*
As I mentioned at the beginning of the API does not support PlayerText, so if you have the proper capacity, and you want to add support for drawing on my code - you're welcome .
*
Have a good time and I think someone useful API.
Download [attachment = 340: textdraw_api.zip]
I would add that in filterscripts folder is a sample script to use the API.
Original topic http://pawno.pl/index.php?/topic/190...-textdraw-api/
Download
http://p4serv.pl/textdraw_api.zip