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