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[257],
- _timer,
- Text:Textdraw0,
- Text:Textdraw1,
- Text:Textdraw2,
- Text:Textdraw3,
- Text:Textdraw4,
- Text:Textdraw5;
- stock CreateTextDrawMover(text[257],text_color)
- {
- for(new i; i != MAX_PLAYERS; i++) TextDrawShowForPlayer(i,Textdraw1);
- Textdraw0 = TextDrawCreate(5.199992, 389.262268, text);
- TextDrawLetterSize(Textdraw0, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw0, 1);
- TextDrawColor(Textdraw0, text_color);
- TextDrawSetShadow(Textdraw0, 0);
- TextDrawSetOutline(Textdraw0, 1);
- TextDrawBackgroundColor(Textdraw0, 51);
- TextDrawFont(Textdraw0, 1);
- TextDrawSetProportional(Textdraw0, 1);
- for(new i; i != MAX_PLAYERS; i++) TextDrawShowForPlayer(i,Textdraw0);
- _timer = SetTimer("MoveTextDraw",1000,true);
- _text = text;
- return 0;
- }
- forward MoveTextDraw();
- public MoveTextDraw()
- {
- Count++;
- if(Count == 1)
- {
- TextDrawDestroy(Textdraw0);
- Textdraw1 = TextDrawCreate(128.400039, 389.760009, _text);
- TextDrawLetterSize(Textdraw1, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw1, 1);
- TextDrawColor(Textdraw1, -1);
- TextDrawSetShadow(Textdraw1, 0);
- TextDrawSetOutline(Textdraw1, 1);
- TextDrawBackgroundColor(Textdraw1, 51);
- TextDrawFont(Textdraw1, 1);
- TextDrawSetProportional(Textdraw1, 1);
- for(new i; i != MAX_PLAYERS; i++) TextDrawShowForPlayer(i,Textdraw1);
- }
- else if(Count == 2)
- {
- TextDrawDestroy(Textdraw1);
- Textdraw2 = TextDrawCreate(248.399963, 389.759979, _text);
- TextDrawLetterSize(Textdraw2, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw2, 1);
- TextDrawColor(Textdraw2, -1);
- TextDrawSetShadow(Textdraw2, 0);
- TextDrawSetOutline(Textdraw2, 1);
- TextDrawBackgroundColor(Textdraw2, 51);
- TextDrawFont(Textdraw2, 1);
- TextDrawSetProportional(Textdraw2, 1);
- for(new i; i != MAX_PLAYERS; i++) TextDrawShowForPlayer(i,Textdraw2);
- }
- else if(Count == 3)
- {
- TextDrawDestroy(Textdraw2);
- Textdraw3 = TextDrawCreate(366.800079, 389.760101, _text);
- TextDrawLetterSize(Textdraw3, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw3, 1);
- TextDrawColor(Textdraw3, -1);
- TextDrawSetShadow(Textdraw3, 0);
- TextDrawSetOutline(Textdraw3, 1);
- TextDrawBackgroundColor(Textdraw3, 51);
- TextDrawFont(Textdraw3, 1);
- TextDrawSetProportional(Textdraw3, 1);
- for(new i; i != MAX_PLAYERS; i++) TextDrawShowForPlayer(i,Textdraw3);
- }
- else if(Count == 4)
- {
- TextDrawDestroy(Textdraw3);
- Textdraw4 = TextDrawCreate(486.399963, 389.262207, _text);
- TextDrawLetterSize(Textdraw4, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw4, 1);
- TextDrawColor(Textdraw4, -1);
- TextDrawSetShadow(Textdraw4, 0);
- TextDrawSetOutline(Textdraw4, 1);
- TextDrawBackgroundColor(Textdraw4, 51);
- TextDrawFont(Textdraw4, 1);
- TextDrawSetProportional(Textdraw4, 1);
- for(new i; i != MAX_PLAYERS; i++) TextDrawShowForPlayer(i,Textdraw4);
- }
- else if(Count == 5)
- {
- TextDrawDestroy(Textdraw4);
- Textdraw5 = TextDrawCreate(602.400085, 389.760131, _text);
- TextDrawLetterSize(Textdraw5, 0.449999, 1.600000);
- TextDrawAlignment(Textdraw5, 1);
- TextDrawColor(Textdraw5, -1);
- TextDrawSetShadow(Textdraw5, 0);
- TextDrawSetOutline(Textdraw5, 1);
- TextDrawBackgroundColor(Textdraw5, 51);
- TextDrawFont(Textdraw5, 1);
- TextDrawSetProportional(Textdraw5, 1);
- for(new i; i != MAX_PLAYERS; i++) TextDrawShowForPlayer(i,Textdraw5);
- TextDrawDestroy(Textdraw5);
- KillTimer(_timer);
- Count = 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement