Advertisement
RiichardAmp

[FilterScript] rCronometro Pessoal

Nov 11th, 2012
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 57.82 KB | None | 0 0
  1. /*
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3.               - rCronometro Pessoal -
  4.                   By: @Riichard
  5.                  
  6.               - Não retire os créditos -
  7.             www.project-pawn.blogspot.com
  8. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9. */
  10.  
  11. // ====== [Includes] ======//
  12. #include <a_samp>
  13. #include <zcmd>
  14.  
  15.  
  16. // ====== [Variaveis] ======//
  17. new
  18.     Text:Borda1[MAX_PLAYERS],
  19.     Text:Borda2[MAX_PLAYERS],
  20.     Text:Titulo[MAX_PLAYERS],
  21.     Text:Borda3[MAX_PLAYERS],
  22.     Text:Borda4[MAX_PLAYERS],
  23.     Text:Cronometro[MAX_PLAYERS],
  24.     bool:cAtivado[MAX_PLAYERS],
  25.     croTemp[MAX_PLAYERS],
  26.     pHoras[MAX_PLAYERS],
  27.     pMinutos[MAX_PLAYERS],
  28.     pSegundos[MAX_PLAYERS],
  29.     bool:TeclaAtivada[MAX_PLAYERS],
  30.     bool:VisualAtivado[MAX_PLAYERS]
  31. ;
  32.  
  33.  
  34. // ====== [Definições] ======//
  35. #define cMenu   550
  36. #define Text1   551
  37. #define Text2   552
  38. #define Text3   553
  39. #define tCor1   554
  40. #define tCor2   555
  41. #define tCor3   556
  42. #define tFont1  557
  43. #define tFont2  558
  44. #define Inicio  560
  45. #define Avisos  561
  46. #define rTempo  562
  47.  
  48.  
  49. // ====== [Cores] ======//
  50. #define Branco      0xFFFFFFAA
  51. #define Preto       0x000000AA
  52. #define Vermelho    0xFF0000AA
  53. #define Verde       0x00FF00AA
  54. #define Cinza       0xA9A9A9AA
  55. #define Azul        0x0000FFAA
  56. #define Amarelo     0xFFFF00AA
  57. #define Rosa        0xEE82EEAA
  58. #define Roxo        0x9400D3AA
  59.  
  60.  
  61. public OnFilterScriptInit()
  62. {
  63.     print(" - rCronometro Pessoal v1.0 -");
  64.     print(" - By: @Riichard -");
  65.     print(" - Carregado! - ");
  66.     // TextDraw's
  67.     for (new r = 0; r < MAX_PLAYERS; r++)
  68.     {
  69.         Titulo[r] = TextDrawCreate(507.000000, 403.000000, "Meu Cronometro:");
  70.         TextDrawLetterSize(Titulo[r], 0.170000, 1.199999);
  71.         TextDrawFont(Titulo[r], 2);
  72.         TextDrawUseBox(Titulo[r], 0);
  73.         TextDrawSetOutline(Titulo[r], 1);
  74.         TextDrawAlignment(Titulo[r], 0);
  75.         TextDrawColor(Titulo[r], -589505281);
  76.         TextDrawBoxColor(Titulo[r], 255);
  77.         // Cronometro
  78.         Cronometro[r] = TextDrawCreate(509.000000, 415.000000, "00:00:00");
  79.         TextDrawLetterSize(Cronometro[r], 0.520000, 2.799999);
  80.         TextDrawFont(Cronometro[r], 3);
  81.         TextDrawUseBox(Cronometro[r], 0);
  82.         TextDrawSetOutline(Cronometro[r], 1);
  83.         TextDrawAlignment(Cronometro[r], 0);
  84.         TextDrawColor(Cronometro[r], 16711935);
  85.         TextDrawBackgroundColor(Cronometro[r], 471604479);
  86.         // Bordas
  87.         Borda1[r] = TextDrawCreate(452.000000, 410.000000, "-");
  88.         TextDrawLetterSize(Borda1[r], 13.340015, 0.700000);
  89.         TextDrawFont(Borda1[r], 1);
  90.         TextDrawSetOutline(Borda1[r], 1);
  91.         TextDrawColor(Borda1[r], 16711935);
  92.         // --
  93.         Borda2[r] = TextDrawCreate(453.000000, 439.000000, "-");
  94.         TextDrawLetterSize(Borda2[r], 13.340015, 0.700000);
  95.         TextDrawFont(Borda2[r], 1);
  96.         TextDrawSetOutline(Borda2[r], 1);
  97.         TextDrawColor(Borda2[r], 16711935);
  98.         // --
  99.         Borda3[r] = TextDrawCreate(487.000000, 398.000000, "I");
  100.         TextDrawLetterSize(Borda3[r], -0.099999, 6.300000);
  101.         TextDrawFont(Borda3[r], 1);
  102.         TextDrawSetOutline(Borda3[r], 1);
  103.         TextDrawColor(Borda3[r], 16711935);
  104.         // --
  105.         Borda4[r] = TextDrawCreate(611.000000, 398.000000, "I");
  106.         TextDrawLetterSize(Borda4[r], -0.099999, 6.300000);
  107.         TextDrawFont(Borda4[r], 1);
  108.         TextDrawSetOutline(Borda4[r], 1);
  109.         TextDrawColor(Borda4[r], 16711935);
  110.     }
  111.     return 1;
  112. }
  113.  
  114.  
  115. public OnPlayerConnect(playerid)
  116. {
  117.     cAtivado[playerid] = false;
  118.     TeclaAtivada[playerid] = false;
  119.     VisualAtivado[playerid] = false;
  120.     pMinutos[playerid] = 0;
  121.     pSegundos[playerid] = 0;
  122.     pHoras[playerid] = 0;
  123.     return 0;
  124. }
  125.  
  126.  
  127. CMD:iniciar(playerid)
  128. {
  129.     if(cAtivado[playerid] == true)
  130.         return SendClientMessage(playerid, Cinza, "[rERRO] Você já iníciou uma cronometragem.");
  131.     ShowPlayerDialog(playerid, Inicio, DIALOG_STYLE_MSGBOX, "rCronometro Pessoal", "{778899}× Para iníciar o cronometro, você dever ler a lista de avisos!", "Ler", "Cancelar");
  132.     return 1;
  133. }
  134.  
  135.  
  136. CMD:textedit(playerid)
  137. {
  138.     if(cAtivado[playerid] == true)
  139.         return SendClientMessage(playerid, Cinza, "[rERRO] Uma cronometragem está em andamento, você não pode usar isto agora!");
  140.     ShowPlayerDialog(playerid, cMenu, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", "{778899}Editar Texto: {00FF00}Meu Cronometro:\n{778899}Editar Texto: {00FF00}00:00:00\n{778899}Editar Texto: {00FF00}Bordas\n{0000FF} Pré-Visualizar", "Editar", "Cancelar");
  141.     return 1;
  142. }
  143.  
  144.  
  145. CMD:ctecla(playerid)
  146. {
  147.     if(TeclaAtivada[playerid] == true)
  148.     {
  149.         SendClientMessage(playerid, Cinza, "[AVISO] Você desativou o ativamento/desativamento do cronometro por tecla.");
  150.         TeclaAtivada[playerid] = false;
  151.     }else{
  152.         SendClientMessage(playerid, Cinza, "[AVISO] Você ativou o ativamento/desativamento do cronometro por tecla.");
  153.         TeclaAtivada[playerid] = true;
  154.     }
  155.     return 1;
  156. }
  157.  
  158.  
  159. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  160. {
  161.     new String[128];
  162.     if(newkeys == KEY_SUBMISSION)
  163.     {
  164.         if(TeclaAtivada[playerid] == true)
  165.         {
  166.             if(cAtivado[playerid] == true)
  167.             {
  168.                 KillTimer(croTemp[playerid]);
  169.                 format(String, sizeof(String), "{778899}× Seu cronometro parou em: {FFFF00}%02d:%02d:%02d{778899} ×\n\n× Desejá mandar uma mensagem para todos do servidor? ×", pHoras[playerid], pMinutos[playerid], pSegundos[playerid]);
  170.                 ShowPlayerDialog(playerid, rTempo, DIALOG_STYLE_MSGBOX, "rCronometro Pessoal {TEMPO}", String, "Sim", "Não");
  171.                 TextDrawHideForPlayer(playerid, Titulo[playerid]);
  172.                 TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  173.                 TextDrawHideForPlayer(playerid, Borda1[playerid]);
  174.                 TextDrawHideForPlayer(playerid, Borda2[playerid]);
  175.                 TextDrawHideForPlayer(playerid, Borda3[playerid]);
  176.                 TextDrawHideForPlayer(playerid, Borda4[playerid]);
  177.                 cAtivado[playerid] = false;
  178.             }else{
  179.                 ShowPlayerDialog(playerid, Inicio, DIALOG_STYLE_MSGBOX, "rCronometro Pessoal", "{778899}× Para iníciar o cronometro, você dever ler a lista de avisos!", "Ler", "Cancelar");
  180.             }
  181.         }
  182.     }
  183.     return 0;
  184. }
  185.  
  186.  
  187. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  188. {
  189.     new String[500], String2[500];
  190.     if (dialogid == Inicio)
  191.     {
  192.         if(response)
  193.         {
  194.             strcat(String, "{778899}× Ao passar de 99 horas o cronometro é resetado.\n");
  195.             strcat(String, "× O cronometro tem forma de: HORAS:MINUTOS:SEGUNDOS\n");
  196.             strcat(String, "× Para desativar/ativar o cronometro pressione a tecla {FF0000}1{778899}\n");
  197.             strcat(String, "× Para desativar/ativar pressionando teclas deve usar: {FF0000}/cTecla\n");
  198.             ShowPlayerDialog(playerid, Avisos, DIALOG_STYLE_MSGBOX, "rCronometro Pessoal {AVISOS}", String, "Iniciar", "Cancelar");
  199.         }
  200.         if(!response)
  201.         {
  202.             SendClientMessage(playerid, Amarelo, "[rINFO] Você cancelou o cronometro.");
  203.         }
  204.     }
  205.    
  206.     if (dialogid == Avisos)
  207.     {
  208.         if(response)
  209.         {
  210.             SendClientMessage(playerid, Amarelo, "[rINFO] Você ativou o cronometro.");
  211.             pHoras[playerid] = 0;
  212.             pMinutos[playerid] = 0;
  213.             pSegundos[playerid] = 0;
  214.             cAtivado[playerid] = true;
  215.             TextDrawShowForPlayer(playerid, Titulo[playerid]);
  216.             TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  217.             TextDrawShowForPlayer(playerid, Borda1[playerid]);
  218.             TextDrawShowForPlayer(playerid, Borda2[playerid]);
  219.             TextDrawShowForPlayer(playerid, Borda3[playerid]);
  220.             TextDrawShowForPlayer(playerid, Borda4[playerid]);
  221.             croTemp[playerid] = SetTimerEx("AtualizarCronometro", 1000, true, "d", playerid);
  222.         }
  223.         if(!response)
  224.         {
  225.             SendClientMessage(playerid, Amarelo, "[rINFO] Você cancelou o cronometro.");
  226.         }
  227.     }
  228.    
  229.     if (dialogid == cMenu)
  230.     {
  231.         if(response)
  232.         {
  233.             if(listitem == 0)
  234.             {
  235.                 strcat(String, "- Modificar Cor\n");
  236.                 strcat(String, "- Modificar Fonte\n");
  237.                 strcat(String, "{FF0000}< Voltar");
  238.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  239.                 ShowPlayerDialog(playerid, Text1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Selecionar", "Cancelar");
  240.             }
  241.             if(listitem == 1)
  242.             {
  243.                 strcat(String, "- Modificar Cor\n");
  244.                 strcat(String, "- Modificar Fonte\n");
  245.                 strcat(String, "{FF0000}< Voltar");
  246.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  247.                 ShowPlayerDialog(playerid, Text2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Selecionar", "Cancelar");
  248.             }
  249.             if(listitem == 2)
  250.             {
  251.                 strcat(String, "- Modificar Cor\n");
  252.                 strcat(String, "{FF0000}< Voltar");
  253.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  254.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  255.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  256.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  257.                 ShowPlayerDialog(playerid, Text3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Selecionar", "Cancelar");
  258.             }
  259.             if(listitem == 3)
  260.             {
  261.                 if(VisualAtivado[playerid] == false)
  262.                 {
  263.                     TextDrawShowForPlayer(playerid, Titulo[playerid]);
  264.                     TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  265.                     TextDrawShowForPlayer(playerid, Borda1[playerid]);
  266.                     TextDrawShowForPlayer(playerid, Borda2[playerid]);
  267.                     TextDrawShowForPlayer(playerid, Borda3[playerid]);
  268.                     TextDrawShowForPlayer(playerid, Borda4[playerid]);
  269.                     ShowPlayerDialog(playerid, cMenu, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", "{778899}Editar Texto: {00FF00}Meu Cronometro:\n{778899}Editar Texto: {00FF00}00:00:00\n{778899}Editar Texto: {00FF00}Bordas\n{0000FF} Pré-Visualizar", "Editar", "Cancelar");
  270.                     VisualAtivado[playerid] = true;
  271.                 }
  272.                 else if(VisualAtivado[playerid] == true)
  273.                 {
  274.                     TextDrawHideForPlayer(playerid, Titulo[playerid]);
  275.                     TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  276.                     TextDrawHideForPlayer(playerid, Borda1[playerid]);
  277.                     TextDrawHideForPlayer(playerid, Borda2[playerid]);
  278.                     TextDrawHideForPlayer(playerid, Borda3[playerid]);
  279.                     TextDrawHideForPlayer(playerid, Borda4[playerid]);
  280.                     ShowPlayerDialog(playerid, cMenu, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", "{778899}Editar Texto: {00FF00}Meu Cronometro:\n{778899}Editar Texto: {00FF00}00:00:00\n{778899}Editar Texto: {00FF00}Bordas\n{0000FF} Pré-Visualizar", "Editar", "Cancelar");
  281.                     VisualAtivado[playerid] = false;
  282.                 }
  283.             }
  284.         }
  285.         if(!response)
  286.         {
  287.             TextDrawHideForPlayer(playerid, Titulo[playerid]);
  288.             TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  289.             TextDrawHideForPlayer(playerid, Borda1[playerid]);
  290.             TextDrawHideForPlayer(playerid, Borda2[playerid]);
  291.             TextDrawHideForPlayer(playerid, Borda3[playerid]);
  292.             TextDrawHideForPlayer(playerid, Borda4[playerid]);
  293.             VisualAtivado[playerid] = false;
  294.         }
  295.     }
  296.    
  297.     if (dialogid == Text1)
  298.     {
  299.         if(response)
  300.         {
  301.             if(listitem == 0)
  302.             {
  303.                 strcat(String, "- Padrão\n");
  304.                 strcat(String, "- Branco\n");
  305.                 strcat(String, "- Preto\n");
  306.                 strcat(String, "- Azul\n");
  307.                 strcat(String, "- Verde\n");
  308.                 strcat(String, "- Rosa\n");
  309.                 strcat(String, "- Roxo\n");
  310.                 strcat(String, "- Amarelo\n");
  311.                 strcat(String, "- Vermelho\n");
  312.                 strcat(String, "- Cinza\n");
  313.                 strcat(String, "{FF0000}< Voltar");
  314.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Editar", "Cancelar");
  315.             }
  316.             if(listitem == 1)
  317.             {
  318.                 strcat(String, "- Fonte 0\n");
  319.                 strcat(String, "- Fonte 1\n");
  320.                 strcat(String, "- Fonte 2\n");
  321.                 strcat(String, "- Fonte 3\n");
  322.                 strcat(String, "{FF0000}< Voltar");
  323.                 ShowPlayerDialog(playerid, tFont1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Editar", "Cancelar");
  324.             }
  325.             if(listitem == 2)
  326.             {
  327.                 TextDrawHideForPlayer(playerid, Titulo[playerid]);
  328.                 ShowPlayerDialog(playerid, cMenu, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", "{778899}Editar Texto: {00FF00}Meu Cronometro:\n{778899}Editar Texto: {00FF00}00:00:00\n{778899}Editar Texto: {00FF00}Bordas\n{0000FF} Pré-Visualizar", "Editar", "Cancelar");
  329.             }
  330.         }
  331.         if(!response)
  332.         {
  333.             TextDrawHideForPlayer(playerid, Titulo[playerid]);
  334.             TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  335.             TextDrawHideForPlayer(playerid, Borda1[playerid]);
  336.             TextDrawHideForPlayer(playerid, Borda2[playerid]);
  337.             TextDrawHideForPlayer(playerid, Borda3[playerid]);
  338.             TextDrawHideForPlayer(playerid, Borda4[playerid]);
  339.             VisualAtivado[playerid] = false;
  340.         }
  341.     }
  342.    
  343.     if (dialogid == Text2)
  344.     {
  345.         if(response)
  346.         {
  347.             if(listitem == 0)
  348.             {
  349.                 strcat(String, "- Padrão\n");
  350.                 strcat(String, "- Branco\n");
  351.                 strcat(String, "- Preto\n");
  352.                 strcat(String, "- Azul\n");
  353.                 strcat(String, "- Verde\n");
  354.                 strcat(String, "- Rosa\n");
  355.                 strcat(String, "- Roxo\n");
  356.                 strcat(String, "- Amarelo\n");
  357.                 strcat(String, "- Vermelho\n");
  358.                 strcat(String, "- Cinza\n");
  359.                 strcat(String, "{FF0000}< Voltar");
  360.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Editar", "Cancelar");
  361.             }
  362.             if(listitem == 1)
  363.             {
  364.                 strcat(String, "- Fonte 0\n");
  365.                 strcat(String, "- Fonte 1\n");
  366.                 strcat(String, "- Fonte 2\n");
  367.                 strcat(String, "- Fonte 3\n");
  368.                 strcat(String, "{FF0000}< Voltar");
  369.                 ShowPlayerDialog(playerid, tFont2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Editar", "Cancelar");
  370.             }
  371.             if(listitem == 2)
  372.             {
  373.                 TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  374.                 ShowPlayerDialog(playerid, cMenu, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", "{778899}Editar Texto: {00FF00}Meu Cronometro:\n{778899}Editar Texto: {00FF00}00:00:00\n{778899}Editar Texto: {00FF00}Bordas\n{0000FF} Pré-Visualizar", "Editar", "Cancelar");
  375.             }
  376.         }
  377.         if(!response)
  378.         {
  379.             TextDrawHideForPlayer(playerid, Titulo[playerid]);
  380.             TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  381.             TextDrawHideForPlayer(playerid, Borda1[playerid]);
  382.             TextDrawHideForPlayer(playerid, Borda2[playerid]);
  383.             TextDrawHideForPlayer(playerid, Borda3[playerid]);
  384.             TextDrawHideForPlayer(playerid, Borda4[playerid]);
  385.             VisualAtivado[playerid] = false;
  386.         }
  387.     }
  388.    
  389.     if (dialogid == Text3)
  390.     {
  391.         if(response)
  392.         {
  393.             if(listitem == 0)
  394.             {
  395.                 strcat(String, "- Padrão\n");
  396.                 strcat(String, "- Branco\n");
  397.                 strcat(String, "- Preto\n");
  398.                 strcat(String, "- Azul\n");
  399.                 strcat(String, "- Verde\n");
  400.                 strcat(String, "- Rosa\n");
  401.                 strcat(String, "- Roxo\n");
  402.                 strcat(String, "- Amarelo\n");
  403.                 strcat(String, "- Vermelho\n");
  404.                 strcat(String, "- Cinza\n");
  405.                 strcat(String, "{FF0000}< Voltar");
  406.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Editar", "Cancelar");
  407.             }
  408.             if(listitem == 1)
  409.             {
  410.                 TextDrawHideForPlayer(playerid, Borda1[playerid]);
  411.                 TextDrawHideForPlayer(playerid, Borda2[playerid]);
  412.                 TextDrawHideForPlayer(playerid, Borda3[playerid]);
  413.                 TextDrawHideForPlayer(playerid, Borda4[playerid]);
  414.                 ShowPlayerDialog(playerid, cMenu, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", "{778899}Editar Texto: {00FF00}Meu Cronometro:\n{778899}Editar Texto: {00FF00}00:00:00\n{778899}Editar Texto: {00FF00}Bordas\n{0000FF} Pré-Visualizar", "Editar", "Cancelar");
  415.             }
  416.         }
  417.         if(!response)
  418.         {
  419.             TextDrawHideForPlayer(playerid, Titulo[playerid]);
  420.             TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  421.             TextDrawHideForPlayer(playerid, Borda1[playerid]);
  422.             TextDrawHideForPlayer(playerid, Borda2[playerid]);
  423.             TextDrawHideForPlayer(playerid, Borda3[playerid]);
  424.             TextDrawHideForPlayer(playerid, Borda4[playerid]);
  425.             VisualAtivado[playerid] = false;
  426.         }
  427.     }
  428.     // Texto 1 (Meu Cronometro:)
  429.     if (dialogid == tCor1)
  430.     {
  431.         if(response)
  432.         {
  433.             if(listitem == 0)
  434.             {
  435.                 format(String, sizeof(String), "Meu Cronometro:");
  436.                 TextDrawColor(Titulo[playerid], -589505281);
  437.                 TextDrawSetString(Titulo[playerid], String);
  438.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  439.                 strcat(String2, "- Padrão\n");
  440.                 strcat(String2, "- Branco\n");
  441.                 strcat(String2, "- Preto\n");
  442.                 strcat(String2, "- Azul\n");
  443.                 strcat(String2, "- Verde\n");
  444.                 strcat(String2, "- Rosa\n");
  445.                 strcat(String2, "- Roxo\n");
  446.                 strcat(String2, "- Amarelo\n");
  447.                 strcat(String2, "- Vermelho\n");
  448.                 strcat(String2, "- Cinza\n");
  449.                 strcat(String2, "{FF0000}< Voltar");
  450.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  451.             }
  452.             if(listitem == 1)
  453.             {
  454.                 format(String, sizeof(String), "Meu Cronometro:");
  455.                 TextDrawColor(Titulo[playerid], Branco);
  456.                 TextDrawSetString(Titulo[playerid], String);
  457.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  458.                 strcat(String2, "- Padrão\n");
  459.                 strcat(String2, "- Branco\n");
  460.                 strcat(String2, "- Preto\n");
  461.                 strcat(String2, "- Azul\n");
  462.                 strcat(String2, "- Verde\n");
  463.                 strcat(String2, "- Rosa\n");
  464.                 strcat(String2, "- Roxo\n");
  465.                 strcat(String2, "- Amarelo\n");
  466.                 strcat(String2, "- Vermelho\n");
  467.                 strcat(String2, "- Cinza\n");
  468.                 strcat(String2, "{FF0000}< Voltar");
  469.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  470.             }
  471.             if(listitem == 2)
  472.             {
  473.                 format(String, sizeof(String), "Meu Cronometro:");
  474.                 TextDrawColor(Titulo[playerid], Preto);
  475.                 TextDrawSetString(Titulo[playerid], String);
  476.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  477.                 strcat(String2, "- Padrão\n");
  478.                 strcat(String2, "- Branco\n");
  479.                 strcat(String2, "- Preto\n");
  480.                 strcat(String2, "- Azul\n");
  481.                 strcat(String2, "- Verde\n");
  482.                 strcat(String2, "- Rosa\n");
  483.                 strcat(String2, "- Roxo\n");
  484.                 strcat(String2, "- Amarelo\n");
  485.                 strcat(String2, "- Vermelho\n");
  486.                 strcat(String2, "- Cinza\n");
  487.                 strcat(String2, "{FF0000}< Voltar");
  488.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  489.             }
  490.             if(listitem == 3)
  491.             {
  492.                 format(String, sizeof(String), "Meu Cronometro:");
  493.                 TextDrawColor(Titulo[playerid], Azul);
  494.                 TextDrawSetString(Titulo[playerid], String);
  495.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  496.                 strcat(String2, "- Padrão\n");
  497.                 strcat(String2, "- Branco\n");
  498.                 strcat(String2, "- Preto\n");
  499.                 strcat(String2, "- Azul\n");
  500.                 strcat(String2, "- Verde\n");
  501.                 strcat(String2, "- Rosa\n");
  502.                 strcat(String2, "- Roxo\n");
  503.                 strcat(String2, "- Amarelo\n");
  504.                 strcat(String2, "- Vermelho\n");
  505.                 strcat(String2, "- Cinza\n");
  506.                 strcat(String2, "{FF0000}< Voltar");
  507.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  508.             }
  509.             if(listitem == 4)
  510.             {
  511.                 format(String, sizeof(String), "Meu Cronometro:");
  512.                 TextDrawColor(Titulo[playerid], Verde);
  513.                 TextDrawSetString(Titulo[playerid], String);
  514.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  515.                 strcat(String2, "- Padrão\n");
  516.                 strcat(String2, "- Branco\n");
  517.                 strcat(String2, "- Preto\n");
  518.                 strcat(String2, "- Azul\n");
  519.                 strcat(String2, "- Verde\n");
  520.                 strcat(String2, "- Rosa\n");
  521.                 strcat(String2, "- Roxo\n");
  522.                 strcat(String2, "- Amarelo\n");
  523.                 strcat(String2, "- Vermelho\n");
  524.                 strcat(String2, "- Cinza\n");
  525.                 strcat(String2, "{FF0000}< Voltar");
  526.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  527.             }
  528.             if(listitem == 5)
  529.             {
  530.                 format(String, sizeof(String), "Meu Cronometro:");
  531.                 TextDrawColor(Titulo[playerid], Rosa);
  532.                 TextDrawSetString(Titulo[playerid], String);
  533.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  534.                 strcat(String2, "- Padrão\n");
  535.                 strcat(String2, "- Branco\n");
  536.                 strcat(String2, "- Preto\n");
  537.                 strcat(String2, "- Azul\n");
  538.                 strcat(String2, "- Verde\n");
  539.                 strcat(String2, "- Rosa\n");
  540.                 strcat(String2, "- Roxo\n");
  541.                 strcat(String2, "- Amarelo\n");
  542.                 strcat(String2, "- Vermelho\n");
  543.                 strcat(String2, "- Cinza\n");
  544.                 strcat(String2, "{FF0000}< Voltar");
  545.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  546.             }
  547.             if(listitem == 6)
  548.             {
  549.                 format(String, sizeof(String), "Meu Cronometro:");
  550.                 TextDrawColor(Titulo[playerid], Roxo);
  551.                 TextDrawSetString(Titulo[playerid], String);
  552.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  553.                 strcat(String2, "- Padrão\n");
  554.                 strcat(String2, "- Branco\n");
  555.                 strcat(String2, "- Preto\n");
  556.                 strcat(String2, "- Azul\n");
  557.                 strcat(String2, "- Verde\n");
  558.                 strcat(String2, "- Rosa\n");
  559.                 strcat(String2, "- Roxo\n");
  560.                 strcat(String2, "- Amarelo\n");
  561.                 strcat(String2, "- Vermelho\n");
  562.                 strcat(String2, "- Cinza\n");
  563.                 strcat(String2, "{FF0000}< Voltar");
  564.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  565.             }
  566.             if(listitem == 7)
  567.             {
  568.                 format(String, sizeof(String), "Meu Cronometro:");
  569.                 TextDrawColor(Titulo[playerid], Amarelo);
  570.                 TextDrawSetString(Titulo[playerid], String);
  571.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  572.                 strcat(String2, "- Padrão\n");
  573.                 strcat(String2, "- Branco\n");
  574.                 strcat(String2, "- Preto\n");
  575.                 strcat(String2, "- Azul\n");
  576.                 strcat(String2, "- Verde\n");
  577.                 strcat(String2, "- Rosa\n");
  578.                 strcat(String2, "- Roxo\n");
  579.                 strcat(String2, "- Amarelo\n");
  580.                 strcat(String2, "- Vermelho\n");
  581.                 strcat(String2, "- Cinza\n");
  582.                 strcat(String2, "{FF0000}< Voltar");
  583.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  584.             }
  585.             if(listitem == 8)
  586.             {
  587.                 format(String, sizeof(String), "Meu Cronometro:");
  588.                 TextDrawColor(Titulo[playerid], Vermelho);
  589.                 TextDrawSetString(Titulo[playerid], String);
  590.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  591.                 strcat(String2, "- Padrão\n");
  592.                 strcat(String2, "- Branco\n");
  593.                 strcat(String2, "- Preto\n");
  594.                 strcat(String2, "- Azul\n");
  595.                 strcat(String2, "- Verde\n");
  596.                 strcat(String2, "- Rosa\n");
  597.                 strcat(String2, "- Roxo\n");
  598.                 strcat(String2, "- Amarelo\n");
  599.                 strcat(String2, "- Vermelho\n");
  600.                 strcat(String2, "- Cinza\n");
  601.                 strcat(String2, "{FF0000}< Voltar");
  602.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  603.             }
  604.             if(listitem == 9)
  605.             {
  606.                 format(String, sizeof(String), "Meu Cronometro:");
  607.                 TextDrawColor(Titulo[playerid], Cinza);
  608.                 TextDrawSetString(Titulo[playerid], String);
  609.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  610.                 strcat(String2, "- Padrão\n");
  611.                 strcat(String2, "- Branco\n");
  612.                 strcat(String2, "- Preto\n");
  613.                 strcat(String2, "- Azul\n");
  614.                 strcat(String2, "- Verde\n");
  615.                 strcat(String2, "- Rosa\n");
  616.                 strcat(String2, "- Roxo\n");
  617.                 strcat(String2, "- Amarelo\n");
  618.                 strcat(String2, "- Vermelho\n");
  619.                 strcat(String2, "- Cinza\n");
  620.                 strcat(String2, "{FF0000}< Voltar");
  621.                 ShowPlayerDialog(playerid, tCor1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  622.             }
  623.             if(listitem == 10)
  624.             {
  625.                 strcat(String, "- Modificar Cor\n");
  626.                 strcat(String, "- Modificar Fonte\n");
  627.                 strcat(String, "{FF0000}< Voltar");
  628.                 ShowPlayerDialog(playerid, Text1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Selecionar", "Cancelar");
  629.             }
  630.         }
  631.         if(!response)
  632.         {
  633.             TextDrawHideForPlayer(playerid, Titulo[playerid]);
  634.             TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  635.             TextDrawHideForPlayer(playerid, Borda1[playerid]);
  636.             TextDrawHideForPlayer(playerid, Borda2[playerid]);
  637.             TextDrawHideForPlayer(playerid, Borda3[playerid]);
  638.             TextDrawHideForPlayer(playerid, Borda4[playerid]);
  639.             VisualAtivado[playerid] = false;
  640.         }
  641.     }
  642.     if (dialogid == tFont1)
  643.     {
  644.         if(response)
  645.         {
  646.             if(listitem == 0)
  647.             {
  648.                 format(String, sizeof(String), "Meu Cronometro:");
  649.                 TextDrawFont(Titulo[playerid], 0);
  650.                 TextDrawSetString(Titulo[playerid], String);
  651.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  652.                 strcat(String2, "- Fonte 0\n");
  653.                 strcat(String2, "- Fonte 1\n");
  654.                 strcat(String2, "- Fonte 2\n");
  655.                 strcat(String2, "- Fonte 3\n");
  656.                 strcat(String2, "{FF0000}< Voltar");
  657.                 ShowPlayerDialog(playerid, tFont1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  658.             }
  659.             if(listitem == 1)
  660.             {
  661.                 format(String, sizeof(String), "Meu Cronometro:");
  662.                 TextDrawFont(Titulo[playerid], 1);
  663.                 TextDrawSetString(Titulo[playerid], String);
  664.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  665.                 strcat(String2, "- Fonte 0\n");
  666.                 strcat(String2, "- Fonte 1\n");
  667.                 strcat(String2, "- Fonte 2\n");
  668.                 strcat(String2, "- Fonte 3\n");
  669.                 strcat(String2, "{FF0000}< Voltar");
  670.                 ShowPlayerDialog(playerid, tFont1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  671.             }
  672.             if(listitem == 2)
  673.             {
  674.                 format(String, sizeof(String), "Meu Cronometro:");
  675.                 TextDrawFont(Titulo[playerid], 2);
  676.                 TextDrawSetString(Titulo[playerid], String);
  677.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  678.                 strcat(String2, "- Fonte 0\n");
  679.                 strcat(String2, "- Fonte 1\n");
  680.                 strcat(String2, "- Fonte 2\n");
  681.                 strcat(String2, "- Fonte 3\n");
  682.                 strcat(String2, "{FF0000}< Voltar");
  683.                 ShowPlayerDialog(playerid, tFont1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  684.             }
  685.             if(listitem == 3)
  686.             {
  687.                 format(String, sizeof(String), "Meu Cronometro:");
  688.                 TextDrawFont(Titulo[playerid], 3);
  689.                 TextDrawSetString(Titulo[playerid], String);
  690.                 TextDrawShowForPlayer(playerid, Titulo[playerid]);
  691.                 strcat(String2, "- Fonte 0\n");
  692.                 strcat(String2, "- Fonte 1\n");
  693.                 strcat(String2, "- Fonte 2\n");
  694.                 strcat(String2, "- Fonte 3\n");
  695.                 strcat(String2, "{FF0000}< Voltar");
  696.                 ShowPlayerDialog(playerid, tFont1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  697.             }
  698.             if(listitem == 4)
  699.             {
  700.                 strcat(String, "- Modificar Cor\n");
  701.                 strcat(String, "- Modificar Fonte\n");
  702.                 strcat(String, "{FF0000}< Voltar");
  703.                 ShowPlayerDialog(playerid, Text1, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Selecionar", "Cancelar");
  704.             }
  705.         }
  706.         if(!response)
  707.         {
  708.             TextDrawHideForPlayer(playerid, Titulo[playerid]);
  709.             TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  710.             TextDrawHideForPlayer(playerid, Borda1[playerid]);
  711.             TextDrawHideForPlayer(playerid, Borda2[playerid]);
  712.             TextDrawHideForPlayer(playerid, Borda3[playerid]);
  713.             TextDrawHideForPlayer(playerid, Borda4[playerid]);
  714.             VisualAtivado[playerid] = false;
  715.         }
  716.     }
  717.     // Texto 2 (00:00:00)
  718.     if (dialogid == tCor2)
  719.     {
  720.         if(response)
  721.         {
  722.             if(listitem == 0)
  723.             {
  724.                 format(String, sizeof(String), "00:00:00");
  725.                 TextDrawColor(Cronometro[playerid], 16711935);
  726.                 TextDrawSetString(Cronometro[playerid], String);
  727.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  728.                 strcat(String2, "- Padrão\n");
  729.                 strcat(String2, "- Branco\n");
  730.                 strcat(String2, "- Preto\n");
  731.                 strcat(String2, "- Azul\n");
  732.                 strcat(String2, "- Verde\n");
  733.                 strcat(String2, "- Rosa\n");
  734.                 strcat(String2, "- Roxo\n");
  735.                 strcat(String2, "- Amarelo\n");
  736.                 strcat(String2, "- Vermelho\n");
  737.                 strcat(String2, "- Cinza\n");
  738.                 strcat(String2, "{FF0000}< Voltar");
  739.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  740.             }
  741.             if(listitem == 1)
  742.             {
  743.                 format(String, sizeof(String), "00:00:00");
  744.                 TextDrawColor(Cronometro[playerid], Branco);
  745.                 TextDrawSetString(Cronometro[playerid], String);
  746.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  747.                 strcat(String2, "- Padrão\n");
  748.                 strcat(String2, "- Branco\n");
  749.                 strcat(String2, "- Preto\n");
  750.                 strcat(String2, "- Azul\n");
  751.                 strcat(String2, "- Verde\n");
  752.                 strcat(String2, "- Rosa\n");
  753.                 strcat(String2, "- Roxo\n");
  754.                 strcat(String2, "- Amarelo\n");
  755.                 strcat(String2, "- Vermelho\n");
  756.                 strcat(String2, "- Cinza\n");
  757.                 strcat(String2, "{FF0000}< Voltar");
  758.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  759.             }
  760.             if(listitem == 2)
  761.             {
  762.                 format(String, sizeof(String), "00:00:00");
  763.                 TextDrawColor(Cronometro[playerid], Preto);
  764.                 TextDrawSetString(Cronometro[playerid], String);
  765.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  766.                 strcat(String2, "- Padrão\n");
  767.                 strcat(String2, "- Branco\n");
  768.                 strcat(String2, "- Preto\n");
  769.                 strcat(String2, "- Azul\n");
  770.                 strcat(String2, "- Verde\n");
  771.                 strcat(String2, "- Rosa\n");
  772.                 strcat(String2, "- Roxo\n");
  773.                 strcat(String2, "- Amarelo\n");
  774.                 strcat(String2, "- Vermelho\n");
  775.                 strcat(String2, "- Cinza\n");
  776.                 strcat(String2, "{FF0000}< Voltar");
  777.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  778.             }
  779.             if(listitem == 3)
  780.             {
  781.                 format(String, sizeof(String), "00:00:00");
  782.                 TextDrawColor(Cronometro[playerid], Azul);
  783.                 TextDrawSetString(Cronometro[playerid], String);
  784.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  785.                 strcat(String2, "- Padrão\n");
  786.                 strcat(String2, "- Branco\n");
  787.                 strcat(String2, "- Preto\n");
  788.                 strcat(String2, "- Azul\n");
  789.                 strcat(String2, "- Verde\n");
  790.                 strcat(String2, "- Rosa\n");
  791.                 strcat(String2, "- Roxo\n");
  792.                 strcat(String2, "- Amarelo\n");
  793.                 strcat(String2, "- Vermelho\n");
  794.                 strcat(String2, "- Cinza\n");
  795.                 strcat(String2, "{FF0000}< Voltar");
  796.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  797.             }
  798.             if(listitem == 4)
  799.             {
  800.                 format(String, sizeof(String), "00:00:00");
  801.                 TextDrawColor(Cronometro[playerid], Verde);
  802.                 TextDrawSetString(Cronometro[playerid], String);
  803.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  804.                 strcat(String2, "- Padrão\n");
  805.                 strcat(String2, "- Branco\n");
  806.                 strcat(String2, "- Preto\n");
  807.                 strcat(String2, "- Azul\n");
  808.                 strcat(String2, "- Verde\n");
  809.                 strcat(String2, "- Rosa\n");
  810.                 strcat(String2, "- Roxo\n");
  811.                 strcat(String2, "- Amarelo\n");
  812.                 strcat(String2, "- Vermelho\n");
  813.                 strcat(String2, "- Cinza\n");
  814.                 strcat(String2, "{FF0000}< Voltar");
  815.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  816.             }
  817.             if(listitem == 5)
  818.             {
  819.                 format(String, sizeof(String), "00:00:00");
  820.                 TextDrawColor(Cronometro[playerid], Rosa);
  821.                 TextDrawSetString(Cronometro[playerid], String);
  822.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  823.                 strcat(String2, "- Padrão\n");
  824.                 strcat(String2, "- Branco\n");
  825.                 strcat(String2, "- Preto\n");
  826.                 strcat(String2, "- Azul\n");
  827.                 strcat(String2, "- Verde\n");
  828.                 strcat(String2, "- Rosa\n");
  829.                 strcat(String2, "- Roxo\n");
  830.                 strcat(String2, "- Amarelo\n");
  831.                 strcat(String2, "- Vermelho\n");
  832.                 strcat(String2, "- Cinza\n");
  833.                 strcat(String2, "{FF0000}< Voltar");
  834.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  835.             }
  836.             if(listitem == 6)
  837.             {
  838.                 format(String, sizeof(String), "00:00:00");
  839.                 TextDrawColor(Cronometro[playerid], Roxo);
  840.                 TextDrawSetString(Cronometro[playerid], String);
  841.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  842.                 strcat(String2, "- Padrão\n");
  843.                 strcat(String2, "- Branco\n");
  844.                 strcat(String2, "- Preto\n");
  845.                 strcat(String2, "- Azul\n");
  846.                 strcat(String2, "- Verde\n");
  847.                 strcat(String2, "- Rosa\n");
  848.                 strcat(String2, "- Roxo\n");
  849.                 strcat(String2, "- Amarelo\n");
  850.                 strcat(String2, "- Vermelho\n");
  851.                 strcat(String2, "- Cinza\n");
  852.                 strcat(String2, "{FF0000}< Voltar");
  853.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  854.             }
  855.             if(listitem == 7)
  856.             {
  857.                 format(String, sizeof(String), "00:00:00");
  858.                 TextDrawColor(Cronometro[playerid], Amarelo);
  859.                 TextDrawSetString(Cronometro[playerid], String);
  860.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  861.                 strcat(String2, "- Padrão\n");
  862.                 strcat(String2, "- Branco\n");
  863.                 strcat(String2, "- Preto\n");
  864.                 strcat(String2, "- Azul\n");
  865.                 strcat(String2, "- Verde\n");
  866.                 strcat(String2, "- Rosa\n");
  867.                 strcat(String2, "- Roxo\n");
  868.                 strcat(String2, "- Amarelo\n");
  869.                 strcat(String2, "- Vermelho\n");
  870.                 strcat(String2, "- Cinza\n");
  871.                 strcat(String2, "{FF0000}< Voltar");
  872.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  873.             }
  874.             if(listitem == 8)
  875.             {
  876.                 format(String, sizeof(String), "00:00:00");
  877.                 TextDrawColor(Cronometro[playerid], Vermelho);
  878.                 TextDrawSetString(Cronometro[playerid], String);
  879.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  880.                 strcat(String2, "- Padrão\n");
  881.                 strcat(String2, "- Branco\n");
  882.                 strcat(String2, "- Preto\n");
  883.                 strcat(String2, "- Azul\n");
  884.                 strcat(String2, "- Verde\n");
  885.                 strcat(String2, "- Rosa\n");
  886.                 strcat(String2, "- Roxo\n");
  887.                 strcat(String2, "- Amarelo\n");
  888.                 strcat(String2, "- Vermelho\n");
  889.                 strcat(String2, "- Cinza\n");
  890.                 strcat(String2, "{FF0000}< Voltar");
  891.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  892.             }
  893.             if(listitem == 9)
  894.             {
  895.                 format(String, sizeof(String), "00:00:00");
  896.                 TextDrawColor(Cronometro[playerid], Cinza);
  897.                 TextDrawSetString(Cronometro[playerid], String);
  898.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  899.                 strcat(String2, "- Padrão\n");
  900.                 strcat(String2, "- Branco\n");
  901.                 strcat(String2, "- Preto\n");
  902.                 strcat(String2, "- Azul\n");
  903.                 strcat(String2, "- Verde\n");
  904.                 strcat(String2, "- Rosa\n");
  905.                 strcat(String2, "- Roxo\n");
  906.                 strcat(String2, "- Amarelo\n");
  907.                 strcat(String2, "- Vermelho\n");
  908.                 strcat(String2, "- Cinza\n");
  909.                 strcat(String2, "{FF0000}< Voltar");
  910.                 ShowPlayerDialog(playerid, tCor2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  911.             }
  912.             if(listitem == 10)
  913.             {
  914.                 strcat(String, "- Modificar Cor\n");
  915.                 strcat(String, "- Modificar Fonte\n");
  916.                 strcat(String, "{FF0000}< Voltar");
  917.                 ShowPlayerDialog(playerid, Text2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Selecionar", "Cancelar");
  918.             }
  919.         }
  920.         if(!response)
  921.         {
  922.             TextDrawHideForPlayer(playerid, Titulo[playerid]);
  923.             TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  924.             TextDrawHideForPlayer(playerid, Borda1[playerid]);
  925.             TextDrawHideForPlayer(playerid, Borda2[playerid]);
  926.             TextDrawHideForPlayer(playerid, Borda3[playerid]);
  927.             TextDrawHideForPlayer(playerid, Borda4[playerid]);
  928.             VisualAtivado[playerid] = false;
  929.         }
  930.     }
  931.     if (dialogid == tFont2)
  932.     {
  933.         if(response)
  934.         {
  935.             if(listitem == 0)
  936.             {
  937.                 format(String, sizeof(String), "00:00:00");
  938.                 TextDrawFont(Cronometro[playerid], 0);
  939.                 TextDrawSetString(Cronometro[playerid], String);
  940.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  941.                 strcat(String2, "- Fonte 0\n");
  942.                 strcat(String2, "- Fonte 1\n");
  943.                 strcat(String2, "- Fonte 2\n");
  944.                 strcat(String2, "- Fonte 3\n");
  945.                 strcat(String2, "{FF0000}< Voltar");
  946.                 ShowPlayerDialog(playerid, tFont2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  947.             }
  948.             if(listitem == 1)
  949.             {
  950.                 format(String, sizeof(String), "00:00:00");
  951.                 TextDrawFont(Cronometro[playerid], 1);
  952.                 TextDrawSetString(Cronometro[playerid], String);
  953.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  954.                 strcat(String2, "- Fonte 0\n");
  955.                 strcat(String2, "- Fonte 1\n");
  956.                 strcat(String2, "- Fonte 2\n");
  957.                 strcat(String2, "- Fonte 3\n");
  958.                 strcat(String2, "{FF0000}< Voltar");
  959.                 ShowPlayerDialog(playerid, tFont2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  960.             }
  961.             if(listitem == 2)
  962.             {
  963.                 format(String, sizeof(String), "00:00:00");
  964.                 TextDrawFont(Cronometro[playerid], 2);
  965.                 TextDrawSetString(Cronometro[playerid], String);
  966.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  967.                 strcat(String2, "- Fonte 0\n");
  968.                 strcat(String2, "- Fonte 1\n");
  969.                 strcat(String2, "- Fonte 2\n");
  970.                 strcat(String2, "- Fonte 3\n");
  971.                 strcat(String2, "{FF0000}< Voltar");
  972.                 ShowPlayerDialog(playerid, tFont2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  973.             }
  974.             if(listitem == 3)
  975.             {
  976.                 format(String, sizeof(String), "00:00:00");
  977.                 TextDrawFont(Cronometro[playerid], 3);
  978.                 TextDrawSetString(Cronometro[playerid], String);
  979.                 TextDrawShowForPlayer(playerid, Cronometro[playerid]);
  980.                 strcat(String2, "- Fonte 0\n");
  981.                 strcat(String2, "- Fonte 1\n");
  982.                 strcat(String2, "- Fonte 2\n");
  983.                 strcat(String2, "- Fonte 3\n");
  984.                 strcat(String2, "{FF0000}< Voltar");
  985.                 ShowPlayerDialog(playerid, tFont2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String2, "Editar", "Cancelar");
  986.             }
  987.             if(listitem == 4)
  988.             {
  989.                 strcat(String, "- Modificar Cor\n");
  990.                 strcat(String, "- Modificar Fonte\n");
  991.                 strcat(String, "{FF0000}< Voltar");
  992.                 ShowPlayerDialog(playerid, Text2, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Selecionar", "Cancelar");
  993.             }
  994.         }
  995.         if(!response)
  996.         {
  997.             TextDrawHideForPlayer(playerid, Titulo[playerid]);
  998.             TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  999.             TextDrawHideForPlayer(playerid, Borda1[playerid]);
  1000.             TextDrawHideForPlayer(playerid, Borda2[playerid]);
  1001.             TextDrawHideForPlayer(playerid, Borda3[playerid]);
  1002.             TextDrawHideForPlayer(playerid, Borda4[playerid]);
  1003.             VisualAtivado[playerid] = false;
  1004.         }
  1005.     }
  1006.     // Texto 3 (Bordas)
  1007.     if (dialogid == tCor3)
  1008.     {
  1009.         new String3[10], String4[10], String5[500];
  1010.         if(response)
  1011.         {
  1012.             if(listitem == 0)
  1013.             {
  1014.                 format(String, sizeof(String), "-");
  1015.                 TextDrawColor(Borda1[playerid], 16711935);
  1016.                 format(String2, sizeof(String2), "-");
  1017.                 TextDrawColor(Borda2[playerid], 16711935);
  1018.                 format(String3, sizeof(String3), "I");
  1019.                 TextDrawColor(Borda3[playerid], 16711935);
  1020.                 format(String4, sizeof(String4), "I");
  1021.                 TextDrawColor(Borda4[playerid], 16711935);
  1022.                 TextDrawSetString(Borda1[playerid], String);
  1023.                 TextDrawSetString(Borda2[playerid], String2);
  1024.                 TextDrawSetString(Borda3[playerid], String3);
  1025.                 TextDrawSetString(Borda4[playerid], String4);
  1026.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1027.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1028.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1029.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1030.                 strcat(String5, "- Padrão\n");
  1031.                 strcat(String5, "- Branco\n");
  1032.                 strcat(String5, "- Preto\n");
  1033.                 strcat(String5, "- Azul\n");
  1034.                 strcat(String5, "- Verde\n");
  1035.                 strcat(String5, "- Rosa\n");
  1036.                 strcat(String5, "- Roxo\n");
  1037.                 strcat(String5, "- Amarelo\n");
  1038.                 strcat(String5, "- Vermelho\n");
  1039.                 strcat(String5, "- Cinza\n");
  1040.                 strcat(String5, "{FF0000}< Voltar");
  1041.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1042.             }
  1043.             if(listitem == 1)
  1044.             {
  1045.                 format(String, sizeof(String), "-");
  1046.                 TextDrawColor(Borda1[playerid], Branco);
  1047.                 format(String2, sizeof(String2), "-");
  1048.                 TextDrawColor(Borda2[playerid], Branco);
  1049.                 format(String3, sizeof(String3), "I");
  1050.                 TextDrawColor(Borda3[playerid], Branco);
  1051.                 format(String4, sizeof(String4), "I");
  1052.                 TextDrawColor(Borda4[playerid], Branco);
  1053.                 TextDrawSetString(Borda1[playerid], String);
  1054.                 TextDrawSetString(Borda2[playerid], String2);
  1055.                 TextDrawSetString(Borda3[playerid], String3);
  1056.                 TextDrawSetString(Borda4[playerid], String4);
  1057.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1058.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1059.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1060.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1061.                 strcat(String5, "- Padrão\n");
  1062.                 strcat(String5, "- Branco\n");
  1063.                 strcat(String5, "- Preto\n");
  1064.                 strcat(String5, "- Azul\n");
  1065.                 strcat(String5, "- Verde\n");
  1066.                 strcat(String5, "- Rosa\n");
  1067.                 strcat(String5, "- Roxo\n");
  1068.                 strcat(String5, "- Amarelo\n");
  1069.                 strcat(String5, "- Vermelho\n");
  1070.                 strcat(String5, "- Cinza\n");
  1071.                 strcat(String5, "{FF0000}< Voltar");
  1072.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1073.             }
  1074.             if(listitem == 2)
  1075.             {
  1076.                 format(String, sizeof(String), "-");
  1077.                 TextDrawColor(Borda1[playerid], Preto);
  1078.                 format(String2, sizeof(String2), "-");
  1079.                 TextDrawColor(Borda2[playerid], Preto);
  1080.                 format(String3, sizeof(String3), "I");
  1081.                 TextDrawColor(Borda3[playerid], Preto);
  1082.                 format(String4, sizeof(String4), "I");
  1083.                 TextDrawColor(Borda4[playerid], Preto);
  1084.                 TextDrawSetString(Borda1[playerid], String);
  1085.                 TextDrawSetString(Borda2[playerid], String2);
  1086.                 TextDrawSetString(Borda3[playerid], String3);
  1087.                 TextDrawSetString(Borda4[playerid], String4);
  1088.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1089.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1090.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1091.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1092.                 strcat(String5, "- Padrão\n");
  1093.                 strcat(String5, "- Branco\n");
  1094.                 strcat(String5, "- Preto\n");
  1095.                 strcat(String5, "- Azul\n");
  1096.                 strcat(String5, "- Verde\n");
  1097.                 strcat(String5, "- Rosa\n");
  1098.                 strcat(String5, "- Roxo\n");
  1099.                 strcat(String5, "- Amarelo\n");
  1100.                 strcat(String5, "- Vermelho\n");
  1101.                 strcat(String5, "- Cinza\n");
  1102.                 strcat(String5, "{FF0000}< Voltar");
  1103.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1104.             }
  1105.             if(listitem == 3)
  1106.             {
  1107.                 format(String, sizeof(String), "-");
  1108.                 TextDrawColor(Borda1[playerid], Azul);
  1109.                 format(String2, sizeof(String2), "-");
  1110.                 TextDrawColor(Borda2[playerid], Azul);
  1111.                 format(String3, sizeof(String3), "I");
  1112.                 TextDrawColor(Borda3[playerid], Azul);
  1113.                 format(String4, sizeof(String4), "I");
  1114.                 TextDrawColor(Borda4[playerid], Azul);
  1115.                 TextDrawSetString(Borda1[playerid], String);
  1116.                 TextDrawSetString(Borda2[playerid], String2);
  1117.                 TextDrawSetString(Borda3[playerid], String3);
  1118.                 TextDrawSetString(Borda4[playerid], String4);
  1119.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1120.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1121.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1122.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1123.                 strcat(String5, "- Padrão\n");
  1124.                 strcat(String5, "- Branco\n");
  1125.                 strcat(String5, "- Preto\n");
  1126.                 strcat(String5, "- Azul\n");
  1127.                 strcat(String5, "- Verde\n");
  1128.                 strcat(String5, "- Rosa\n");
  1129.                 strcat(String5, "- Roxo\n");
  1130.                 strcat(String5, "- Amarelo\n");
  1131.                 strcat(String5, "- Vermelho\n");
  1132.                 strcat(String5, "- Cinza\n");
  1133.                 strcat(String5, "{FF0000}< Voltar");
  1134.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1135.             }
  1136.             if(listitem == 4)
  1137.             {
  1138.                 format(String, sizeof(String), "-");
  1139.                 TextDrawColor(Borda1[playerid], Verde);
  1140.                 format(String2, sizeof(String2), "-");
  1141.                 TextDrawColor(Borda2[playerid], Verde);
  1142.                 format(String3, sizeof(String3), "I");
  1143.                 TextDrawColor(Borda3[playerid], Verde);
  1144.                 format(String4, sizeof(String4), "I");
  1145.                 TextDrawColor(Borda4[playerid], Verde);
  1146.                 TextDrawSetString(Borda1[playerid], String);
  1147.                 TextDrawSetString(Borda2[playerid], String2);
  1148.                 TextDrawSetString(Borda3[playerid], String3);
  1149.                 TextDrawSetString(Borda4[playerid], String4);
  1150.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1151.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1152.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1153.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1154.                 strcat(String5, "- Padrão\n");
  1155.                 strcat(String5, "- Branco\n");
  1156.                 strcat(String5, "- Preto\n");
  1157.                 strcat(String5, "- Azul\n");
  1158.                 strcat(String5, "- Verde\n");
  1159.                 strcat(String5, "- Rosa\n");
  1160.                 strcat(String5, "- Roxo\n");
  1161.                 strcat(String5, "- Amarelo\n");
  1162.                 strcat(String5, "- Vermelho\n");
  1163.                 strcat(String5, "- Cinza\n");
  1164.                 strcat(String5, "{FF0000}< Voltar");
  1165.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1166.             }
  1167.             if(listitem == 5)
  1168.             {
  1169.                 format(String, sizeof(String), "-");
  1170.                 TextDrawColor(Borda1[playerid], Rosa);
  1171.                 format(String2, sizeof(String2), "-");
  1172.                 TextDrawColor(Borda2[playerid], Rosa);
  1173.                 format(String3, sizeof(String3), "I");
  1174.                 TextDrawColor(Borda3[playerid], Rosa);
  1175.                 format(String4, sizeof(String4), "I");
  1176.                 TextDrawColor(Borda4[playerid], Rosa);
  1177.                 TextDrawSetString(Borda1[playerid], String);
  1178.                 TextDrawSetString(Borda2[playerid], String2);
  1179.                 TextDrawSetString(Borda3[playerid], String3);
  1180.                 TextDrawSetString(Borda4[playerid], String4);
  1181.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1182.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1183.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1184.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1185.                 strcat(String5, "- Padrão\n");
  1186.                 strcat(String5, "- Branco\n");
  1187.                 strcat(String5, "- Preto\n");
  1188.                 strcat(String5, "- Azul\n");
  1189.                 strcat(String5, "- Verde\n");
  1190.                 strcat(String5, "- Rosa\n");
  1191.                 strcat(String5, "- Roxo\n");
  1192.                 strcat(String5, "- Amarelo\n");
  1193.                 strcat(String5, "- Vermelho\n");
  1194.                 strcat(String5, "- Cinza\n");
  1195.                 strcat(String5, "{FF0000}< Voltar");
  1196.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1197.             }
  1198.             if(listitem == 6)
  1199.             {
  1200.                 format(String, sizeof(String), "-");
  1201.                 TextDrawColor(Borda1[playerid], Roxo);
  1202.                 format(String2, sizeof(String2), "-");
  1203.                 TextDrawColor(Borda2[playerid], Roxo);
  1204.                 format(String3, sizeof(String3), "I");
  1205.                 TextDrawColor(Borda3[playerid], Roxo);
  1206.                 format(String4, sizeof(String4), "I");
  1207.                 TextDrawColor(Borda4[playerid], Roxo);
  1208.                 TextDrawSetString(Borda1[playerid], String);
  1209.                 TextDrawSetString(Borda2[playerid], String2);
  1210.                 TextDrawSetString(Borda3[playerid], String3);
  1211.                 TextDrawSetString(Borda4[playerid], String4);
  1212.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1213.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1214.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1215.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1216.                 strcat(String5, "- Padrão\n");
  1217.                 strcat(String5, "- Branco\n");
  1218.                 strcat(String5, "- Preto\n");
  1219.                 strcat(String5, "- Azul\n");
  1220.                 strcat(String5, "- Verde\n");
  1221.                 strcat(String5, "- Rosa\n");
  1222.                 strcat(String5, "- Roxo\n");
  1223.                 strcat(String5, "- Amarelo\n");
  1224.                 strcat(String5, "- Vermelho\n");
  1225.                 strcat(String5, "- Cinza\n");
  1226.                 strcat(String5, "{FF0000}< Voltar");
  1227.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1228.             }
  1229.             if(listitem == 7)
  1230.             {
  1231.                 format(String, sizeof(String), "-");
  1232.                 TextDrawColor(Borda1[playerid], Amarelo);
  1233.                 format(String2, sizeof(String2), "-");
  1234.                 TextDrawColor(Borda2[playerid], Amarelo);
  1235.                 format(String3, sizeof(String3), "I");
  1236.                 TextDrawColor(Borda3[playerid], Amarelo);
  1237.                 format(String4, sizeof(String4), "I");
  1238.                 TextDrawColor(Borda4[playerid], Amarelo);
  1239.                 TextDrawSetString(Borda1[playerid], String);
  1240.                 TextDrawSetString(Borda2[playerid], String2);
  1241.                 TextDrawSetString(Borda3[playerid], String3);
  1242.                 TextDrawSetString(Borda4[playerid], String4);
  1243.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1244.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1245.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1246.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1247.                 strcat(String5, "- Padrão\n");
  1248.                 strcat(String5, "- Branco\n");
  1249.                 strcat(String5, "- Preto\n");
  1250.                 strcat(String5, "- Azul\n");
  1251.                 strcat(String5, "- Verde\n");
  1252.                 strcat(String5, "- Rosa\n");
  1253.                 strcat(String5, "- Roxo\n");
  1254.                 strcat(String5, "- Amarelo\n");
  1255.                 strcat(String5, "- Vermelho\n");
  1256.                 strcat(String5, "- Cinza\n");
  1257.                 strcat(String5, "{FF0000}< Voltar");
  1258.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1259.             }
  1260.             if(listitem == 8)
  1261.             {
  1262.                 format(String, sizeof(String), "-");
  1263.                 TextDrawColor(Borda1[playerid], Vermelho);
  1264.                 format(String2, sizeof(String2), "-");
  1265.                 TextDrawColor(Borda2[playerid], Vermelho);
  1266.                 format(String3, sizeof(String3), "I");
  1267.                 TextDrawColor(Borda3[playerid], Vermelho);
  1268.                 format(String4, sizeof(String4), "I");
  1269.                 TextDrawColor(Borda4[playerid], Vermelho);
  1270.                 TextDrawSetString(Borda1[playerid], String);
  1271.                 TextDrawSetString(Borda2[playerid], String2);
  1272.                 TextDrawSetString(Borda3[playerid], String3);
  1273.                 TextDrawSetString(Borda4[playerid], String4);
  1274.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1275.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1276.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1277.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1278.                 strcat(String5, "- Padrão\n");
  1279.                 strcat(String5, "- Branco\n");
  1280.                 strcat(String5, "- Preto\n");
  1281.                 strcat(String5, "- Azul\n");
  1282.                 strcat(String5, "- Verde\n");
  1283.                 strcat(String5, "- Rosa\n");
  1284.                 strcat(String5, "- Roxo\n");
  1285.                 strcat(String5, "- Amarelo\n");
  1286.                 strcat(String5, "- Vermelho\n");
  1287.                 strcat(String5, "- Cinza\n");
  1288.                 strcat(String5, "{FF0000}< Voltar");
  1289.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1290.             }
  1291.             if(listitem == 9)
  1292.             {
  1293.                 format(String, sizeof(String), "-");
  1294.                 TextDrawColor(Borda1[playerid], Cinza);
  1295.                 format(String2, sizeof(String2), "-");
  1296.                 TextDrawColor(Borda2[playerid], Cinza);
  1297.                 format(String3, sizeof(String3), "I");
  1298.                 TextDrawColor(Borda3[playerid], Cinza);
  1299.                 format(String4, sizeof(String4), "I");
  1300.                 TextDrawColor(Borda4[playerid], Cinza);
  1301.                 TextDrawSetString(Borda1[playerid], String);
  1302.                 TextDrawSetString(Borda2[playerid], String2);
  1303.                 TextDrawSetString(Borda3[playerid], String3);
  1304.                 TextDrawSetString(Borda4[playerid], String4);
  1305.                 TextDrawShowForPlayer(playerid, Borda1[playerid]);
  1306.                 TextDrawShowForPlayer(playerid, Borda2[playerid]);
  1307.                 TextDrawShowForPlayer(playerid, Borda3[playerid]);
  1308.                 TextDrawShowForPlayer(playerid, Borda4[playerid]);
  1309.                 strcat(String5, "- Padrão\n");
  1310.                 strcat(String5, "- Branco\n");
  1311.                 strcat(String5, "- Preto\n");
  1312.                 strcat(String5, "- Azul\n");
  1313.                 strcat(String5, "- Verde\n");
  1314.                 strcat(String5, "- Rosa\n");
  1315.                 strcat(String5, "- Roxo\n");
  1316.                 strcat(String5, "- Amarelo\n");
  1317.                 strcat(String5, "- Vermelho\n");
  1318.                 strcat(String5, "- Cinza\n");
  1319.                 strcat(String5, "{FF0000}< Voltar");
  1320.                 ShowPlayerDialog(playerid, tCor3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String5, "Editar", "Cancelar");
  1321.             }
  1322.             if(listitem == 10)
  1323.             {
  1324.                 strcat(String, "- Modificar Cor\n");
  1325.                 strcat(String, "{FF0000}< Voltar");
  1326.                 ShowPlayerDialog(playerid, Text3, DIALOG_STYLE_LIST, "rCronometro Pessoal {EDITAR}", String, "Selecionar", "Cancelar");
  1327.             }
  1328.         }
  1329.         if(!response)
  1330.         {
  1331.             TextDrawHideForPlayer(playerid, Titulo[playerid]);
  1332.             TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  1333.             TextDrawHideForPlayer(playerid, Borda1[playerid]);
  1334.             TextDrawHideForPlayer(playerid, Borda2[playerid]);
  1335.             TextDrawHideForPlayer(playerid, Borda3[playerid]);
  1336.             TextDrawHideForPlayer(playerid, Borda4[playerid]);
  1337.             VisualAtivado[playerid] = false;
  1338.         }
  1339.     }
  1340.     if (dialogid == rTempo)
  1341.     {
  1342.         if(response)
  1343.         {
  1344.             format(String, sizeof(String), "[rINFO] O cronometro de, %s, parou em %02d:%02d:%02d.", pNome(playerid), pHoras[playerid], pMinutos[playerid], pSegundos[playerid]);
  1345.             SendClientMessageToAll(Vermelho, String);
  1346.             pHoras[playerid] = 0;
  1347.             pMinutos[playerid] = 0;
  1348.             pSegundos[playerid] = 0;
  1349.             TeclaAtivada[playerid] = false;
  1350.         }
  1351.         if(!response)
  1352.         {
  1353.             pHoras[playerid] = 0;
  1354.             pMinutos[playerid] = 0;
  1355.             pSegundos[playerid] = 0;
  1356.             TeclaAtivada[playerid] = false;
  1357.             SendClientMessage(playerid, Verde, "[rINFO] Você não quis mostrar o resultado do seu cronometro para ninguém.");
  1358.         }
  1359.     }
  1360.     return 0;
  1361. }
  1362.  
  1363.  
  1364. forward AtualizarCronometro(playerid);
  1365. public AtualizarCronometro(playerid)
  1366. {
  1367.     new String[100];
  1368.     pSegundos[playerid] += 1;
  1369.     format(String, sizeof(String), "%02d:%02d:%02d", pHoras[playerid], pMinutos[playerid], pSegundos[playerid]);
  1370.     TextDrawSetString(Cronometro[playerid], String);
  1371.     if(pSegundos[playerid] == 60)
  1372.     {
  1373.         pMinutos[playerid] += 1;
  1374.         pSegundos[playerid] = 0;
  1375.         format(String, sizeof(String), "%02d:%02d:%02d", pHoras[playerid], pMinutos[playerid], pSegundos[playerid]);
  1376.         TextDrawSetString(Cronometro[playerid], String);
  1377.     }
  1378.     if(pMinutos[playerid] == 60 && pSegundos[playerid] == 60)
  1379.     {
  1380.         pHoras[playerid] += 1;
  1381.         pMinutos[playerid] = 0;
  1382.         pSegundos[playerid] = 0;
  1383.         format(String, sizeof(String), "%02d:%02d:%02d", pHoras[playerid], pMinutos[playerid], pSegundos[playerid]);
  1384.         TextDrawSetString(Cronometro[playerid], String);
  1385.     }
  1386.     if(pHoras[playerid] == 99 && pMinutos[playerid] == 60 && pSegundos[playerid] == 60)
  1387.     {
  1388.         SendClientMessage(playerid, Vermelho, "[rAVISO] Se passaram 99 horas, e o cronometro foi resetado.");
  1389.         TextDrawHideForPlayer(playerid, Titulo[playerid]);
  1390.         TextDrawHideForPlayer(playerid, Cronometro[playerid]);
  1391.         TextDrawHideForPlayer(playerid, Borda1[playerid]);
  1392.         TextDrawHideForPlayer(playerid, Borda2[playerid]);
  1393.         TextDrawHideForPlayer(playerid, Borda3[playerid]);
  1394.         TextDrawHideForPlayer(playerid, Borda4[playerid]);
  1395.         KillTimer(croTemp[playerid]);
  1396.         pHoras[playerid] = 0;
  1397.         pMinutos[playerid] = 0;
  1398.         pSegundos[playerid] = 0;
  1399.         cAtivado[playerid] = false;
  1400.     }
  1401.     return 1;
  1402. }
  1403.  
  1404.  
  1405. stock pNome(playerid)
  1406. {
  1407.     new pnome[MAX_PLAYER_NAME];
  1408.     GetPlayerName(playerid, pnome, MAX_PLAYER_NAME);
  1409.     return pnome;
  1410. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement