Guest User

Flashing text.

a guest
Nov 12th, 2012
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.11 KB | None | 0 0
  1. #define FILTERSCRIPT
  2. #define by_Yiin
  3.  
  4. #include <a_samp>
  5.  
  6. new Text:tdjunk;        /* Šitą būtinai palikti! */
  7. new Text:Textdraw0;
  8. new timer;
  9. new spalva[9] = {
  10.     0xFF0000FF,
  11.     0x800000FF,
  12.     0xFFFF00FF,
  13.     0x00FF00FF,
  14.     0x008000FF,
  15.     0x00FFFFFF,
  16.     0x0000FFFF,
  17.     0xFF00FFFF,
  18.     0x800080FF
  19. };
  20.  
  21. public OnFilterScriptInit()
  22. {
  23.     print("---:: Logotipas");
  24.    
  25.     /* Šitą būtinai palikti! */
  26.     tdjunk = TextDrawCreate(0,0," ");
  27.     TextDrawFont(tdjunk, 0);
  28.    
  29.     Textdraw0 = TextDrawCreate(22.020553, 429.916625, "SAMP");
  30.     TextDrawLetterSize(Textdraw0, 0.449999, 1.600000);
  31.     TextDrawAlignment(Textdraw0, 1);
  32.     TextDrawColor(Textdraw0, 255);
  33.     TextDrawSetShadow(Textdraw0, 0);
  34.     TextDrawSetOutline(Textdraw0, 1);
  35.     TextDrawBackgroundColor(Textdraw0, 16777215);
  36.     TextDrawFont(Textdraw0, 1);
  37.     TextDrawSetProportional(Textdraw0, 1);
  38.  
  39.     timer = SetTimer("text", 50, 1);
  40.     return 1;
  41. }
  42.  
  43. public OnFilterScriptExit()
  44. {
  45.     TextDrawHideForAll(Textdraw0);
  46.     KillTimer(timer);
  47.     return 1;
  48. }
  49.  
  50. forward text();
  51. public text()
  52. {
  53.     TextDrawBackgroundColor(Textdraw0, spalva[random(9)]);
  54.     TextDrawShowForAll(Textdraw0);
  55.     return 1;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment