Advertisement
Guest User

Bafore13

a guest
Sep 5th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 74.25 KB | None | 0 0
  1. /*
  2.     Bafore13 System(Sistema de Cigarros)
  3.         - Bafore13 é a nova marca de cigarros do mercado. Com um novo
  4.         design, Bafore13 se torna uma maneira prática e interessante
  5.         de se usufruir de cigarros no mundo do SA-MP, usando recursos
  6.         de TextDraw clicáveis, nunca foi tão diferente carburar um
  7.         tabaco.
  8.  
  9.         Versão: 1.0.0
  10.         Última atualização: 01/09/16
  11.  
  12.     Copyright (C) 2016  Bruno Travi(Bruno13)
  13.  
  14.     This program is free software: you can redistribute it and/or modify
  15.     it under the terms of the GNU General Public License as published by
  16.     the Free Software Foundation, either version 3 of the License, or
  17.     (at your option) any later version.
  18.  
  19.     This program is distributed in the hope that it will be useful,
  20.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  21.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22.     GNU General Public License for more details.
  23.  
  24.     You should have received a copy of the GNU General Public License
  25.     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  26.  
  27.     Esqueleto do código:
  28.     |
  29.      *
  30.      * INCLUDES
  31.      *
  32.     |
  33.      *
  34.      * DEFINITIONS
  35.      *
  36.     |
  37.      *
  38.      * ENUMERATORS
  39.      *
  40.     |
  41.      *
  42.      * VARIABLES
  43.      *
  44.     |
  45.      *
  46.      * NATIVE CALLBACKS
  47.      *
  48.     |
  49.      *
  50.      * MY CALLBACKS
  51.      *
  52.     |
  53.      *
  54.      * FUNCTIONS
  55.      *
  56.     |
  57.      *
  58.      * COMPLEMENTS
  59.      *
  60.     |
  61.      *
  62.      * COMMANDS
  63.      *
  64.     |
  65. */
  66. /*
  67.  |INCLUDES|
  68. */
  69. #include <a_samp>
  70. #include <zcmd>
  71. #include <sscanf2>
  72. #include <DOF2>
  73. /*
  74.  *****************************************************************************
  75. */
  76. /*
  77.  |DEFINITIONS|
  78. */
  79. //MACROS:
  80. stock stringf[256];
  81. #define SendClientMessageEx(%0,%1,%2,%3) format(stringf, sizeof(stringf),%2,%3) && SendClientMessage(%0, %1, stringf)
  82. #define call:%0(%1) forward %0(%1); public %0(%1)
  83.  
  84. //DEFINITIONS:
  85. new const
  86.     CIGARETTE_ACCESS_IF_HAVE    =   false,
  87.     CIGARETTE_PUFF              =   6;
  88. /*
  89.  *****************************************************************************
  90. */
  91. /*
  92.  |ENUMERATORS|
  93. */
  94. const
  95.     size_E_CIGARETTE    =   5 * 13,
  96.     COLOR_RED           =   0xE84F33AA,
  97.     COLOR_GREEN         =   0x9ACD32AA,
  98.     COLOR_YELLOW        =   0xFCD440AA,
  99.  
  100.     CIGARETTE_PACKAGE_FULL      =   5;
  101.  
  102. enum E_TEXT_BAFORE_13
  103. {
  104.     Text:E_BOX[16],
  105.     Text:E_LID_BOX[4],
  106.     Text:E_LID_BOX_CLICK,
  107.     Text:E_CIGARETTE[size_E_CIGARETTE],
  108.     Text:E_CIGARETTE_CLICK[5]
  109. }
  110.  
  111. #define E_CIGARETTE][%1][%2] E_CIGARETTE][((%1)*13)+(%2)]
  112.  
  113. enum E_CIGARETTE_PLAYER
  114. {
  115.     bool:E_HAVE_CIGARETTE[5],
  116.     bool:E_PACKAGE_OPENED,
  117.     bool:E_SMOKING_CIGARETTE,
  118.     E_COUNT_PUFF_CIGARETTE,
  119.     E_TIME_PUFF_CONTROL,
  120.     E_TIMER_DURATION
  121. }
  122. /*
  123.  *****************************************************************************
  124. */
  125. /*
  126.  |VARIABLES|
  127. */
  128. new
  129.     /// <summary>
  130.     /// Variáveis de controle das TextDraws Globais.</summary>
  131.     Text:textBafore13[E_TEXT_BAFORE_13],
  132.  
  133.     /// <summary>
  134.     /// Variável de controle dos cigarros do player.</summary>
  135.     cigarettePlayer[MAX_PLAYERS][E_CIGARETTE_PLAYER];
  136. /*
  137.  *****************************************************************************
  138. */
  139. /*
  140.  |NATIVE CALLBACKS|
  141. */
  142. public OnFilterScriptInit()
  143. {
  144.     /// <summary>
  145.     /// Nesta callback:
  146.     ///     - cria todas as TextDraws Globias da caixa de cigarros;
  147.     ///     - imprime aviso de carregamento no console.
  148.     /// </summary>
  149.  
  150.     CreateGlobalTDBafore13();
  151.  
  152.     print("\n----------------------------------------");
  153.     print("      [B13] Bafore13 System loaded");
  154.     print("      * version 1.0.0");
  155.     print("----------------------------------------\n");
  156.  
  157.     return 1;
  158. }
  159.  
  160. public OnPlayerConnect(playerid)
  161. {
  162.     /// <summary>
  163.     /// Nesta callback:
  164.     ///     - reseta a variável de controle dos cigarros do jogador;
  165.     ///     - carrega os cigarros do jogador.
  166.     /// </summary>
  167.  
  168.     ResetPlayerCigarretes(playerid);
  169.  
  170.     LoadPlayerCigarettes(playerid);
  171.  
  172.     return 1;
  173. }
  174.  
  175. public OnPlayerDisconnect(playerid, reason)
  176. {
  177.     /// <summary>
  178.     /// Nesta callback:
  179.     ///     - salva os cigarros do jogador.
  180.     /// </summary>
  181.  
  182.     SavePlayerCigarettes(playerid);
  183.  
  184.     return 1;
  185. }
  186.  
  187. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  188. {
  189.     /// <summary>
  190.     /// Nesta callback:
  191.     ///     - aplica as funções ao clique de cada TextDraw da caixa de cigarros.
  192.     /// </summary>
  193.  
  194.     if(_:clickedid == INVALID_TEXT_DRAW)
  195.     {
  196.         HidePlayerCigarettePackage(playerid);
  197.     }
  198.  
  199.     if(clickedid == textBafore13[E_LID_BOX_CLICK])
  200.     {
  201.         OpenCigaretteBox(playerid);
  202.     }
  203.  
  204.     for(new i; i < 5; i++)
  205.     {
  206.         if(clickedid == textBafore13[E_CIGARETTE_CLICK][i])
  207.         {
  208.             if(GetPlayerState(playerid) != PLAYER_STATE_ONFOOT)
  209.                 return SendClientMessage(playerid, COLOR_RED, "<!> {FFFFFF}Você não pode fumar cigarro dentro de um veículo.");
  210.  
  211.             CancelSelectTextDraw(playerid);
  212.  
  213.             HidePlayerCigarettePackage(playerid);
  214.  
  215.             SmokeCigarette(playerid, i);
  216.  
  217.             break;
  218.         }
  219.     }
  220.  
  221.     return 1;
  222. }
  223.  
  224. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  225. {
  226.     /// <summary>
  227.     /// Nesta callback:
  228.     ///     - valida se o jogador em questão teclou KEY_FIRE para fumar, se sim aplica o controle sobre o cigarro em uso;
  229.     ///     - valida se o jogador teclou KEY_SECONDARY_ATTACK e está fumando cigarro, se sim apaga o cigarro em uso.
  230.     /// </summary>
  231.  
  232.     if((newkeys & KEY_FIRE) && cigarettePlayer[playerid][E_SMOKING_CIGARETTE] && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_SMOKE_CIGGY)
  233.     {
  234.         if(gettime() - cigarettePlayer[playerid][E_TIME_PUFF_CONTROL] < 3) return 1;
  235.  
  236.         cigarettePlayer[playerid][E_TIME_PUFF_CONTROL] = gettime();
  237.  
  238.         cigarettePlayer[playerid][E_COUNT_PUFF_CIGARETTE]--;
  239.  
  240.         if(cigarettePlayer[playerid][E_COUNT_PUFF_CIGARETTE] < 1)
  241.             SetTimerEx("CallLastCigarettePuff", 2700, false, "i", playerid);
  242.     }
  243.  
  244.     if((newkeys & KEY_SECONDARY_ATTACK) && cigarettePlayer[playerid][E_SMOKING_CIGARETTE])
  245.     {
  246.         ClearAnimations(playerid);
  247.  
  248.         SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  249.  
  250.         KillTimer(cigarettePlayer[playerid][E_TIMER_DURATION]);
  251.  
  252.         cigarettePlayer[playerid][E_SMOKING_CIGARETTE] = false;
  253.  
  254.         SendClientMessage(playerid, COLOR_YELLOW, "<!> {FFFFFF}Você apagou seu cigarro.");
  255.     }
  256.    
  257.     return 1;
  258. }
  259. /*
  260.  *****************************************************************************
  261. */
  262. /*
  263.  |MY CALLBACKS|
  264. */
  265. /// <summary>
  266. /// Timer responsável por apagar o cigarro acendido por um jogador
  267. /// específico em 1 min.
  268. /// Intervalo: 60000ms
  269. /// </summary>
  270. /// <param name="playerid">ID do jogador.</param>
  271. /// <returns>Não retorna valores.</returns>
  272. call:BurningCigarette(playerid)
  273. {
  274.     if(cigarettePlayer[playerid][E_SMOKING_CIGARETTE])
  275.     {
  276.         SendClientMessage(playerid, COLOR_YELLOW, "<!> {FFFFFF}Seu cigarro terminou.");
  277.  
  278.         ClearAnimations(playerid);
  279.  
  280.         SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  281.  
  282.         cigarettePlayer[playerid][E_SMOKING_CIGARETTE] = false;
  283.     }
  284. }
  285. /// <summary>
  286. /// Timer responsável por apagar após a última tragada. Este
  287. /// é chamado quando um jogador específico dá a última tragada
  288. /// do cigarro.
  289. /// Intervalo: 2700ms
  290. /// </summary>
  291. /// <param name="playerid">ID do jogador.</param>
  292. /// <returns>Não retorna valores.</returns>
  293. call:CallLastCigarettePuff(playerid)
  294. {
  295.     SendClientMessage(playerid, COLOR_YELLOW, "<!> {FFFFFF}Seu cigarro terminou.");
  296.  
  297.     ClearAnimations(playerid);
  298.  
  299.     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
  300.  
  301.     KillTimer(cigarettePlayer[playerid][E_TIMER_DURATION]);
  302.  
  303.     cigarettePlayer[playerid][E_SMOKING_CIGARETTE] = false;
  304. }
  305. /*
  306.  *****************************************************************************
  307. */
  308. /*
  309.  |FUNCTIONS|
  310. */
  311. /// <summary>
  312. /// Cria todas TextDraws Globais da caixa de cigarros Bafore13.
  313. /// </summary>
  314. /// <returns>Não retorna valores.</returns>
  315. CreateGlobalTDBafore13()
  316. {
  317.     textBafore13[E_BOX][0] = TextDrawCreate(531.353149, 274.583374, "LD_SPAC:white");
  318.     TextDrawLetterSize(textBafore13[E_BOX][0], 0.000000, 0.000000);
  319.     TextDrawTextSize(textBafore13[E_BOX][0], 93.000000, 153.000000);
  320.     TextDrawAlignment(textBafore13[E_BOX][0], 1);
  321.     TextDrawColor(textBafore13[E_BOX][0], -589505281);
  322.     TextDrawSetShadow(textBafore13[E_BOX][0], 0);
  323.     TextDrawSetOutline(textBafore13[E_BOX][0], 0);
  324.     TextDrawBackgroundColor(textBafore13[E_BOX][0], 255);
  325.     TextDrawFont(textBafore13[E_BOX][0], 4);
  326.     TextDrawSetProportional(textBafore13[E_BOX][0], 0);
  327.     TextDrawSetShadow(textBafore13[E_BOX][0], 0);
  328.  
  329.     textBafore13[E_BOX][1] = TextDrawCreate(550.646911, 323.583435, "LD_OTB:hrs4");
  330.     TextDrawLetterSize(textBafore13[E_BOX][1], 0.000000, 0.000000);
  331.     TextDrawTextSize(textBafore13[E_BOX][1], 53.000000, 50.000000);
  332.     TextDrawAlignment(textBafore13[E_BOX][1], 1);
  333.     TextDrawColor(textBafore13[E_BOX][1], -1);
  334.     TextDrawSetShadow(textBafore13[E_BOX][1], 0);
  335.     TextDrawSetOutline(textBafore13[E_BOX][1], 0);
  336.     TextDrawBackgroundColor(textBafore13[E_BOX][1], 255);
  337.     TextDrawFont(textBafore13[E_BOX][1], 4);
  338.     TextDrawSetProportional(textBafore13[E_BOX][1], 0);
  339.     TextDrawSetShadow(textBafore13[E_BOX][1], 0);
  340.  
  341.     textBafore13[E_BOX][2] = TextDrawCreate(531.353088, 274.582977, "LD_SPAC:white");
  342.     TextDrawLetterSize(textBafore13[E_BOX][2], 0.000000, 0.000000);
  343.     TextDrawTextSize(textBafore13[E_BOX][2], 93.000000, 43.910015);
  344.     TextDrawAlignment(textBafore13[E_BOX][2], 1);
  345.     TextDrawColor(textBafore13[E_BOX][2], 1835888127);
  346.     TextDrawSetShadow(textBafore13[E_BOX][2], 0);
  347.     TextDrawSetOutline(textBafore13[E_BOX][2], 0);
  348.     TextDrawBackgroundColor(textBafore13[E_BOX][2], 255);
  349.     TextDrawFont(textBafore13[E_BOX][2], 4);
  350.     TextDrawSetProportional(textBafore13[E_BOX][2], 0);
  351.     TextDrawSetShadow(textBafore13[E_BOX][2], 0);
  352.  
  353.     //De baixo da tampa:
  354.     textBafore13[E_BOX][3] = TextDrawCreate(531.353149, 293.833343, "LD_SPAC:white");
  355.     TextDrawLetterSize(textBafore13[E_BOX][3], 0.000000, 0.000000);
  356.     TextDrawTextSize(textBafore13[E_BOX][3], 11.000000, 43.000000);
  357.     TextDrawAlignment(textBafore13[E_BOX][3], 1);
  358.     TextDrawColor(textBafore13[E_BOX][3], -589505281);
  359.     TextDrawSetShadow(textBafore13[E_BOX][3], 0);
  360.     TextDrawSetOutline(textBafore13[E_BOX][3], 0);
  361.     TextDrawBackgroundColor(textBafore13[E_BOX][3], 255);
  362.     TextDrawFont(textBafore13[E_BOX][3], 4);
  363.     TextDrawSetProportional(textBafore13[E_BOX][3], 0);
  364.     TextDrawSetShadow(textBafore13[E_BOX][3], 0);
  365.  
  366.     textBafore13[E_BOX][4] = TextDrawCreate(529.941223, 282.266723, "LD_BEAT:chit");
  367.     TextDrawLetterSize(textBafore13[E_BOX][4], 0.000000, 0.000000);
  368.     TextDrawTextSize(textBafore13[E_BOX][4], 15.000000, 23.000000);
  369.     TextDrawAlignment(textBafore13[E_BOX][4], 1);
  370.     TextDrawColor(textBafore13[E_BOX][4], -589505281);
  371.     TextDrawSetShadow(textBafore13[E_BOX][4], 0);
  372.     TextDrawSetOutline(textBafore13[E_BOX][4], 0);
  373.     TextDrawBackgroundColor(textBafore13[E_BOX][4], 255);
  374.     TextDrawFont(textBafore13[E_BOX][4], 4);
  375.     TextDrawSetProportional(textBafore13[E_BOX][4], 0);
  376.     TextDrawSetShadow(textBafore13[E_BOX][4], 0);
  377.  
  378.     textBafore13[E_BOX][5] = TextDrawCreate(531.353149, 286.249938, "LD_SPAC:white");
  379.     TextDrawLetterSize(textBafore13[E_BOX][5], 0.000000, 0.000000);
  380.     TextDrawTextSize(textBafore13[E_BOX][5], 5.000000, 44.000000);
  381.     TextDrawAlignment(textBafore13[E_BOX][5], 1);
  382.     TextDrawColor(textBafore13[E_BOX][5], -589505281);
  383.     TextDrawSetShadow(textBafore13[E_BOX][5], 0);
  384.     TextDrawSetOutline(textBafore13[E_BOX][5], 0);
  385.     TextDrawBackgroundColor(textBafore13[E_BOX][5], 255);
  386.     TextDrawFont(textBafore13[E_BOX][5], 4);
  387.     TextDrawSetProportional(textBafore13[E_BOX][5], 0);
  388.     TextDrawSetShadow(textBafore13[E_BOX][5], 0);
  389.  
  390.     textBafore13[E_BOX][6] = TextDrawCreate(613.235046, 293.833343, "LD_SPAC:white");
  391.     TextDrawLetterSize(textBafore13[E_BOX][6], 0.000000, 0.000000);
  392.     TextDrawTextSize(textBafore13[E_BOX][6], 11.000000, 43.000000);
  393.     TextDrawAlignment(textBafore13[E_BOX][6], 1);
  394.     TextDrawColor(textBafore13[E_BOX][6], -589505281);
  395.     TextDrawSetShadow(textBafore13[E_BOX][6], 0);
  396.     TextDrawSetOutline(textBafore13[E_BOX][6], 0);
  397.     TextDrawBackgroundColor(textBafore13[E_BOX][6], 255);
  398.     TextDrawFont(textBafore13[E_BOX][6], 4);
  399.     TextDrawSetProportional(textBafore13[E_BOX][6], 0);
  400.     TextDrawSetShadow(textBafore13[E_BOX][6], 0);
  401.  
  402.     textBafore13[E_BOX][7] = TextDrawCreate(610.882080, 282.266723, "LD_BEAT:chit");
  403.     TextDrawLetterSize(textBafore13[E_BOX][7], 0.000000, 0.000000);
  404.     TextDrawTextSize(textBafore13[E_BOX][7], 15.000000, 23.000000);
  405.     TextDrawAlignment(textBafore13[E_BOX][7], 1);
  406.     TextDrawColor(textBafore13[E_BOX][7], -589505281);
  407.     TextDrawSetShadow(textBafore13[E_BOX][7], 0);
  408.     TextDrawSetOutline(textBafore13[E_BOX][7], 0);
  409.     TextDrawBackgroundColor(textBafore13[E_BOX][7], 255);
  410.     TextDrawFont(textBafore13[E_BOX][7], 4);
  411.     TextDrawSetProportional(textBafore13[E_BOX][7], 0);
  412.     TextDrawSetShadow(textBafore13[E_BOX][7], 0);
  413.  
  414.     textBafore13[E_BOX][8] = TextDrawCreate(619.352539, 286.249938, "LD_SPAC:white");
  415.     TextDrawLetterSize(textBafore13[E_BOX][8], 0.000000, 0.000000);
  416.     TextDrawTextSize(textBafore13[E_BOX][8], 5.000000, 44.000000);
  417.     TextDrawAlignment(textBafore13[E_BOX][8], 1);
  418.     TextDrawColor(textBafore13[E_BOX][8], -589505281);
  419.     TextDrawSetShadow(textBafore13[E_BOX][8], 0);
  420.     TextDrawSetOutline(textBafore13[E_BOX][8], 0);
  421.     TextDrawBackgroundColor(textBafore13[E_BOX][8], 255);
  422.     TextDrawFont(textBafore13[E_BOX][8], 4);
  423.     TextDrawSetProportional(textBafore13[E_BOX][8], 0);
  424.     TextDrawSetShadow(textBafore13[E_BOX][8], 0);
  425.     //-----------------------------------------------------------------------------------
  426.     //Tampa:
  427.     textBafore13[E_LID_BOX][0] = TextDrawCreate(531.353149, 274.583374, "LD_SPAC:white");
  428.     TextDrawLetterSize(textBafore13[E_LID_BOX][0], 0.000000, 0.000000);
  429.     TextDrawTextSize(textBafore13[E_LID_BOX][0], 93.000000, 43.000000);
  430.     TextDrawAlignment(textBafore13[E_LID_BOX][0], 1);
  431.     TextDrawColor(textBafore13[E_LID_BOX][0], -589505281);
  432.     TextDrawSetShadow(textBafore13[E_LID_BOX][0], 0);
  433.     TextDrawSetOutline(textBafore13[E_LID_BOX][0], 0);
  434.     TextDrawBackgroundColor(textBafore13[E_LID_BOX][0], 255);
  435.     TextDrawFont(textBafore13[E_LID_BOX][0], 4);
  436.     TextDrawSetProportional(textBafore13[E_LID_BOX][0], 0);
  437.     TextDrawSetShadow(textBafore13[E_LID_BOX][0], 0);
  438.  
  439.     textBafore13[E_LID_BOX][1] = TextDrawCreate(537.000061, 280.416778, "LD_SPAC:white");
  440.     TextDrawLetterSize(textBafore13[E_LID_BOX][1], 0.000000, 0.000000);
  441.     TextDrawTextSize(textBafore13[E_LID_BOX][1], 82.000000, 7.000000);
  442.     TextDrawAlignment(textBafore13[E_LID_BOX][1], 1);
  443.     TextDrawColor(textBafore13[E_LID_BOX][1], -1523963137);
  444.     TextDrawSetShadow(textBafore13[E_LID_BOX][1], 0);
  445.     TextDrawSetOutline(textBafore13[E_LID_BOX][1], 0);
  446.     TextDrawBackgroundColor(textBafore13[E_LID_BOX][1], 255);
  447.     TextDrawFont(textBafore13[E_LID_BOX][1], 4);
  448.     TextDrawSetProportional(textBafore13[E_LID_BOX][1], 0);
  449.     TextDrawSetShadow(textBafore13[E_LID_BOX][1], 0);
  450.  
  451.     textBafore13[E_LID_BOX][2] = TextDrawCreate(578.000000, 279.833251, "Edicao especial");
  452.     TextDrawLetterSize(textBafore13[E_LID_BOX][2], 0.200470, 0.771664);
  453.     TextDrawAlignment(textBafore13[E_LID_BOX][2], 2);
  454.     TextDrawColor(textBafore13[E_LID_BOX][2], -1);
  455.     TextDrawSetShadow(textBafore13[E_LID_BOX][2], 0);
  456.     TextDrawSetOutline(textBafore13[E_LID_BOX][2], 0);
  457.     TextDrawBackgroundColor(textBafore13[E_LID_BOX][2], 255);
  458.     TextDrawFont(textBafore13[E_LID_BOX][2], 2);
  459.     TextDrawSetProportional(textBafore13[E_LID_BOX][2], 1);
  460.     TextDrawSetShadow(textBafore13[E_LID_BOX][2], 0);
  461.  
  462.     textBafore13[E_LID_BOX][3] = TextDrawCreate(577.999572, 293.833404, "Silver Edition");
  463.     TextDrawLetterSize(textBafore13[E_LID_BOX][3], 0.339762, 1.343333);
  464.     TextDrawAlignment(textBafore13[E_LID_BOX][3], 2);
  465.     TextDrawColor(textBafore13[E_LID_BOX][3], -1523963137);
  466.     TextDrawSetShadow(textBafore13[E_LID_BOX][3], 0);
  467.     TextDrawSetOutline(textBafore13[E_LID_BOX][3], 0);
  468.     TextDrawBackgroundColor(textBafore13[E_LID_BOX][3], 255);
  469.     TextDrawFont(textBafore13[E_LID_BOX][3], 3);
  470.     TextDrawSetProportional(textBafore13[E_LID_BOX][3], 1);
  471.     TextDrawSetShadow(textBafore13[E_LID_BOX][3], 0);
  472.     //-----------------------------------------------
  473.     textBafore13[E_BOX][9] = TextDrawCreate(548.353027, 372.000335, "Bafore");
  474.     TextDrawLetterSize(textBafore13[E_BOX][9], 0.597176, 2.520833);
  475.     TextDrawAlignment(textBafore13[E_BOX][9], 1);
  476.     TextDrawColor(textBafore13[E_BOX][9], 255);
  477.     TextDrawSetShadow(textBafore13[E_BOX][9], 0);
  478.     TextDrawSetOutline(textBafore13[E_BOX][9], 0);
  479.     TextDrawBackgroundColor(textBafore13[E_BOX][9], 255);
  480.     TextDrawFont(textBafore13[E_BOX][9], 0);
  481.     TextDrawSetProportional(textBafore13[E_BOX][9], 1);
  482.     TextDrawSetShadow(textBafore13[E_BOX][9], 0);
  483.  
  484.     textBafore13[E_BOX][10] = TextDrawCreate(548.353027, 372.000335, "Bafore");
  485.     TextDrawLetterSize(textBafore13[E_BOX][10], 0.597176, 2.520833);
  486.     TextDrawAlignment(textBafore13[E_BOX][10], 1);
  487.     TextDrawColor(textBafore13[E_BOX][10], 1835888127);
  488.     TextDrawSetShadow(textBafore13[E_BOX][10], 0);
  489.     TextDrawSetOutline(textBafore13[E_BOX][10], 0);
  490.     TextDrawBackgroundColor(textBafore13[E_BOX][10], 255);
  491.     TextDrawFont(textBafore13[E_BOX][10], 0);
  492.     TextDrawSetProportional(textBafore13[E_BOX][10], 1);
  493.     TextDrawSetShadow(textBafore13[E_BOX][10], 0);
  494.  
  495.     textBafore13[E_BOX][11] = TextDrawCreate(593.058654, 371.417053, "13");
  496.     TextDrawLetterSize(textBafore13[E_BOX][11], 0.353882, 2.865000);
  497.     TextDrawAlignment(textBafore13[E_BOX][11], 1);
  498.     TextDrawColor(textBafore13[E_BOX][11], 255);
  499.     TextDrawSetShadow(textBafore13[E_BOX][11], 0);
  500.     TextDrawSetOutline(textBafore13[E_BOX][11], 0);
  501.     TextDrawBackgroundColor(textBafore13[E_BOX][11], 255);
  502.     TextDrawFont(textBafore13[E_BOX][11], 2);
  503.     TextDrawSetProportional(textBafore13[E_BOX][11], 1);
  504.     TextDrawSetShadow(textBafore13[E_BOX][11], 0);
  505.  
  506.     textBafore13[E_BOX][12] = TextDrawCreate(593.058654, 371.417053, "13");
  507.     TextDrawLetterSize(textBafore13[E_BOX][12], 0.353882, 2.865000);
  508.     TextDrawAlignment(textBafore13[E_BOX][12], 1);
  509.     TextDrawColor(textBafore13[E_BOX][12], 1835888127);
  510.     TextDrawSetShadow(textBafore13[E_BOX][12], 0);
  511.     TextDrawSetOutline(textBafore13[E_BOX][12], 0);
  512.     TextDrawBackgroundColor(textBafore13[E_BOX][12], 255);
  513.     TextDrawFont(textBafore13[E_BOX][12], 2);
  514.     TextDrawSetProportional(textBafore13[E_BOX][12], 1);
  515.     TextDrawSetShadow(textBafore13[E_BOX][12], 0);
  516.  
  517.     textBafore13[E_BOX][13] = TextDrawCreate(577.999572, 398.250061, "contem 5 cigarros");
  518.     TextDrawLetterSize(textBafore13[E_BOX][13], 0.162643, 0.846665);
  519.     TextDrawAlignment(textBafore13[E_BOX][13], 2);
  520.     TextDrawColor(textBafore13[E_BOX][13], 1835888127);
  521.     TextDrawSetShadow(textBafore13[E_BOX][13], 0);
  522.     TextDrawSetOutline(textBafore13[E_BOX][13], 0);
  523.     TextDrawBackgroundColor(textBafore13[E_BOX][13], 255);
  524.     TextDrawFont(textBafore13[E_BOX][13], 2);
  525.     TextDrawSetProportional(textBafore13[E_BOX][13], 1);
  526.     TextDrawSetShadow(textBafore13[E_BOX][13], 0);
  527.  
  528.     textBafore13[E_BOX][14] = TextDrawCreate(533.235473, 410.499969, "LD_SPAC:white");
  529.     TextDrawLetterSize(textBafore13[E_BOX][14], 0.000000, 0.000000);
  530.     TextDrawTextSize(textBafore13[E_BOX][14], 89.000000, 15.000000);
  531.     TextDrawAlignment(textBafore13[E_BOX][14], 1);
  532.     TextDrawColor(textBafore13[E_BOX][14], 255);
  533.     TextDrawSetShadow(textBafore13[E_BOX][14], 0);
  534.     TextDrawSetOutline(textBafore13[E_BOX][14], 0);
  535.     TextDrawBackgroundColor(textBafore13[E_BOX][14], 255);
  536.     TextDrawFont(textBafore13[E_BOX][14], 4);
  537.     TextDrawSetProportional(textBafore13[E_BOX][14], 0);
  538.     TextDrawSetShadow(textBafore13[E_BOX][14], 0);
  539.  
  540.     textBafore13[E_BOX][15] = TextDrawCreate(577.999694, 409.916625, "Este produto pode causar~n~cancer_e_problemas_de_saude.");
  541.     TextDrawLetterSize(textBafore13[E_BOX][15], 0.129703, 0.834998);
  542.     TextDrawAlignment(textBafore13[E_BOX][15], 2);
  543.     TextDrawColor(textBafore13[E_BOX][15], -1);
  544.     TextDrawSetShadow(textBafore13[E_BOX][15], 0);
  545.     TextDrawSetOutline(textBafore13[E_BOX][15], 0);
  546.     TextDrawBackgroundColor(textBafore13[E_BOX][15], 255);
  547.     TextDrawFont(textBafore13[E_BOX][15], 2);
  548.     TextDrawSetProportional(textBafore13[E_BOX][15], 1);
  549.     TextDrawSetShadow(textBafore13[E_BOX][15], 0);
  550.  
  551.     textBafore13[E_LID_BOX_CLICK] = TextDrawCreate(531.353088, 274.582977, "LD_SPAC:white");
  552.     TextDrawLetterSize(textBafore13[E_LID_BOX_CLICK], 0.000000, 0.000000);
  553.     TextDrawTextSize(textBafore13[E_LID_BOX_CLICK], 93.000000, 43.910015);
  554.     TextDrawAlignment(textBafore13[E_LID_BOX_CLICK], 1);
  555.     TextDrawColor(textBafore13[E_LID_BOX_CLICK], -589505536);
  556.     TextDrawSetShadow(textBafore13[E_LID_BOX_CLICK], 0);
  557.     TextDrawSetOutline(textBafore13[E_LID_BOX_CLICK], 0);
  558.     TextDrawBackgroundColor(textBafore13[E_LID_BOX_CLICK], 255);
  559.     TextDrawFont(textBafore13[E_LID_BOX_CLICK], 4);
  560.     TextDrawSetProportional(textBafore13[E_LID_BOX_CLICK], 0);
  561.     TextDrawSetShadow(textBafore13[E_LID_BOX_CLICK], 0);
  562.     TextDrawSetSelectable(textBafore13[E_LID_BOX_CLICK], true);
  563.     /*********************************************************/
  564.     //Cigarette 0
  565.     textBafore13[E_CIGARETTE][0][0] = TextDrawCreate(545.000366, 318.333465, "LD_SPAC:white");
  566.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][0], 0.000000, 0.000000);
  567.     TextDrawTextSize(textBafore13[E_CIGARETTE][0][0], 10.000000, -39.000000);
  568.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][0], 1);
  569.     TextDrawColor(textBafore13[E_CIGARETTE][0][0], -40238593);
  570.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][0], 0);
  571.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][0], 0);
  572.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][0], 255);
  573.     TextDrawFont(textBafore13[E_CIGARETTE][0][0], 4);
  574.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][0], 0);
  575.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][0], 0);
  576.     TextDrawSetSelectable(textBafore13[E_CIGARETTE][0][0], true);
  577.  
  578.     textBafore13[E_CIGARETTE][0][1] = TextDrawCreate(545.000366, 318.333465, "LD_SPAC:white");
  579.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][1], 0.000000, 0.000000);
  580.     TextDrawTextSize(textBafore13[E_CIGARETTE][0][1], 10.000000, -8.000000);
  581.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][1], 1);
  582.     TextDrawColor(textBafore13[E_CIGARETTE][0][1], -1);
  583.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][1], 0);
  584.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][1], 0);
  585.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][1], 255);
  586.     TextDrawFont(textBafore13[E_CIGARETTE][0][1], 4);
  587.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][1], 0);
  588.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][1], 0);
  589.  
  590.     textBafore13[E_CIGARETTE][0][2] = TextDrawCreate(545.529479, 272.833221, ",");
  591.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][2], 0.229644, 1.343332);
  592.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][2], 1);
  593.     TextDrawColor(textBafore13[E_CIGARETTE][0][2], -1);
  594.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][2], 0);
  595.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][2], 0);
  596.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][2], 255);
  597.     TextDrawFont(textBafore13[E_CIGARETTE][0][2], 1);
  598.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][2], 1);
  599.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][2], 0);
  600.  
  601.     textBafore13[E_CIGARETTE][0][3] = TextDrawCreate(550.705871, 276.333282, ",");
  602.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][3], 0.229644, 1.343332);
  603.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][3], 1);
  604.     TextDrawColor(textBafore13[E_CIGARETTE][0][3], -1);
  605.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][3], 0);
  606.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][3], 0);
  607.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][3], 255);
  608.     TextDrawFont(textBafore13[E_CIGARETTE][0][3], 1);
  609.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][3], 1);
  610.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][3], 0);
  611.  
  612.     textBafore13[E_CIGARETTE][0][4] = TextDrawCreate(553.529357, 295.000030, ",");
  613.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][4], -0.164233, 1.378332);
  614.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][4], 1);
  615.     TextDrawColor(textBafore13[E_CIGARETTE][0][4], -1);
  616.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][4], 0);
  617.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][4], 0);
  618.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][4], 255);
  619.     TextDrawFont(textBafore13[E_CIGARETTE][0][4], 1);
  620.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][4], 1);
  621.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][4], 0);
  622.  
  623.     textBafore13[E_CIGARETTE][0][5] = TextDrawCreate(548.823547, 282.166625, ",");
  624.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][5], -0.178350, 1.366665);
  625.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][5], 1);
  626.     TextDrawColor(textBafore13[E_CIGARETTE][0][5], -1);
  627.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][5], 0);
  628.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][5], 0);
  629.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][5], 255);
  630.     TextDrawFont(textBafore13[E_CIGARETTE][0][5], 1);
  631.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][5], 1);
  632.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][5], 0);
  633.  
  634.     textBafore13[E_CIGARETTE][0][6] = TextDrawCreate(550.705932, 306.083374, ",");
  635.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][6], 0.166115, -1.515002);
  636.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][6], 1);
  637.     TextDrawColor(textBafore13[E_CIGARETTE][0][6], -1);
  638.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][6], 0);
  639.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][6], 0);
  640.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][6], 255);
  641.     TextDrawFont(textBafore13[E_CIGARETTE][0][6], 1);
  642.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][6], 1);
  643.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][6], 0);
  644.  
  645.     textBafore13[E_CIGARETTE][0][7] = TextDrawCreate(547.882446, 290.916778, ",");
  646.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][7], 0.169411, 1.349166);
  647.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][7], 1);
  648.     TextDrawColor(textBafore13[E_CIGARETTE][0][7], -1);
  649.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][7], 0);
  650.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][7], 0);
  651.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][7], 255);
  652.     TextDrawFont(textBafore13[E_CIGARETTE][0][7], 1);
  653.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][7], 1);
  654.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][7], 0);
  655.  
  656.     textBafore13[E_CIGARETTE][0][8] = TextDrawCreate(550.235351, 276.333312, ".");
  657.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][8], 0.138352, 0.672499);
  658.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][8], 1);
  659.     TextDrawColor(textBafore13[E_CIGARETTE][0][8], -1);
  660.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][8], 0);
  661.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][8], 0);
  662.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][8], 255);
  663.     TextDrawFont(textBafore13[E_CIGARETTE][0][8], 1);
  664.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][8], 1);
  665.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][8], 0);
  666.  
  667.     textBafore13[E_CIGARETTE][0][9] = TextDrawCreate(548.353027, 302.000091, ".");
  668.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][9], 0.138352, 0.672499);
  669.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][9], 1);
  670.     TextDrawColor(textBafore13[E_CIGARETTE][0][9], -1);
  671.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][9], 0);
  672.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][9], 0);
  673.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][9], 255);
  674.     TextDrawFont(textBafore13[E_CIGARETTE][0][9], 1);
  675.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][9], 1);
  676.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][9], 0);
  677.  
  678.     textBafore13[E_CIGARETTE][0][10] = TextDrawCreate(552.588256, 286.250122, ".");
  679.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][10], 0.138352, 0.672499);
  680.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][10], 1);
  681.     TextDrawColor(textBafore13[E_CIGARETTE][0][10], -1);
  682.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][10], 0);
  683.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][10], 0);
  684.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][10], 255);
  685.     TextDrawFont(textBafore13[E_CIGARETTE][0][10], 1);
  686.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][10], 1);
  687.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][10], 0);
  688.  
  689.     textBafore13[E_CIGARETTE][0][11] = TextDrawCreate(546.941284, 282.166748, ".");
  690.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][11], 0.138352, 0.672499);
  691.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][11], 1);
  692.     TextDrawColor(textBafore13[E_CIGARETTE][0][11], -1);
  693.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][11], 0);
  694.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][11], 0);
  695.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][11], 255);
  696.     TextDrawFont(textBafore13[E_CIGARETTE][0][11], 1);
  697.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][11], 1);
  698.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][11], 0);
  699.  
  700.     textBafore13[E_CIGARETTE][0][12] = TextDrawCreate(546.941284, 292.083557, ".");
  701.     TextDrawLetterSize(textBafore13[E_CIGARETTE][0][12], 0.138352, 0.672499);
  702.     TextDrawAlignment(textBafore13[E_CIGARETTE][0][12], 1);
  703.     TextDrawColor(textBafore13[E_CIGARETTE][0][12], -1);
  704.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][12], 0);
  705.     TextDrawSetOutline(textBafore13[E_CIGARETTE][0][12], 0);
  706.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][0][12], 255);
  707.     TextDrawFont(textBafore13[E_CIGARETTE][0][12], 1);
  708.     TextDrawSetProportional(textBafore13[E_CIGARETTE][0][12], 1);
  709.     TextDrawSetShadow(textBafore13[E_CIGARETTE][0][12], 0);
  710.  
  711.     //Cigarette 1
  712.     textBafore13[E_CIGARETTE][1][0] = TextDrawCreate(559.117736, 318.333465, "LD_SPAC:white");
  713.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][0], 0.000000, 0.000000);
  714.     TextDrawTextSize(textBafore13[E_CIGARETTE][1][0], 10.000000, -39.000000);
  715.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][0], 1);
  716.     TextDrawColor(textBafore13[E_CIGARETTE][1][0], -40238593);
  717.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][0], 0);
  718.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][0], 0);
  719.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][0], 255);
  720.     TextDrawFont(textBafore13[E_CIGARETTE][1][0], 4);
  721.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][0], 0);
  722.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][0], 0);
  723.  
  724.     textBafore13[E_CIGARETTE][1][1] = TextDrawCreate(559.117736, 318.333465, "LD_SPAC:white");
  725.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][1], 0.000000, 0.000000);
  726.     TextDrawTextSize(textBafore13[E_CIGARETTE][1][1], 10.000000, -8.000000);
  727.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][1], 1);
  728.     TextDrawColor(textBafore13[E_CIGARETTE][1][1], -1);
  729.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][1], 0);
  730.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][1], 0);
  731.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][1], 255);
  732.     TextDrawFont(textBafore13[E_CIGARETTE][1][1], 4);
  733.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][1], 0);
  734.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][1], 0);
  735.  
  736.     textBafore13[E_CIGARETTE][1][2] = TextDrawCreate(559.646850, 272.833221, ",");
  737.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][2], 0.229644, 1.343332);
  738.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][2], 1);
  739.     TextDrawColor(textBafore13[E_CIGARETTE][1][2], -1);
  740.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][2], 0);
  741.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][2], 0);
  742.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][2], 255);
  743.     TextDrawFont(textBafore13[E_CIGARETTE][1][2], 1);
  744.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][2], 1);
  745.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][2], 0);
  746.  
  747.     textBafore13[E_CIGARETTE][1][3] = TextDrawCreate(564.823242, 276.333282, ",");
  748.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][3], 0.229644, 1.343332);
  749.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][3], 1);
  750.     TextDrawColor(textBafore13[E_CIGARETTE][1][3], -1);
  751.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][3], 0);
  752.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][3], 0);
  753.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][3], 255);
  754.     TextDrawFont(textBafore13[E_CIGARETTE][1][3], 1);
  755.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][3], 1);
  756.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][3], 0);
  757.  
  758.     textBafore13[E_CIGARETTE][1][4] = TextDrawCreate(567.646728, 295.000030, ",");
  759.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][4], -0.164233, 1.378332);
  760.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][4], 1);
  761.     TextDrawColor(textBafore13[E_CIGARETTE][1][4], -1);
  762.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][4], 0);
  763.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][4], 0);
  764.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][4], 255);
  765.     TextDrawFont(textBafore13[E_CIGARETTE][1][4], 1);
  766.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][4], 1);
  767.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][4], 0);
  768.  
  769.     textBafore13[E_CIGARETTE][1][5] = TextDrawCreate(562.940917, 282.166625, ",");
  770.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][5], -0.178350, 1.366665);
  771.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][5], 1);
  772.     TextDrawColor(textBafore13[E_CIGARETTE][1][5], -1);
  773.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][5], 0);
  774.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][5], 0);
  775.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][5], 255);
  776.     TextDrawFont(textBafore13[E_CIGARETTE][1][5], 1);
  777.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][5], 1);
  778.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][5], 0);
  779.  
  780.     textBafore13[E_CIGARETTE][1][6] = TextDrawCreate(564.823303, 306.083374, ",");
  781.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][6], 0.166115, -1.515002);
  782.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][6], 1);
  783.     TextDrawColor(textBafore13[E_CIGARETTE][1][6], -1);
  784.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][6], 0);
  785.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][6], 0);
  786.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][6], 255);
  787.     TextDrawFont(textBafore13[E_CIGARETTE][1][6], 1);
  788.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][6], 1);
  789.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][6], 0);
  790.  
  791.     textBafore13[E_CIGARETTE][1][7] = TextDrawCreate(561.999816, 290.916778, ",");
  792.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][7], 0.169411, 1.349166);
  793.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][7], 1);
  794.     TextDrawColor(textBafore13[E_CIGARETTE][1][7], -1);
  795.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][7], 0);
  796.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][7], 0);
  797.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][7], 255);
  798.     TextDrawFont(textBafore13[E_CIGARETTE][1][7], 1);
  799.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][7], 1);
  800.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][7], 0);
  801.  
  802.     textBafore13[E_CIGARETTE][1][8] = TextDrawCreate(564.352722, 276.333312, ".");
  803.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][8], 0.138352, 0.672499);
  804.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][8], 1);
  805.     TextDrawColor(textBafore13[E_CIGARETTE][1][8], -1);
  806.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][8], 0);
  807.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][8], 0);
  808.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][8], 255);
  809.     TextDrawFont(textBafore13[E_CIGARETTE][1][8], 1);
  810.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][8], 1);
  811.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][8], 0);
  812.  
  813.     textBafore13[E_CIGARETTE][1][9] = TextDrawCreate(562.470397, 302.000091, ".");
  814.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][9], 0.138352, 0.672499);
  815.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][9], 1);
  816.     TextDrawColor(textBafore13[E_CIGARETTE][1][9], -1);
  817.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][9], 0);
  818.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][9], 0);
  819.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][9], 255);
  820.     TextDrawFont(textBafore13[E_CIGARETTE][1][9], 1);
  821.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][9], 1);
  822.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][9], 0);
  823.  
  824.     textBafore13[E_CIGARETTE][1][10] = TextDrawCreate(566.705627, 286.250122, ".");
  825.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][10], 0.138352, 0.672499);
  826.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][10], 1);
  827.     TextDrawColor(textBafore13[E_CIGARETTE][1][10], -1);
  828.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][10], 0);
  829.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][10], 0);
  830.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][10], 255);
  831.     TextDrawFont(textBafore13[E_CIGARETTE][1][10], 1);
  832.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][10], 1);
  833.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][10], 0);
  834.  
  835.     textBafore13[E_CIGARETTE][1][11] = TextDrawCreate(561.058654, 282.166748, ".");
  836.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][11], 0.138352, 0.672499);
  837.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][11], 1);
  838.     TextDrawColor(textBafore13[E_CIGARETTE][1][11], -1);
  839.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][11], 0);
  840.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][11], 0);
  841.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][11], 255);
  842.     TextDrawFont(textBafore13[E_CIGARETTE][1][11], 1);
  843.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][11], 1);
  844.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][11], 0);
  845.  
  846.     textBafore13[E_CIGARETTE][1][12] = TextDrawCreate(561.058654, 292.083557, ".");
  847.     TextDrawLetterSize(textBafore13[E_CIGARETTE][1][12], 0.138352, 0.672499);
  848.     TextDrawAlignment(textBafore13[E_CIGARETTE][1][12], 1);
  849.     TextDrawColor(textBafore13[E_CIGARETTE][1][12], -1);
  850.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][12], 0);
  851.     TextDrawSetOutline(textBafore13[E_CIGARETTE][1][12], 0);
  852.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][1][12], 255);
  853.     TextDrawFont(textBafore13[E_CIGARETTE][1][12], 1);
  854.     TextDrawSetProportional(textBafore13[E_CIGARETTE][1][12], 1);
  855.     TextDrawSetShadow(textBafore13[E_CIGARETTE][1][12], 0);
  856.  
  857.     //Cigarette 2
  858.     textBafore13[E_CIGARETTE][2][0] = TextDrawCreate(573.235168, 317.933441, "LD_SPAC:white");
  859.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][0], 0.000000, 0.000000);
  860.     TextDrawTextSize(textBafore13[E_CIGARETTE][2][0], 10.000000, -39.000000);
  861.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][0], 1);
  862.     TextDrawColor(textBafore13[E_CIGARETTE][2][0], -40238593);
  863.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][0], 0);
  864.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][0], 0);
  865.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][0], 255);
  866.     TextDrawFont(textBafore13[E_CIGARETTE][2][0], 4);
  867.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][0], 0);
  868.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][0], 0);
  869.  
  870.     textBafore13[E_CIGARETTE][2][1] = TextDrawCreate(573.235168, 317.933441, "LD_SPAC:white");
  871.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][1], 0.000000, 0.000000);
  872.     TextDrawTextSize(textBafore13[E_CIGARETTE][2][1], 10.000000, -8.000000);
  873.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][1], 1);
  874.     TextDrawColor(textBafore13[E_CIGARETTE][2][1], -1);
  875.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][1], 0);
  876.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][1], 0);
  877.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][1], 255);
  878.     TextDrawFont(textBafore13[E_CIGARETTE][2][1], 4);
  879.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][1], 0);
  880.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][1], 0);
  881.  
  882.     textBafore13[E_CIGARETTE][2][2] = TextDrawCreate(573.764282, 272.433197, ",");
  883.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][2], 0.229644, 1.343332);
  884.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][2], 1);
  885.     TextDrawColor(textBafore13[E_CIGARETTE][2][2], -1);
  886.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][2], 0);
  887.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][2], 0);
  888.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][2], 255);
  889.     TextDrawFont(textBafore13[E_CIGARETTE][2][2], 1);
  890.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][2], 1);
  891.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][2], 0);
  892.  
  893.     textBafore13[E_CIGARETTE][2][3] = TextDrawCreate(578.940673, 275.933258, ",");
  894.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][3], 0.229644, 1.343332);
  895.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][3], 1);
  896.     TextDrawColor(textBafore13[E_CIGARETTE][2][3], -1);
  897.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][3], 0);
  898.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][3], 0);
  899.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][3], 255);
  900.     TextDrawFont(textBafore13[E_CIGARETTE][2][3], 1);
  901.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][3], 1);
  902.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][3], 0);
  903.  
  904.     textBafore13[E_CIGARETTE][2][4] = TextDrawCreate(581.764160, 294.600006, ",");
  905.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][4], -0.164233, 1.378332);
  906.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][4], 1);
  907.     TextDrawColor(textBafore13[E_CIGARETTE][2][4], -1);
  908.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][4], 0);
  909.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][4], 0);
  910.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][4], 255);
  911.     TextDrawFont(textBafore13[E_CIGARETTE][2][4], 1);
  912.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][4], 1);
  913.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][4], 0);
  914.  
  915.     textBafore13[E_CIGARETTE][2][5] = TextDrawCreate(577.058349, 281.766601, ",");
  916.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][5], -0.178350, 1.366665);
  917.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][5], 1);
  918.     TextDrawColor(textBafore13[E_CIGARETTE][2][5], -1);
  919.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][5], 0);
  920.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][5], 0);
  921.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][5], 255);
  922.     TextDrawFont(textBafore13[E_CIGARETTE][2][5], 1);
  923.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][5], 1);
  924.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][5], 0);
  925.  
  926.     textBafore13[E_CIGARETTE][2][6] = TextDrawCreate(578.940734, 305.683349, ",");
  927.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][6], 0.166115, -1.515002);
  928.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][6], 1);
  929.     TextDrawColor(textBafore13[E_CIGARETTE][2][6], -1);
  930.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][6], 0);
  931.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][6], 0);
  932.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][6], 255);
  933.     TextDrawFont(textBafore13[E_CIGARETTE][2][6], 1);
  934.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][6], 1);
  935.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][6], 0);
  936.  
  937.     textBafore13[E_CIGARETTE][2][7] = TextDrawCreate(576.117248, 290.516754, ",");
  938.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][7], 0.169411, 1.349166);
  939.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][7], 1);
  940.     TextDrawColor(textBafore13[E_CIGARETTE][2][7], -1);
  941.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][7], 0);
  942.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][7], 0);
  943.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][7], 255);
  944.     TextDrawFont(textBafore13[E_CIGARETTE][2][7], 1);
  945.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][7], 1);
  946.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][7], 0);
  947.  
  948.     textBafore13[E_CIGARETTE][2][8] = TextDrawCreate(578.470153, 275.933288, ".");
  949.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][8], 0.138352, 0.672499);
  950.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][8], 1);
  951.     TextDrawColor(textBafore13[E_CIGARETTE][2][8], -1);
  952.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][8], 0);
  953.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][8], 0);
  954.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][8], 255);
  955.     TextDrawFont(textBafore13[E_CIGARETTE][2][8], 1);
  956.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][8], 1);
  957.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][8], 0);
  958.  
  959.     textBafore13[E_CIGARETTE][2][9] = TextDrawCreate(576.587829, 301.600067, ".");
  960.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][9], 0.138352, 0.672499);
  961.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][9], 1);
  962.     TextDrawColor(textBafore13[E_CIGARETTE][2][9], -1);
  963.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][9], 0);
  964.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][9], 0);
  965.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][9], 255);
  966.     TextDrawFont(textBafore13[E_CIGARETTE][2][9], 1);
  967.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][9], 1);
  968.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][9], 0);
  969.  
  970.     textBafore13[E_CIGARETTE][2][10] = TextDrawCreate(580.823059, 285.850097, ".");
  971.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][10], 0.138352, 0.672499);
  972.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][10], 1);
  973.     TextDrawColor(textBafore13[E_CIGARETTE][2][10], -1);
  974.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][10], 0);
  975.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][10], 0);
  976.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][10], 255);
  977.     TextDrawFont(textBafore13[E_CIGARETTE][2][10], 1);
  978.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][10], 1);
  979.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][10], 0);
  980.  
  981.     textBafore13[E_CIGARETTE][2][11] = TextDrawCreate(575.176086, 281.766723, ".");
  982.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][11], 0.138352, 0.672499);
  983.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][11], 1);
  984.     TextDrawColor(textBafore13[E_CIGARETTE][2][11], -1);
  985.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][11], 0);
  986.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][11], 0);
  987.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][11], 255);
  988.     TextDrawFont(textBafore13[E_CIGARETTE][2][11], 1);
  989.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][11], 1);
  990.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][11], 0);
  991.  
  992.     textBafore13[E_CIGARETTE][2][12] = TextDrawCreate(575.176086, 291.683532, ".");
  993.     TextDrawLetterSize(textBafore13[E_CIGARETTE][2][12], 0.138352, 0.672499);
  994.     TextDrawAlignment(textBafore13[E_CIGARETTE][2][12], 1);
  995.     TextDrawColor(textBafore13[E_CIGARETTE][2][12], -1);
  996.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][12], 0);
  997.     TextDrawSetOutline(textBafore13[E_CIGARETTE][2][12], 0);
  998.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][2][12], 255);
  999.     TextDrawFont(textBafore13[E_CIGARETTE][2][12], 1);
  1000.     TextDrawSetProportional(textBafore13[E_CIGARETTE][2][12], 1);
  1001.     TextDrawSetShadow(textBafore13[E_CIGARETTE][2][12], 0);
  1002.  
  1003.     //Cigarette 3
  1004.     textBafore13[E_CIGARETTE][3][0] = TextDrawCreate(587.352600, 317.933441, "LD_SPAC:white");
  1005.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][0], 0.000000, 0.000000);
  1006.     TextDrawTextSize(textBafore13[E_CIGARETTE][3][0], 10.000000, -39.000000);
  1007.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][0], 1);
  1008.     TextDrawColor(textBafore13[E_CIGARETTE][3][0], -40238593);
  1009.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][0], 0);
  1010.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][0], 0);
  1011.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][0], 255);
  1012.     TextDrawFont(textBafore13[E_CIGARETTE][3][0], 4);
  1013.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][0], 0);
  1014.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][0], 0);
  1015.  
  1016.     textBafore13[E_CIGARETTE][3][1] = TextDrawCreate(587.352600, 317.933441, "LD_SPAC:white");
  1017.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][1], 0.000000, 0.000000);
  1018.     TextDrawTextSize(textBafore13[E_CIGARETTE][3][1], 10.000000, -8.000000);
  1019.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][1], 1);
  1020.     TextDrawColor(textBafore13[E_CIGARETTE][3][1], -1);
  1021.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][1], 0);
  1022.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][1], 0);
  1023.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][1], 255);
  1024.     TextDrawFont(textBafore13[E_CIGARETTE][3][1], 4);
  1025.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][1], 0);
  1026.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][1], 0);
  1027.  
  1028.     textBafore13[E_CIGARETTE][3][2] = TextDrawCreate(587.881713, 272.433197, ",");
  1029.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][2], 0.229644, 1.343332);
  1030.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][2], 1);
  1031.     TextDrawColor(textBafore13[E_CIGARETTE][3][2], -1);
  1032.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][2], 0);
  1033.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][2], 0);
  1034.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][2], 255);
  1035.     TextDrawFont(textBafore13[E_CIGARETTE][3][2], 1);
  1036.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][2], 1);
  1037.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][2], 0);
  1038.  
  1039.     textBafore13[E_CIGARETTE][3][3] = TextDrawCreate(593.058105, 275.933258, ",");
  1040.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][3], 0.229644, 1.343332);
  1041.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][3], 1);
  1042.     TextDrawColor(textBafore13[E_CIGARETTE][3][3], -1);
  1043.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][3], 0);
  1044.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][3], 0);
  1045.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][3], 255);
  1046.     TextDrawFont(textBafore13[E_CIGARETTE][3][3], 1);
  1047.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][3], 1);
  1048.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][3], 0);
  1049.  
  1050.     textBafore13[E_CIGARETTE][3][4] = TextDrawCreate(595.881591, 294.600006, ",");
  1051.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][4], -0.164233, 1.378332);
  1052.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][4], 1);
  1053.     TextDrawColor(textBafore13[E_CIGARETTE][3][4], -1);
  1054.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][4], 0);
  1055.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][4], 0);
  1056.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][4], 255);
  1057.     TextDrawFont(textBafore13[E_CIGARETTE][3][4], 1);
  1058.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][4], 1);
  1059.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][4], 0);
  1060.  
  1061.     textBafore13[E_CIGARETTE][3][5] = TextDrawCreate(591.175781, 281.766601, ",");
  1062.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][5], -0.178350, 1.366665);
  1063.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][5], 1);
  1064.     TextDrawColor(textBafore13[E_CIGARETTE][3][5], -1);
  1065.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][5], 0);
  1066.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][5], 0);
  1067.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][5], 255);
  1068.     TextDrawFont(textBafore13[E_CIGARETTE][3][5], 1);
  1069.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][5], 1);
  1070.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][5], 0);
  1071.  
  1072.     textBafore13[E_CIGARETTE][3][6] = TextDrawCreate(593.058166, 305.683349, ",");
  1073.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][6], 0.166115, -1.515002);
  1074.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][6], 1);
  1075.     TextDrawColor(textBafore13[E_CIGARETTE][3][6], -1);
  1076.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][6], 0);
  1077.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][6], 0);
  1078.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][6], 255);
  1079.     TextDrawFont(textBafore13[E_CIGARETTE][3][6], 1);
  1080.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][6], 1);
  1081.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][6], 0);
  1082.  
  1083.     textBafore13[E_CIGARETTE][3][7] = TextDrawCreate(590.234680, 290.516754, ",");
  1084.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][7], 0.169411, 1.349166);
  1085.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][7], 1);
  1086.     TextDrawColor(textBafore13[E_CIGARETTE][3][7], -1);
  1087.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][7], 0);
  1088.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][7], 0);
  1089.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][7], 255);
  1090.     TextDrawFont(textBafore13[E_CIGARETTE][3][7], 1);
  1091.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][7], 1);
  1092.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][7], 0);
  1093.  
  1094.     textBafore13[E_CIGARETTE][3][8] = TextDrawCreate(592.587585, 275.933288, ".");
  1095.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][8], 0.138352, 0.672499);
  1096.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][8], 1);
  1097.     TextDrawColor(textBafore13[E_CIGARETTE][3][8], -1);
  1098.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][8], 0);
  1099.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][8], 0);
  1100.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][8], 255);
  1101.     TextDrawFont(textBafore13[E_CIGARETTE][3][8], 1);
  1102.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][8], 1);
  1103.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][8], 0);
  1104.  
  1105.     textBafore13[E_CIGARETTE][3][9] = TextDrawCreate(590.705261, 301.600067, ".");
  1106.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][9], 0.138352, 0.672499);
  1107.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][9], 1);
  1108.     TextDrawColor(textBafore13[E_CIGARETTE][3][9], -1);
  1109.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][9], 0);
  1110.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][9], 0);
  1111.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][9], 255);
  1112.     TextDrawFont(textBafore13[E_CIGARETTE][3][9], 1);
  1113.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][9], 1);
  1114.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][9], 0);
  1115.  
  1116.     textBafore13[E_CIGARETTE][3][10] = TextDrawCreate(594.940490, 285.850097, ".");
  1117.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][10], 0.138352, 0.672499);
  1118.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][10], 1);
  1119.     TextDrawColor(textBafore13[E_CIGARETTE][3][10], -1);
  1120.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][10], 0);
  1121.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][10], 0);
  1122.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][10], 255);
  1123.     TextDrawFont(textBafore13[E_CIGARETTE][3][10], 1);
  1124.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][10], 1);
  1125.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][10], 0);
  1126.  
  1127.     textBafore13[E_CIGARETTE][3][11] = TextDrawCreate(589.293518, 281.766723, ".");
  1128.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][11], 0.138352, 0.672499);
  1129.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][11], 1);
  1130.     TextDrawColor(textBafore13[E_CIGARETTE][3][11], -1);
  1131.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][11], 0);
  1132.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][11], 0);
  1133.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][11], 255);
  1134.     TextDrawFont(textBafore13[E_CIGARETTE][3][11], 1);
  1135.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][11], 1);
  1136.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][11], 0);
  1137.  
  1138.     textBafore13[E_CIGARETTE][3][12] = TextDrawCreate(589.293518, 291.683532, ".");
  1139.     TextDrawLetterSize(textBafore13[E_CIGARETTE][3][12], 0.138352, 0.672499);
  1140.     TextDrawAlignment(textBafore13[E_CIGARETTE][3][12], 1);
  1141.     TextDrawColor(textBafore13[E_CIGARETTE][3][12], -1);
  1142.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][12], 0);
  1143.     TextDrawSetOutline(textBafore13[E_CIGARETTE][3][12], 0);
  1144.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][3][12], 255);
  1145.     TextDrawFont(textBafore13[E_CIGARETTE][3][12], 1);
  1146.     TextDrawSetProportional(textBafore13[E_CIGARETTE][3][12], 1);
  1147.     TextDrawSetShadow(textBafore13[E_CIGARETTE][3][12], 0);
  1148.  
  1149.     //Cigarette 4
  1150.     textBafore13[E_CIGARETTE][4][0] = TextDrawCreate(600.998779, 317.933227, "LD_SPAC:white");
  1151.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][0], 0.000000, 0.000000);
  1152.     TextDrawTextSize(textBafore13[E_CIGARETTE][4][0], 10.000000, -39.000000);
  1153.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][0], 1);
  1154.     TextDrawColor(textBafore13[E_CIGARETTE][4][0], -40238593);
  1155.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][0], 0);
  1156.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][0], 0);
  1157.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][0], 255);
  1158.     TextDrawFont(textBafore13[E_CIGARETTE][4][0], 4);
  1159.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][0], 0);
  1160.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][0], 0);
  1161.  
  1162.     textBafore13[E_CIGARETTE][4][1] = TextDrawCreate(600.998779, 317.933227, "LD_SPAC:white");
  1163.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][1], 0.000000, 0.000000);
  1164.     TextDrawTextSize(textBafore13[E_CIGARETTE][4][1], 10.000000, -8.000000);
  1165.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][1], 1);
  1166.     TextDrawColor(textBafore13[E_CIGARETTE][4][1], -1);
  1167.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][1], 0);
  1168.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][1], 0);
  1169.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][1], 255);
  1170.     TextDrawFont(textBafore13[E_CIGARETTE][4][1], 4);
  1171.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][1], 0);
  1172.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][1], 0);
  1173.  
  1174.     textBafore13[E_CIGARETTE][4][2] = TextDrawCreate(601.527893, 272.432983, ",");
  1175.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][2], 0.229644, 1.343332);
  1176.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][2], 1);
  1177.     TextDrawColor(textBafore13[E_CIGARETTE][4][2], -1);
  1178.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][2], 0);
  1179.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][2], 0);
  1180.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][2], 255);
  1181.     TextDrawFont(textBafore13[E_CIGARETTE][4][2], 1);
  1182.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][2], 1);
  1183.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][2], 0);
  1184.  
  1185.     textBafore13[E_CIGARETTE][4][3] = TextDrawCreate(606.704223, 275.933044, ",");
  1186.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][3], 0.229644, 1.343332);
  1187.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][3], 1);
  1188.     TextDrawColor(textBafore13[E_CIGARETTE][4][3], -1);
  1189.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][3], 0);
  1190.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][3], 0);
  1191.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][3], 255);
  1192.     TextDrawFont(textBafore13[E_CIGARETTE][4][3], 1);
  1193.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][3], 1);
  1194.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][3], 0);
  1195.  
  1196.     textBafore13[E_CIGARETTE][4][4] = TextDrawCreate(609.527709, 294.599792, ",");
  1197.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][4], -0.164233, 1.378332);
  1198.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][4], 1);
  1199.     TextDrawColor(textBafore13[E_CIGARETTE][4][4], -1);
  1200.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][4], 0);
  1201.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][4], 0);
  1202.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][4], 255);
  1203.     TextDrawFont(textBafore13[E_CIGARETTE][4][4], 1);
  1204.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][4], 1);
  1205.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][4], 0);
  1206.  
  1207.     textBafore13[E_CIGARETTE][4][5] = TextDrawCreate(604.821899, 281.766387, ",");
  1208.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][5], -0.178350, 1.366665);
  1209.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][5], 1);
  1210.     TextDrawColor(textBafore13[E_CIGARETTE][4][5], -1);
  1211.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][5], 0);
  1212.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][5], 0);
  1213.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][5], 255);
  1214.     TextDrawFont(textBafore13[E_CIGARETTE][4][5], 1);
  1215.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][5], 1);
  1216.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][5], 0);
  1217.  
  1218.     textBafore13[E_CIGARETTE][4][6] = TextDrawCreate(606.704284, 305.683135, ",");
  1219.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][6], 0.166115, -1.515002);
  1220.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][6], 1);
  1221.     TextDrawColor(textBafore13[E_CIGARETTE][4][6], -1);
  1222.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][6], 0);
  1223.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][6], 0);
  1224.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][6], 255);
  1225.     TextDrawFont(textBafore13[E_CIGARETTE][4][6], 1);
  1226.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][6], 1);
  1227.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][6], 0);
  1228.  
  1229.     textBafore13[E_CIGARETTE][4][7] = TextDrawCreate(603.880859, 290.516540, ",");
  1230.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][7], 0.169411, 1.349166);
  1231.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][7], 1);
  1232.     TextDrawColor(textBafore13[E_CIGARETTE][4][7], -1);
  1233.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][7], 0);
  1234.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][7], 0);
  1235.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][7], 255);
  1236.     TextDrawFont(textBafore13[E_CIGARETTE][4][7], 1);
  1237.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][7], 1);
  1238.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][7], 0);
  1239.  
  1240.     textBafore13[E_CIGARETTE][4][8] = TextDrawCreate(606.233703, 275.933074, ".");
  1241.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][8], 0.138352, 0.672499);
  1242.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][8], 1);
  1243.     TextDrawColor(textBafore13[E_CIGARETTE][4][8], -1);
  1244.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][8], 0);
  1245.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][8], 0);
  1246.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][8], 255);
  1247.     TextDrawFont(textBafore13[E_CIGARETTE][4][8], 1);
  1248.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][8], 1);
  1249.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][8], 0);
  1250.  
  1251.     textBafore13[E_CIGARETTE][4][9] = TextDrawCreate(604.351379, 301.599853, ".");
  1252.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][9], 0.138352, 0.672499);
  1253.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][9], 1);
  1254.     TextDrawColor(textBafore13[E_CIGARETTE][4][9], -1);
  1255.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][9], 0);
  1256.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][9], 0);
  1257.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][9], 255);
  1258.     TextDrawFont(textBafore13[E_CIGARETTE][4][9], 1);
  1259.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][9], 1);
  1260.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][9], 0);
  1261.  
  1262.     textBafore13[E_CIGARETTE][4][10] = TextDrawCreate(608.586608, 285.849884, ".");
  1263.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][10], 0.138352, 0.672499);
  1264.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][10], 1);
  1265.     TextDrawColor(textBafore13[E_CIGARETTE][4][10], -1);
  1266.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][10], 0);
  1267.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][10], 0);
  1268.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][10], 255);
  1269.     TextDrawFont(textBafore13[E_CIGARETTE][4][10], 1);
  1270.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][10], 1);
  1271.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][10], 0);
  1272.  
  1273.     textBafore13[E_CIGARETTE][4][11] = TextDrawCreate(602.939697, 281.766510, ".");
  1274.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][11], 0.138352, 0.672499);
  1275.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][11], 1);
  1276.     TextDrawColor(textBafore13[E_CIGARETTE][4][11], -1);
  1277.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][11], 0);
  1278.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][11], 0);
  1279.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][11], 255);
  1280.     TextDrawFont(textBafore13[E_CIGARETTE][4][11], 1);
  1281.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][11], 1);
  1282.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][11], 0);
  1283.  
  1284.     textBafore13[E_CIGARETTE][4][12] = TextDrawCreate(602.939697, 291.683319, ".");
  1285.     TextDrawLetterSize(textBafore13[E_CIGARETTE][4][12], 0.138352, 0.672499);
  1286.     TextDrawAlignment(textBafore13[E_CIGARETTE][4][12], 1);
  1287.     TextDrawColor(textBafore13[E_CIGARETTE][4][12], -1);
  1288.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][12], 0);
  1289.     TextDrawSetOutline(textBafore13[E_CIGARETTE][4][12], 0);
  1290.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE][4][12], 255);
  1291.     TextDrawFont(textBafore13[E_CIGARETTE][4][12], 1);
  1292.     TextDrawSetProportional(textBafore13[E_CIGARETTE][4][12], 1);
  1293.     TextDrawSetShadow(textBafore13[E_CIGARETTE][4][12], 0);
  1294.     //-------------------------------------------------------------------------------------------
  1295.     textBafore13[E_CIGARETTE_CLICK][0] = TextDrawCreate(545.000366, 279.250244, "LD_SPAC:white");
  1296.     TextDrawLetterSize(textBafore13[E_CIGARETTE_CLICK][0], 0.000000, 0.000000);
  1297.     TextDrawTextSize(textBafore13[E_CIGARETTE_CLICK][0], 10.000000, 39.000000);
  1298.     TextDrawAlignment(textBafore13[E_CIGARETTE_CLICK][0], 1);
  1299.     TextDrawColor(textBafore13[E_CIGARETTE_CLICK][0], 0);
  1300.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][0], 0);
  1301.     TextDrawSetOutline(textBafore13[E_CIGARETTE_CLICK][0], 0);
  1302.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE_CLICK][0], 255);
  1303.     TextDrawFont(textBafore13[E_CIGARETTE_CLICK][0], 4);
  1304.     TextDrawSetProportional(textBafore13[E_CIGARETTE_CLICK][0], 0);
  1305.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][0], 0);
  1306.     TextDrawSetSelectable(textBafore13[E_CIGARETTE_CLICK][0], true);
  1307.  
  1308.     textBafore13[E_CIGARETTE_CLICK][1] = TextDrawCreate(559.117797, 279.250244, "LD_SPAC:white");
  1309.     TextDrawLetterSize(textBafore13[E_CIGARETTE_CLICK][1], 0.000000, 0.000000);
  1310.     TextDrawTextSize(textBafore13[E_CIGARETTE_CLICK][1], 10.000000, 39.000000);
  1311.     TextDrawAlignment(textBafore13[E_CIGARETTE_CLICK][1], 1);
  1312.     TextDrawColor(textBafore13[E_CIGARETTE_CLICK][1], 0);
  1313.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][1], 0);
  1314.     TextDrawSetOutline(textBafore13[E_CIGARETTE_CLICK][1], 0);
  1315.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE_CLICK][1], 255);
  1316.     TextDrawFont(textBafore13[E_CIGARETTE_CLICK][1], 4);
  1317.     TextDrawSetProportional(textBafore13[E_CIGARETTE_CLICK][1], 0);
  1318.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][1], 0);
  1319.     TextDrawSetSelectable(textBafore13[E_CIGARETTE_CLICK][1], true);
  1320.  
  1321.     textBafore13[E_CIGARETTE_CLICK][2] = TextDrawCreate(573.235290, 279.250244, "LD_SPAC:white");
  1322.     TextDrawLetterSize(textBafore13[E_CIGARETTE_CLICK][2], 0.000000, 0.000000);
  1323.     TextDrawTextSize(textBafore13[E_CIGARETTE_CLICK][2], 10.000000, 39.000000);
  1324.     TextDrawAlignment(textBafore13[E_CIGARETTE_CLICK][2], 1);
  1325.     TextDrawColor(textBafore13[E_CIGARETTE_CLICK][2], 0);
  1326.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][2], 0);
  1327.     TextDrawSetOutline(textBafore13[E_CIGARETTE_CLICK][2], 0);
  1328.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE_CLICK][2], 255);
  1329.     TextDrawFont(textBafore13[E_CIGARETTE_CLICK][2], 4);
  1330.     TextDrawSetProportional(textBafore13[E_CIGARETTE_CLICK][2], 0);
  1331.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][2], 0);
  1332.     TextDrawSetSelectable(textBafore13[E_CIGARETTE_CLICK][2], true);
  1333.  
  1334.     textBafore13[E_CIGARETTE_CLICK][3] = TextDrawCreate(587.352722, 279.250244, "LD_SPAC:white");
  1335.     TextDrawLetterSize(textBafore13[E_CIGARETTE_CLICK][3], 0.000000, 0.000000);
  1336.     TextDrawTextSize(textBafore13[E_CIGARETTE_CLICK][3], 10.000000, 39.000000);
  1337.     TextDrawAlignment(textBafore13[E_CIGARETTE_CLICK][3], 1);
  1338.     TextDrawColor(textBafore13[E_CIGARETTE_CLICK][3], 0);
  1339.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][3], 0);
  1340.     TextDrawSetOutline(textBafore13[E_CIGARETTE_CLICK][3], 0);
  1341.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE_CLICK][3], 255);
  1342.     TextDrawFont(textBafore13[E_CIGARETTE_CLICK][3], 4);
  1343.     TextDrawSetProportional(textBafore13[E_CIGARETTE_CLICK][3], 0);
  1344.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][3], 0);
  1345.     TextDrawSetSelectable(textBafore13[E_CIGARETTE_CLICK][3], true);
  1346.  
  1347.     textBafore13[E_CIGARETTE_CLICK][4] = TextDrawCreate(600.999572, 279.250244, "LD_SPAC:white");
  1348.     TextDrawLetterSize(textBafore13[E_CIGARETTE_CLICK][4], 0.000000, 0.000000);
  1349.     TextDrawTextSize(textBafore13[E_CIGARETTE_CLICK][4], 10.000000, 39.000000);
  1350.     TextDrawAlignment(textBafore13[E_CIGARETTE_CLICK][4], 1);
  1351.     TextDrawColor(textBafore13[E_CIGARETTE_CLICK][4], 0);
  1352.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][4], 0);
  1353.     TextDrawSetOutline(textBafore13[E_CIGARETTE_CLICK][4], 0);
  1354.     TextDrawBackgroundColor(textBafore13[E_CIGARETTE_CLICK][4], 255);
  1355.     TextDrawFont(textBafore13[E_CIGARETTE_CLICK][4], 4);
  1356.     TextDrawSetProportional(textBafore13[E_CIGARETTE_CLICK][4], 0);
  1357.     TextDrawSetShadow(textBafore13[E_CIGARETTE_CLICK][4], 0);
  1358.     TextDrawSetSelectable(textBafore13[E_CIGARETTE_CLICK][4], true);
  1359. }
  1360. //-----------------------------
  1361. /// <summary>
  1362. /// Reseta a variável de controle dos cigarros de um jogador
  1363. /// específico.
  1364. /// </summary>
  1365. /// <param name="playerid">ID do jogador.</param>
  1366. /// <returns>Não retorna valores.</returns>
  1367. ResetPlayerCigarretes(playerid)
  1368. {
  1369.     for(new i; i < sizeof(cigarettePlayer); i++)
  1370.     {
  1371.         cigarettePlayer[playerid][E_CIGARETTE_PLAYER:i] = 0;
  1372.     }
  1373. }
  1374. /// <summary>
  1375. /// Carrega os cigarros de um jogador específico.
  1376. /// </summary>
  1377. /// <param name="playerid">ID do jogador.</param>
  1378. /// <returns>Não retorna valores.</returns>
  1379. LoadPlayerCigarettes(playerid)
  1380. {
  1381.     new file[38];
  1382.  
  1383.     format(file, sizeof(file), "Bafore13/%s.ini", GetNameOfPlayer(playerid));
  1384.  
  1385.     if(!DOF2_FileExists(file))
  1386.     {
  1387.         DOF2_CreateFile(file);
  1388.         DOF2_SetBool(file, "cigarette0", false);
  1389.         DOF2_SetBool(file, "cigarette1", false);
  1390.         DOF2_SetBool(file, "cigarette2", false);
  1391.         DOF2_SetBool(file, "cigarette3", false);
  1392.         DOF2_SetBool(file, "cigarette4", false);
  1393.     }
  1394.     else
  1395.     {
  1396.         cigarettePlayer[playerid][E_HAVE_CIGARETTE][0] = DOF2_GetBool(file, "cigarette0");
  1397.         cigarettePlayer[playerid][E_HAVE_CIGARETTE][1] = DOF2_GetBool(file, "cigarette1");
  1398.         cigarettePlayer[playerid][E_HAVE_CIGARETTE][2] = DOF2_GetBool(file, "cigarette2");
  1399.         cigarettePlayer[playerid][E_HAVE_CIGARETTE][3] = DOF2_GetBool(file, "cigarette3");
  1400.         cigarettePlayer[playerid][E_HAVE_CIGARETTE][4] = DOF2_GetBool(file, "cigarette4");
  1401.     }  
  1402.     DOF2_SaveFile();
  1403. }
  1404. /// <summary>
  1405. /// Salva os cigarros de um jogador específico.
  1406. /// </summary>
  1407. /// <param name="playerid">ID do jogador.</param>
  1408. /// <returns>Não retorna valores.</returns>
  1409. SavePlayerCigarettes(playerid)
  1410. {
  1411.     new file[38];
  1412.  
  1413.     format(file, sizeof(file), "Bafore13/%s.ini", GetNameOfPlayer(playerid));
  1414.  
  1415.     if(DOF2_FileExists(file))
  1416.     {
  1417.         DOF2_SetBool(file, "cigarette0", cigarettePlayer[playerid][E_HAVE_CIGARETTE][0]);
  1418.         DOF2_SetBool(file, "cigarette1", cigarettePlayer[playerid][E_HAVE_CIGARETTE][1]);
  1419.         DOF2_SetBool(file, "cigarette2", cigarettePlayer[playerid][E_HAVE_CIGARETTE][2]);
  1420.         DOF2_SetBool(file, "cigarette3", cigarettePlayer[playerid][E_HAVE_CIGARETTE][3]);
  1421.         DOF2_SetBool(file, "cigarette4", cigarettePlayer[playerid][E_HAVE_CIGARETTE][4]);
  1422.         DOF2_SaveFile();
  1423.     }
  1424. }
  1425. //-----------------------------------
  1426. /// <summary>
  1427. /// Da uma quantidade específica de cigarros a um jogador específico.
  1428. /// </summary>
  1429. /// <param name="playerid">ID do jogador.</param>
  1430. /// <param name="amount">Quantidade de cigarros.</param>
  1431. /// <returns>True se bem sucedido, False se já atingiu o máximo de cigarros possíveis.</returns>
  1432. GivePlayerCigarette(playerid, amount)
  1433. {
  1434.     if(!(0 < amount <= 5)) return false;
  1435.  
  1436.     new count, i;
  1437.  
  1438.     for(i = 0; i < 5; i++)
  1439.     {
  1440.         if(!cigarettePlayer[playerid][E_HAVE_CIGARETTE][i])
  1441.         {
  1442.             cigarettePlayer[playerid][E_HAVE_CIGARETTE][i] = true;
  1443.  
  1444.             count++;
  1445.  
  1446.             if(count == amount) break;
  1447.         }
  1448.     }
  1449.  
  1450.     return bool:count;
  1451. }
  1452. //----------------------------------
  1453. /// <summary>
  1454. /// Mostra a caixa de cigarros a um jogador específico.
  1455. /// </summary>
  1456. /// <param name="playerid">ID do jogador.</param>
  1457. /// <returns>True se bem sucedido, False se já foi mostrada.</returns>
  1458. ShowPlayerCigarettePackage(playerid)
  1459. {
  1460.     if(cigarettePlayer[playerid][E_PACKAGE_OPENED]) return false;
  1461.  
  1462.     new i;
  1463.  
  1464.     for(i = 0; i < 16; i++)
  1465.     {
  1466.         if(3 <= i <= 8) continue;
  1467.  
  1468.         TextDrawShowForPlayer(playerid, textBafore13[E_BOX][i]);
  1469.     }
  1470.  
  1471.     for(i = 0; i < 4; i++) TextDrawShowForPlayer(playerid, textBafore13[E_LID_BOX][i]);
  1472.  
  1473.     TextDrawShowForPlayer(playerid, textBafore13[E_LID_BOX_CLICK]);
  1474.  
  1475.     cigarettePlayer[playerid][E_PACKAGE_OPENED] = true;
  1476.  
  1477.     SelectTextDraw(playerid, 0x00000040);
  1478.  
  1479.     return true;
  1480. }
  1481. /// <summary>
  1482. /// Esconde a caixa de cigarros de um jogador específico.
  1483. /// </summary>
  1484. /// <param name="playerid">ID do jogador.</param>
  1485. /// <returns>True se bem sucedido, False se já foi escondida.</returns>
  1486. HidePlayerCigarettePackage(playerid)
  1487. {
  1488.     if(!cigarettePlayer[playerid][E_PACKAGE_OPENED]) return false;
  1489.  
  1490.     new i, j;
  1491.  
  1492.     CancelSelectTextDraw(playerid);
  1493.  
  1494.     for(i = 0; i < 16; i++)
  1495.     {
  1496.         TextDrawHideForPlayer(playerid, textBafore13[E_BOX][i]);
  1497.  
  1498.         if(i < 4) TextDrawHideForPlayer(playerid, textBafore13[E_LID_BOX][i]);
  1499.     }
  1500.  
  1501.     TextDrawHideForPlayer(playerid, textBafore13[E_LID_BOX_CLICK]);
  1502.  
  1503.     for(i = 0; i < 5; i++)
  1504.     {
  1505.         for(j = 0; j < 13; j++) TextDrawHideForPlayer(playerid, textBafore13[E_CIGARETTE][i][j]);
  1506.  
  1507.         TextDrawHideForPlayer(playerid, textBafore13[E_CIGARETTE_CLICK][i]);
  1508.     }
  1509.  
  1510.     cigarettePlayer[playerid][E_PACKAGE_OPENED] = false;
  1511.  
  1512.     return true;
  1513. }
  1514. //-----------------------------------
  1515. /// <summary>
  1516. /// Acende um cigarro específico de um jogador específico.
  1517. /// </summary>
  1518. /// <param name="playerid">ID do jogador.</param>
  1519. /// <param name="cigaretteid">ID do cigarro.</param>
  1520. /// <returns>True se bem sucedido, False se não possuir o cigarro.</returns>
  1521. SmokeCigarette(playerid, cigaretteid)
  1522. {
  1523.     if(!cigarettePlayer[playerid][E_HAVE_CIGARETTE][cigaretteid]) return false;
  1524.  
  1525.     cigarettePlayer[playerid][E_HAVE_CIGARETTE][cigaretteid] = false;
  1526.  
  1527.     cigarettePlayer[playerid][E_SMOKING_CIGARETTE] = true;
  1528.  
  1529.     cigarettePlayer[playerid][E_COUNT_PUFF_CIGARETTE] = CIGARETTE_PUFF;
  1530.  
  1531.     cigarettePlayer[playerid][E_TIMER_DURATION] = SetTimerEx("BurningCigarette", 60000, false, "i", playerid);
  1532.  
  1533.     SetPlayerSpecialAction(playerid, SPECIAL_ACTION_SMOKE_CIGGY);
  1534.    
  1535.     return true;
  1536. }
  1537. //--------------------------
  1538. /// <summary>
  1539. /// Mostra a um jogador específico os cigarros que o mesmo possuir.
  1540. /// </summary>
  1541. /// <param name="playerid">ID do jogador.</param>
  1542. /// <returns>True se bem sucedido, False se a carteira de cigarros não foi mostrada.</returns>
  1543. UpdateTDCigarettes(playerid)
  1544. {
  1545.     if(!cigarettePlayer[playerid][E_PACKAGE_OPENED]) return false;
  1546.  
  1547.     for(new i, j; i < 5; i++)
  1548.     {
  1549.         if(cigarettePlayer[playerid][E_HAVE_CIGARETTE][i])
  1550.         {
  1551.             for(j = 0; j < 13; j++) TextDrawShowForPlayer(playerid, textBafore13[E_CIGARETTE][i][j]);
  1552.  
  1553.             TextDrawShowForPlayer(playerid, textBafore13[E_CIGARETTE_CLICK][i]);
  1554.         }
  1555.     }
  1556.  
  1557.     return true;
  1558. }
  1559. /// <summary>
  1560. /// Abre a caixa de cigarros de um jogador específico.
  1561. /// </summary>
  1562. /// <param name="playerid">ID do jogador.</param>
  1563. /// <returns>Não retorna valores.</returns>
  1564. OpenCigaretteBox(playerid)
  1565. {
  1566.     new i;
  1567.  
  1568.     for(i = 0; i < 4; i++) TextDrawHideForPlayer(playerid, textBafore13[E_LID_BOX][i]);
  1569.  
  1570.     TextDrawHideForPlayer(playerid, textBafore13[E_LID_BOX_CLICK]);
  1571.  
  1572.     for(i = 3; i <= 8; i++)
  1573.     {
  1574.         TextDrawShowForPlayer(playerid, textBafore13[E_BOX][i]);
  1575.     }
  1576.    
  1577.     UpdateTDCigarettes(playerid);
  1578.  
  1579.     SelectTextDraw(playerid, 0x00000040);
  1580. }
  1581. /*
  1582.  *****************************************************************************
  1583. */
  1584. /*
  1585.  |COMPLEMENTS|
  1586. */
  1587. /// <author>
  1588. /// Bruno13
  1589. /// </author>
  1590. /// <summary>
  1591. /// Obtem e retorna o nome de um jogador específico.
  1592. /// </summary>
  1593. /// <param name="playerid">ID do jogador.</param>
  1594. /// <returns>Nome do jogador.</returns>
  1595. GetNameOfPlayer(playerid)
  1596. {
  1597.     new name[MAX_PLAYER_NAME];
  1598.     return GetPlayerName(playerid, name, sizeof(name)), name;
  1599. }
  1600. /*
  1601.  *****************************************************************************
  1602. */
  1603. /*
  1604.  |COMMANDS|
  1605. */
  1606. /// <summary>
  1607. /// Comando para pegar/guardar a caixa de cigarros.
  1608. /// </summary>
  1609. /// <param name="playerid">ID do jogador.</param>
  1610. /// <returns>Não retorna valores específicos.</returns>
  1611. CMD:fumar(playerid)
  1612. {
  1613.     if(cigarettePlayer[playerid][E_SMOKING_CIGARETTE]) return SendClientMessage(playerid, COLOR_RED, "<!> {FFFFFF}Você já acendeu um cigarro.");
  1614.    
  1615.     if(CIGARETTE_ACCESS_IF_HAVE)
  1616.     {
  1617.         for(new i; i < 5; i++)
  1618.         {
  1619.             if(cigarettePlayer[playerid][E_HAVE_CIGARETTE][i]) break;
  1620.  
  1621.             if(i == 4) return SendClientMessage(playerid, COLOR_RED, "<!> {FFFFFF}Você não possui cigarros.");
  1622.         }
  1623.     }
  1624.    
  1625.     if(cigarettePlayer[playerid][E_PACKAGE_OPENED])
  1626.         HidePlayerCigarettePackage(playerid);
  1627.     else
  1628.         ShowPlayerCigarettePackage(playerid);
  1629.  
  1630.     return 1;
  1631. }
  1632. /// <summary>
  1633. /// Comando para dar uma quantia de cigarros específica a um
  1634. /// jogador específico.
  1635. /// </summary>
  1636. /// <param name="playerid">ID do jogador.</param>
  1637. /// <param name="params">Parâmetros a serem utilizados: <id do jogador> <quantia>.</param>
  1638. /// <returns>Não retorna valores específicos.</returns>
  1639. CMD:darcigarro(playerid, params[])
  1640. {
  1641.     new id, amount;
  1642.    
  1643.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "<!> {FFFFFF}Você não tem autorização para utilizar esse comando!");
  1644.    
  1645.     if(sscanf(params,"ud", id, amount)) return SendClientMessage(playerid, -1, "Use: /darcigarro <id> <quantia>");
  1646.    
  1647.     if(!(0 < amount <= 5)) return SendClientMessage(playerid, COLOR_RED, "<!> {FFFFFF}O número de cigarros deve estar em 1 e 5!");
  1648.    
  1649.     if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED, "<!> {FFFFFF}Este jogador não está conectado!");
  1650.    
  1651.     SendClientMessageEx(playerid, COLOR_GREEN, "<!> {FFFFFF}Você deu %d cigarros para %s.", amount, GetNameOfPlayer(id));
  1652.     if(playerid != id) SendClientMessageEx(id, COLOR_GREEN, "<!> {FFFFFF}Você recebeu %d cigarros de %s.", amount, GetNameOfPlayer(playerid));
  1653.    
  1654.     GivePlayerCigarette(id, amount);
  1655.  
  1656.     UpdateTDCigarettes(id);
  1657.  
  1658.     return 1;
  1659. }
  1660. /// <summary>
  1661. /// Comando para obter uma caixa de cigarros completa.
  1662. /// Somente para jogadores logados na RCON.
  1663. /// </summary>
  1664. /// <param name="playerid">ID do jogador.</param>
  1665. /// <returns>Não retorna valores específicos.</returns>
  1666. CMD:getcigar(playerid)
  1667. {
  1668.     if(IsPlayerAdmin(playerid)) GivePlayerCigarette(playerid, CIGARETTE_PACKAGE_FULL);
  1669.  
  1670.     return 1;
  1671.  
  1672. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement