Don't like ads? PRO users don't see any ads ;-)
Guest

Георгиевская Ленточка

By: a guest on May 5th, 2012  |  syntax: PAWN  |  size: 3.11 KB  |  hits: 178  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <a_samp>
  2.  
  3. new Text:Lenta[8];
  4.  
  5. public OnFilterScriptInit() {
  6.  
  7.         Lenta[0] = TextDrawCreate(618.000000, 414.000000, "/ ~b~");
  8.         TextDrawBackgroundColor(Lenta[0], 255);
  9.         TextDrawFont(Lenta[0], 2);
  10.         TextDrawLetterSize(Lenta[0], 2.769999, 4.600000);
  11.         TextDrawColor(Lenta[0], 255);
  12.         TextDrawSetOutline(Lenta[0], 0);
  13.         TextDrawSetProportional(Lenta[0], 1);
  14.         TextDrawSetShadow(Lenta[0], 0);
  15.  
  16.         Lenta[1] = TextDrawCreate(611.000000, 414.000000, "/ ~y~");
  17.         TextDrawBackgroundColor(Lenta[1], 255);
  18.         TextDrawFont(Lenta[1], 2);
  19.         TextDrawLetterSize(Lenta[1], 2.769999, 4.600000);
  20.         TextDrawColor(Lenta[1], -155692033);
  21.         TextDrawSetOutline(Lenta[1], 0);
  22.         TextDrawSetProportional(Lenta[1], 1);
  23.         TextDrawSetShadow(Lenta[1], 0);
  24.  
  25.         Lenta[2] = TextDrawCreate(606.000000, 413.000000, "/ ~b~");
  26.         TextDrawBackgroundColor(Lenta[2], 255);
  27.         TextDrawFont(Lenta[2], 2);
  28.         TextDrawLetterSize(Lenta[2], 2.769999, 4.600000);
  29.         TextDrawColor(Lenta[2], 255);
  30.         TextDrawSetOutline(Lenta[2], 0);
  31.         TextDrawSetProportional(Lenta[2], 1);
  32.         TextDrawSetShadow(Lenta[2], 0);
  33.  
  34.         Lenta[3] = TextDrawCreate(600.000000, 413.000000, "/ ~y~");
  35.         TextDrawBackgroundColor(Lenta[3], 255);
  36.         TextDrawFont(Lenta[3], 2);
  37.         TextDrawLetterSize(Lenta[3], 2.769999, 4.600000);
  38.         TextDrawColor(Lenta[3], -155692033);
  39.         TextDrawSetOutline(Lenta[3], 0);
  40.         TextDrawSetProportional(Lenta[3], 1);
  41.         TextDrawSetShadow(Lenta[3], 0);
  42.  
  43.         Lenta[4] = TextDrawCreate(594.000000, 413.000000, "/ ~b~");
  44.         TextDrawBackgroundColor(Lenta[4], 255);
  45.         TextDrawFont(Lenta[4], 2);
  46.         TextDrawLetterSize(Lenta[4], 2.769999, 4.600000);
  47.         TextDrawColor(Lenta[4], 255);
  48.         TextDrawSetOutline(Lenta[4], 0);
  49.         TextDrawSetProportional(Lenta[4], 1);
  50.         TextDrawSetShadow(Lenta[4], 0);
  51.  
  52.         Lenta[5] = TextDrawCreate(631.000000, 391.000000, "/ ~b~");
  53.         TextDrawBackgroundColor(Lenta[5], 255);
  54.         TextDrawFont(Lenta[5], 2);
  55.         TextDrawLetterSize(Lenta[5], 2.769999, 4.600000);
  56.         TextDrawColor(Lenta[5], 255);
  57.         TextDrawSetOutline(Lenta[5], 0);
  58.         TextDrawSetProportional(Lenta[5], 1);
  59.         TextDrawSetShadow(Lenta[5], 0);
  60.  
  61.         Lenta[6] = TextDrawCreate(622.000000, 392.000000, "/ ~y~");
  62.         TextDrawBackgroundColor(Lenta[6], 255);
  63.         TextDrawFont(Lenta[6], 2);
  64.         TextDrawLetterSize(Lenta[6], 2.769999, 4.600000);
  65.         TextDrawColor(Lenta[6], -155692033);
  66.         TextDrawSetOutline(Lenta[6], 0);
  67.         TextDrawSetProportional(Lenta[6], 1);
  68.         TextDrawSetShadow(Lenta[6], 0);
  69.  
  70.         Lenta[7] = TextDrawCreate(617.000000, 392.000000, "/ ~b~");
  71.         TextDrawBackgroundColor(Lenta[7], 255);
  72.         TextDrawFont(Lenta[7], 2);
  73.         TextDrawLetterSize(Lenta[7], 2.769999, 4.600000);
  74.         TextDrawColor(Lenta[7], 255);
  75.         TextDrawSetOutline(Lenta[7], 0);
  76.         TextDrawSetProportional(Lenta[7], 1);
  77.         TextDrawSetShadow(Lenta[7], 0);
  78.  
  79.         for(new i; i < GetMaxPlayers(); i ++) {
  80.                 if(IsPlayerConnected(i)) {
  81.             for(new y; y < 8; y ++) {
  82.                                 TextDrawShowForPlayer(i, Lenta[y]);
  83.                         }
  84.                 }
  85.         }
  86.         return 1;
  87. }
  88.  
  89. public OnFilterScriptExit() {
  90.     for(new y; y < 8; y ++) {
  91.                 TextDrawHideForAll(Lenta[y]);
  92.                 TextDrawDestroy(Lenta[y]);
  93.         }
  94.         return 1;
  95. }
  96.  
  97. public OnPlayerConnect(playerid) {
  98.     for(new y; y < 8; y ++) {
  99.                 TextDrawShowForPlayer(playerid, Lenta[y]);
  100.         }
  101.         return 1;
  102. }