
Textdrawcreate Samp
Fix Russian text plugin for SA-MP: GameText's, TextDraw's and Menu's. Default russifier type is SanLtd. Just add rustext.so in your server.cfg to plugins key. If you want to get additional functionality you should copy rustext.inc to your libraries directory and add #include 'rustext' in your script. : شروع کنید samp-server.exe شروع به کار کن. فایل را به دایرکتوری که در آن samp-server.exe قرار دارد قرار دهید و آن را اجرا کنید. خروج را به کنسول سرور منتقل کنید تا آزمایش کنید که آیا کار می کند.
- /*
- * -FilterScript By: [Phoenix-] And Hitman13 *
- * -Yahoo: Sajjad_Athare@Yahoo.Com *
- * *
- * *
- */
- //------------------------------------------------------------------------------
- new Text:TDLogin;
- new Text:TDSite;
- new Text:TDReg;
- new Text:TDBG;
- //------------------------------------------------------------------------------
- {
- print('n+++++ [Textdraw] Login And Register Systam FilterScript +++++');
- print('***************************************************');
- print('* -Filterscript By: [Phoenix-] And Hitman13 *');
- print('* -Yahoo: Sajjad_Athare@Yahoo.Com *');
- print('* *');
- print('*************************************************n');
- TDBG =TextDrawCreate(426.000000, 17.739999, 'usebox');
- TextDrawTextSize(TDBG, 629.500000, 0.000000);
- TextDrawColor(TDBG, 16777215);
- TextDrawBoxColor(TDBG, 376926784);
- TextDrawSetOutline(TDBG, 0);
- TextDrawFont(TDBG, 0);
- TDLoginUB =TextDrawCreate(618.000000, 155.000000, 'usebox');
- TextDrawLetterSize(TDLoginUB, 0.000000, 2.750000);
- TextDrawTextSize(TDLoginUB, 435.000000, 0.000000);
- TextDrawColor(TDLoginUB, 0);
- TextDrawBoxColor(TDLoginUB, 102);
- TextDrawSetOutline(TDLoginUB, 0);
- TDSiteUB =TextDrawCreate(626.500000, 230.540008, 'usebox');
- TextDrawTextSize(TDSiteUB, 429.500000, 0.000000);
- TextDrawColor(TDSiteUB, 0);
- TextDrawBoxColor(TDSiteUB, 102);
- TextDrawSetOutline(TDSiteUB, 0);
- TDRegUB =TextDrawCreate(618.000000, 185.000000, 'usebox');
- TextDrawTextSize(TDRegUB, 435.000000, 0.000000);
- TextDrawColor(TDRegUB, 0);
- TextDrawBoxColor(TDRegUB, 102);
- TextDrawSetOutline(TDRegUB, 0);
- TDSite =TextDrawCreate(455.000000, 237.500000, '~y~wWw.YourSite.Com');
- TextDrawAlignment(TDSite, 1);
- TextDrawSetShadow(TDSite, 0);
- TextDrawBackgroundColor(TDSite, 51);
- TextDrawSetProportional(TDSite, 1);
- TDReg =TextDrawCreate(480.000000, 190.000000, 'Register');
- TextDrawAlignment(TDReg, 1);
- TextDrawSetShadow(TDReg, 0);
- TextDrawBackgroundColor(TDReg, 51);
- TextDrawSetProportional(TDReg, 1);
- TDName =TextDrawCreate(465.000000, 130.000000, 'SA-MP ~w~Server');
- TextDrawAlignment(TDName, 1);
- TextDrawSetShadow(TDName, 0);
- TextDrawBackgroundColor(TDName, 51);
- TextDrawSetProportional(TDName, 1);
- TDLogin =TextDrawCreate(495.000000, 160.000000, 'LOGIN');
- TextDrawAlignment(TDLogin, 1);
- TextDrawSetShadow(TDLogin, 0);
- TextDrawBackgroundColor(TDLogin, 51);
- TextDrawSetProportional(TDLogin, 1);
- }
- //------------------------------------------------------------------------------
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- if(clickedid TDLogin)
- //Code
- if(clickedid TDReg)
- //Your Code
- return1;
From SA-MP Wiki
Jump to: navigation, search
Main Page Scripting Functions Scripting Callbacks Scripting Basics Server Plugins Tutorials
Description:
Change the size of a textdraw (box if TextDrawUseBox is enabled and/or clickable area for use with TextDrawSetSelectable).
| text | The TextDraw to set the size of. |
| Float:x | The size on the X axis (left/right) following the same 640x480 grid as TextDrawCreate. |
| Float:y | The size on the Y axis (up/down) following the same 640x480 grid as TextDrawCreate. |

Return Values:
- 1: The function was executed successfully.
- 0: The function failed to execute. This means the textdraw specified does not exist.
Clinica sierra vista interview questions.
Notes |
|
Example Usage:
| Tip | If you want to change the text size of a textdraw that is already shown, you don't have to recreate it. Simply use TextDrawShowForPlayer/TextDrawShowForAll after modifying the textdraw and the change will be visible. |
Related Functions
The following functions may be helpful as they relate to this function in one way or another.
- TextDrawCreate: Create a textdraw.
- TextDrawDestroy: Destroy a textdraw.
- TextDrawColor: Set the color of the text in a textdraw.
- TextDrawBoxColor: Set the color of the box in a textdraw.
- TextDrawBackgroundColor: Set the background color of a textdraw.
- TextDrawAlignment: Set the alignment of a textdraw.
- TextDrawFont: Set the font of a textdraw.
- TextDrawLetterSize: Set the letter size of the text in a textdraw.
- TextDrawSetOutline: Choose whether the text has an outline.
- TextDrawSetShadow: Toggle shadows on a textdraw.
- TextDrawSetProportional: Scale the text spacing in a textdraw to a proportional ratio.
- TextDrawUseBox: Toggle if the textdraw has a box or not.
- TextDrawSetString: Set the text in an existing textdraw.
- TextDrawShowForPlayer: Show a textdraw for a certain player.
- TextDrawHideForPlayer: Hide a textdraw for a certain player.
- TextDrawShowForAll: Show a textdraw for all players.
- TextDrawHideForAll: Hide a textdraw for all players.
Retrieved from 'https://wiki.sa-mp.com/wiki/TextDrawTextSize'