Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- TextDrawMover By iRaiDeN / JizzyB
- Features:
- CreateTextDrawMover(text[],text_color), this the function of create TextDraw Mover.
- Data Of Created: 02/05/2014.
- Time of Created: 16:10.
- all right's reserved!
- */
- #include <a_samp>
- #if defined _TextDrawMover_INC
- #endinput
- #endif
- #define _TextDrawMover_INC
- new
- Count = 0,
- _text[128],
- Text:Textdraw[6],
- timer;
- forward CreateTextDrawMover(text[],text_color);
- public CreateTextDrawMover(text[],text_color)
- {
- Textdraw[0] = TextDrawCreate(5.199992, 389.262268, text);
- TextDrawLetterSize(Textdraw[0], 0.449999, 1.600000);
- TextDrawAlignment(Textdraw[0], 1);
- TextDrawColor(Textdraw[0], text_color);
- TextDrawSetShadow(Textdraw[0], 0);
- TextDrawSetOutline(Textdraw[0], 1);
- TextDrawBackgroundColor(Textdraw[0], 51);
- TextDrawFont(Textdraw[0], 1);
- TextDrawSetProportional(Textdraw[0], 1);
- timer = SetTimer("MoveTextDraw",100,true);
- strcat(_text,text);
- return 1;
- }
- forward MoveTextDraw();
- public MoveTextDraw()
- {
- Count++;
- TextDrawDestroy(Textdraw[Count - 1]);
- Textdraw[Count] = TextDrawCreate(Count * 121.400039, 389.760009, _text);
- TextDrawLetterSize(Textdraw[Count], 0.449999, 1.600000);
- TextDrawAlignment(Textdraw[Count], 1);
- TextDrawColor(Textdraw[Count], -1);
- TextDrawSetShadow(Textdraw[Count], 0);
- TextDrawSetOutline(Textdraw[Count], 1);
- TextDrawBackgroundColor(Textdraw[Count], 51);
- TextDrawFont(Textdraw[Count], 1);
- TextDrawSetProportional(Textdraw[Count], 1);
- if(Count == 5) return KillTimer(timer),Count = 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement