Advertisement
PedroEduardo

[GameMode] Facebook Simulator v0.3 R1

Apr 27th, 2017
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 63.26 KB | None | 0 0
  1. //===========================================//
  2. //** System: GameMode Facebook Simulator v0.3( http://forum.sa-mp.com/showthread.php?p=3873800 )
  3. //** Credits: Pedro Eduardo
  4. //===========================================//
  5.  
  6. #include    a_samp
  7. #include    a_mysql
  8.  
  9. #define     HOST            "127.0.0.1"
  10. #define     USUARIO         "root"
  11. #define     DATABASE        "samp"
  12. #define     SENHA           ""
  13.  
  14. #define     Versao          "v0.3 R1"
  15.  
  16. #define ClearChat(%1) for(new i = 0; i < %1; i++) SendClientMessage(playerid,-1,"")
  17.  
  18. main(){}
  19.  
  20. enum pFac
  21. {
  22.     ID,
  23.     pNick[24],
  24.     pPassword[24],
  25.     bool:ceta,
  26.  
  27.     rNick[11],rSobre[11],rEmail[40],rSenha[24],rNascimento[11],bool:rGenero
  28. };
  29.  
  30. new
  31.     Conexao,Query[2048],
  32.     Facebook[MAX_PLAYERS][pFac],resetFacebook[pFac]
  33. ;
  34.  
  35. enum fLogin
  36. {
  37.     bool:login,bool:senha,
  38.     bool:rnome,bool:rsobrenome,bool:remail,bool:rsenha,bool:rnascimento,bool:rgenero
  39. };
  40.  
  41. new
  42.     Digitou_Login[MAX_PLAYERS][fLogin],ResetfLogin[fLogin],
  43.     Text:G_TD_LogarF[23],                    //login
  44.     PlayerText:P_TD_LogarF[MAX_PLAYERS][9],  //individual login
  45.  
  46.     Text:G_TD_Facebook[11],                  //hud
  47.     Text:G_TD_Facebook_CONF[6],              //menu
  48.     PlayerText:P_TD_Facebook[MAX_PLAYERS][3] //individual hud
  49. ;
  50.  
  51. public OnGameModeInit()
  52. {
  53.     SendRconCommand("hostname Facebook Simulator [0.3.7] by Pedro Eduardo");
  54.     SetGameModeText("FB "Versao"");
  55.  
  56.     Conexao = mysql_connect(HOST, USUARIO, DATABASE, SENHA);
  57.  
  58.     //criar tabela de contas
  59.     mysql_query(Conexao, "CREATE TABLE IF NOT EXISTS `FaceConta`(`ID`int AUTO_INCREMENT PRIMARY KEY,`Usuario` varchar(24) NOT NULL,\
  60.    `Senha` varchar(24) NOT NULL,`Email` varchar(40) NOT NULL,`Nascimento` varchar(11) NOT NULL,`Genero` int(2) NOT NULL)", false);
  61.  
  62.     print("\n ====================================================================");
  63.     print(" |                                                                  |");
  64.     print(" |              Tentando se conectar ao banco de dados...           |");
  65.     print(" |                                                                  |");
  66.  
  67.     if(mysql_errno() != 0)
  68.         for(new fail = 0; fail < 5; fail++)
  69.             print(" |       * Falha ao tentar se conectar ao Banco de Dados!! *        |");
  70.     else
  71.     {
  72.         print(" |                     * Conectado com sucesso. *                   |");
  73.         print(" |                                                                  |");
  74.         print(" |                                                                  |");
  75.         print(" | Copyright (c) 2017 Facebook Simulator  Todos direitos reservados |");
  76.     }
  77.     print(" |                                                                  |");
  78.     print(" ====================================================================\n");
  79.  
  80.     G_TDraw_LogarF();
  81.     return 1;
  82. }
  83.  
  84. public OnGameModeExit()
  85. {
  86.     mysql_close(Conexao);
  87.  
  88.     for(new a = 0; a < 23; ++a) TextDrawHideForAll(G_TD_LogarF[a]),TextDrawDestroy(G_TD_LogarF[a]);
  89.  
  90.     for(new a = 0; a < 11; ++a) TextDrawHideForAll(G_TD_Facebook[a]),TextDrawDestroy(G_TD_Facebook[a]);
  91.     for(new b = 0; b < 6; ++b) TextDrawHideForAll(G_TD_Facebook_CONF[b]),TextDrawDestroy(G_TD_Facebook_CONF[b]);
  92.     return 1;
  93. }
  94.  
  95. public OnPlayerConnect(playerid)
  96. {
  97.     P_TDraw_LogarF(playerid);
  98.  
  99.     for(new a = 0; a < 23; ++a) TextDrawShowForPlayer(playerid, G_TD_LogarF[a]);
  100.     for(new b = 0; b < 9; ++b) PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][b]);
  101.     SelectTextDraw(playerid, -1061109505);
  102.     return 1;
  103. }
  104.  
  105. public OnPlayerDisconnect(playerid, reason)
  106. {
  107.     //reset
  108.     Digitou_Login[playerid] = ResetfLogin;
  109.     Facebook[playerid] = resetFacebook;
  110.     return 1;
  111. }
  112.  
  113. public OnPlayerRequestClass(playerid, classid)
  114. {
  115.     TogglePlayerSpectating(playerid, true);
  116.     ClearChat(20);
  117.     return 1;
  118. }
  119.  
  120. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  121. {
  122.     //===================// login //===================//
  123.     if(clickedid == G_TD_LogarF[7])//esqueci conta
  124.     {
  125.         SendClientMessage(playerid, -1, "esqueceu sua senha? posso fazer nada :v kkkkkkkkkkkkkk'"),SendClientMessage(playerid, -1,"");
  126.     }
  127.     else if(clickedid == G_TD_LogarF[22])//entrar
  128.     {
  129.         if(Digitou_Login[playerid][login] == false)
  130.         {
  131.             SendClientMessage(playerid, -1,"Digite seu usuario!"),SendClientMessage(playerid, -1,"");
  132.         }
  133.         if(Digitou_Login[playerid][senha] == false)
  134.         {
  135.             SendClientMessage(playerid, -1,"Digite sua senha!"),SendClientMessage(playerid, -1,"");
  136.         }
  137.         //============================================================================//
  138.  
  139.         else if(Digitou_Login[playerid][login]==Digitou_Login[playerid][senha] == true)
  140.         {
  141.             mysql_format(Conexao, Query, sizeof(Query), "SELECT * FROM FaceConta WHERE Usuario='%e' AND Senha='%e' LIMIT 1", Facebook[playerid][pNick],Facebook[playerid][pPassword]);
  142.             new Cache:Temp = mysql_query(Conexao, Query, true);
  143.             if(!cache_get_row_count(Conexao)) //se não existir a conta / errar a senha
  144.             {
  145.                 //procurar e-mail então
  146.                 mysql_format(Conexao, Query, sizeof(Query), "SELECT * FROM FaceConta WHERE Email='%e' LIMIT 1", Facebook[playerid][pNick]);
  147.                 new Cache:Temp3 = mysql_query(Conexao, Query, true);
  148.                 if(!cache_get_row_count(Conexao)) //se NÃO existir a conta
  149.                 {
  150.                     SendClientMessage(playerid, -1,"O Usuario digitado não existe, ou você errou a senha ;3");
  151.                 }
  152.                 else
  153.                 {
  154.                     //===================// Login //===================//
  155.                     for(new a = 0; a < 23; ++a) TextDrawHideForPlayer(playerid, G_TD_LogarF[a]);
  156.                     for(new b = 0; b < 9; ++b) PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][b]);
  157.                     CancelSelectTextDraw(playerid);
  158.  
  159.                     //===================// Hud //===================//
  160.                     PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][0],"Pesquisar no Facebook");
  161.  
  162.                     for(new c = 0; c < 11; ++c) TextDrawShowForPlayer(playerid, G_TD_Facebook[c]);
  163.                     for(new d = 0; d < 3; ++d) PlayerTextDrawShow(playerid, P_TD_Facebook[playerid][d]);
  164.                     SelectTextDraw(playerid, 0x3C507AFF);
  165.  
  166.                     PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][2], Facebook[playerid][pNick]);
  167.                     Facebook[playerid][ceta]=false;
  168.                     ClearChat(20);
  169.                 }
  170.                 cache_delete(Temp3, Conexao);
  171.             }
  172.             else //se tem conta / acertou a senha
  173.             {
  174.                 //===================// Login //===================//
  175.                 for(new a = 0; a < 23; ++a) TextDrawHideForPlayer(playerid, G_TD_LogarF[a]);
  176.                 for(new b = 0; b < 9; ++b) PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][b]);
  177.                 CancelSelectTextDraw(playerid);
  178.  
  179.                 //===================// Hud //===================//
  180.                 PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][0],"Pesquisar no Facebook");
  181.  
  182.                 for(new c = 0; c < 11; ++c) TextDrawShowForPlayer(playerid, G_TD_Facebook[c]);
  183.                 for(new d = 0; d < 3; ++d) PlayerTextDrawShow(playerid, P_TD_Facebook[playerid][d]);
  184.                 SelectTextDraw(playerid, 0x3C507AFF);
  185.  
  186.                 PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][2], Facebook[playerid][pNick]);
  187.                 Facebook[playerid][ceta]=false;
  188.                 ClearChat(20);
  189.             }
  190.             cache_delete(Temp, Conexao);
  191.         }
  192.     }
  193.     else if(clickedid == G_TD_LogarF[19])//criar conta
  194.     {
  195.         if(Digitou_Login[playerid][rnome] == false)
  196.         {
  197.             SendClientMessage(playerid, -1,"Digite o seu Nome!"),SendClientMessage(playerid, -1,"");
  198.         }
  199.         if(Digitou_Login[playerid][rsobrenome] == false)
  200.         {
  201.             SendClientMessage(playerid, -1,"Digite o seu Sobrenome!"),SendClientMessage(playerid, -1,"");
  202.         }
  203.         if(Digitou_Login[playerid][remail] == false)
  204.         {
  205.             SendClientMessage(playerid, -1,"Você usará o e-mail quando se conectar e se precisar redefinir a senha."),SendClientMessage(playerid, -1,"");
  206.         }
  207.         if(Digitou_Login[playerid][rsenha] == false)
  208.         {
  209.             SendClientMessage(playerid, -1,"Digite uma senha para se registrar!"),SendClientMessage(playerid, -1,"");
  210.         }
  211.         if(Digitou_Login[playerid][rnascimento] == false)
  212.         {
  213.             SendClientMessage(playerid, -1,"Digite sua data de nascimento!"),SendClientMessage(playerid, -1,"");
  214.         }
  215.         if(Digitou_Login[playerid][rgenero] == false)
  216.         {
  217.             SendClientMessage(playerid, -1,"Escolha um gênero! (feminino):(masculino)"),SendClientMessage(playerid, -1,"");
  218.         }
  219.         //============================================================================//
  220.         else if(Digitou_Login[playerid][rnome]==Digitou_Login[playerid][rsobrenome]==Digitou_Login[playerid][remail]==Digitou_Login[playerid][rsenha]==Digitou_Login[playerid][rgenero]==Digitou_Login[playerid][rnascimento]==true)
  221.         {
  222.             new nome[MAX_PLAYER_NAME];
  223.             format(nome,sizeof(nome),"%s_%s",Facebook[playerid][rNick],Facebook[playerid][rSobre]);
  224.             Facebook[playerid][pNick]=nome;
  225.  
  226.             mysql_format(Conexao, Query, sizeof(Query), "SELECT * FROM FaceConta WHERE Usuario='%e' LIMIT 1", Facebook[playerid][pNick]);
  227.             mysql_tquery(Conexao, Query, "Mysql_check", "d", playerid);
  228.         }
  229.     }
  230.  
  231.     //===================// Hud //===================//
  232.     else if(clickedid == G_TD_Facebook[6]) //ceta baixo
  233.     {
  234.         if(Facebook[playerid][ceta] == true)
  235.         {
  236.             for(new c = 0; c < 6; ++c) TextDrawHideForPlayer(playerid, G_TD_Facebook_CONF[c]);
  237.             Facebook[playerid][ceta]=false;
  238.         }
  239.         else
  240.         {
  241.             for(new c = 0; c < 6; ++c) TextDrawShowForPlayer(playerid, G_TD_Facebook_CONF[c]);
  242.             Facebook[playerid][ceta]=true;
  243.         }
  244.     }
  245.     else if(clickedid == G_TD_Facebook[7]) //Pedro_Eduardo
  246.     {
  247.         SendClientMessage(playerid, -1, "Função Indisponivel no momento :(");
  248.     }
  249.     else if(clickedid == G_TD_Facebook[8]) //pagina principal
  250.     {
  251.         SendClientMessage(playerid, -1, "Função Indisponivel no momento :(");
  252.     }
  253.     else if(clickedid == G_TD_Facebook[9]) //encontrar amigos
  254.     {
  255.         return ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Search", "Digite o nome de seu amigo", "Procurar", "voltar");
  256.     }
  257.     //=========================================================================//
  258.  
  259.     //=========================================================================//
  260.     else if(clickedid == G_TD_Facebook_CONF[2]) //creditos
  261.     {
  262.         Facebook[playerid][ceta]=false;
  263.         for(new b = 0; b < 6; ++b) TextDrawHideForPlayer(playerid, G_TD_Facebook_CONF[b]);
  264.         return ShowPlayerDialog(playerid, 5471, DIALOG_STYLE_TABLIST, "Creditos","a_samp\tSamp Team\na_mysql\tBlueG\n\t\n\t\nScript\tPedro Eduardo\nDesign\tPedro Eduardo","Ok","");
  265.     }
  266.     else if(clickedid == G_TD_Facebook_CONF[3]) //config
  267.     {
  268.         SendClientMessage(playerid, -1, "Função Indisponivel no momento :(");
  269.     }
  270.     else if(clickedid == G_TD_Facebook_CONF[4]) //sair
  271.     {
  272.         //===================// Hud //===================//
  273.         for(new c = 0; c < 11; ++c) TextDrawHideForPlayer(playerid, G_TD_Facebook[c]);
  274.         for(new d = 0; d < 6; ++d) TextDrawHideForPlayer(playerid, G_TD_Facebook_CONF[d]);
  275.         for(new e = 0; e < 3; ++e) PlayerTextDrawHide(playerid, P_TD_Facebook[playerid][e]);
  276.         CancelSelectTextDraw(playerid);
  277.  
  278.         //===================// Login //===================//
  279.         //reset
  280.         Digitou_Login[playerid] = ResetfLogin;
  281.         Facebook[playerid] = resetFacebook;
  282.  
  283.         //2reset
  284.         PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][0],"_");
  285.         PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][1],"_");
  286.         PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][2],"Nome");
  287.         PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][3],"Sobrenome");
  288.         PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][4],"Email");
  289.  
  290.         PlayerTextDrawDestroy(playerid, P_TD_LogarF[playerid][5]);
  291.         P_TD_LogarF[playerid][5] = CreatePlayerTextDraw(playerid,363.000000, 204.000000, "Nova senha");
  292.         PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][5], 255);
  293.         PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][5], 1);
  294.         PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][5], 0.300000, 1.300000);
  295.         PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][5], -1061109505);
  296.         PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][5], 0);
  297.         PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][5], 1);
  298.         PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][5], 0);
  299.         PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][5], 575.00000,22.00000);
  300.         PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][5], true);
  301.  
  302.         PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][6],"Dia/Mes/Ano");
  303.         PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], -1);
  304.         PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], -1);
  305.  
  306.         for(new a = 0; a < 23; ++a) TextDrawShowForPlayer(playerid, G_TD_LogarF[a]);
  307.         for(new b = 0; b < 9; ++b) PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][b]);
  308.         SelectTextDraw(playerid, -1061109505);
  309.         ClearChat(20);
  310.     }
  311.     return 1;
  312. }
  313.  
  314. forward Mysql_check(playerid);
  315. public Mysql_check(playerid)
  316. {
  317.     if(!cache_get_row_count(Conexao)) //se NÃO existir a conta
  318.     {
  319.         mysql_format(Conexao, Query, sizeof(Query), "INSERT INTO FaceConta (Usuario,Senha,Genero,Nascimento,Email) VALUES ('%e','%e','%d','%e','%e')",
  320.         Facebook[playerid][pNick],Facebook[playerid][rSenha],Facebook[playerid][rGenero]?(0):(1),Facebook[playerid][rNascimento],Facebook[playerid][rEmail]);
  321.         new Cache:Temp = mysql_query(Conexao, Query, true);
  322.         Facebook[playerid][ID] = cache_insert_id();
  323.         cache_delete(Temp, Conexao);
  324.  
  325.         new string[42 + 24];
  326.         format(string,42 + 24,"Seu Usuario é: %s! já pode usar sua conta.",Facebook[playerid][pNick]);
  327.         SendClientMessage(playerid, -1, string);
  328.     }
  329.     else //se existir uma conta com este (NOME)
  330.     {
  331.         SendClientMessage(playerid, -1,"Desculpe, mais está conta já existe :'(");
  332.     }
  333.     return 1;
  334. }
  335.  
  336. public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
  337. {
  338.     if(_:playertextid == INVALID_TEXT_DRAW) return CallLocalFunction("OnPlayerClickPlayerTextDraw", "ii", playerid, INVALID_TEXT_DRAW);
  339.  
  340.     //=================// login //=================//
  341.     else if(playertextid == P_TD_LogarF[playerid][0])//usuario ou e-mail
  342.     {
  343.         CancelSelectTextDraw(playerid);
  344.         return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Usuario", "Escreva abaixo seu Usuario ou E-mail!", "Ok", "Fechar");
  345.     }
  346.     else if(playertextid == P_TD_LogarF[playerid][1])//senha
  347.     {
  348.         CancelSelectTextDraw(playerid);
  349.         return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "Senha", "Escreva abaixo sua Senha!", "Ok", "Fechar");
  350.     }
  351.  
  352.     //=================// registro //=================//
  353.     else if(playertextid == P_TD_LogarF[playerid][2])//nome
  354.     {
  355.         CancelSelectTextDraw(playerid);
  356.         return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Nome", "Escreva abaixo seu Nome\npara se registrar", "Ok", "Fechar");
  357.     }
  358.     else if(playertextid == P_TD_LogarF[playerid][3])//sobrenome
  359.     {
  360.         CancelSelectTextDraw(playerid);
  361.         return ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "Sobrenome", "Escreva abaixo seu Sobrenome\npara se registrar", "Ok", "Fechar");
  362.     }
  363.     else if(playertextid == P_TD_LogarF[playerid][4])//email
  364.     {
  365.         CancelSelectTextDraw(playerid);
  366.         return ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "E-mail", "Escreva abaixo um e-mail valido\n\nOBS: usado para ativar/recuperar/e entrar usando-o", "Ok", "Fechar");
  367.     }
  368.     else if(playertextid == P_TD_LogarF[playerid][5])//senha
  369.     {
  370.         CancelSelectTextDraw(playerid);
  371.         return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_PASSWORD, "Senha", "Escreva abaixo uma senha\npara se registrar", "Ok", "Fechar");
  372.     }
  373.     else if(playertextid == P_TD_LogarF[playerid][6])//nascimento
  374.     {
  375.         CancelSelectTextDraw(playerid);
  376.         return ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Nascimento", "Escreva abaixo sua data de nascimento\n\nFormato [DD/MM/AAAA]\npara se registrar", "Ok", "Fechar");
  377.     }
  378.     else if(playertextid == P_TD_LogarF[playerid][7])//feminino
  379.     {
  380.         PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][7]),PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][8]);
  381.         if(Facebook[playerid][rGenero] == true && Digitou_Login[playerid][rgenero] == true) //se já for do genero feminino
  382.         {//tirar a seleção do genero
  383.             Digitou_Login[playerid][rgenero]=false; //não digitou nada
  384.  
  385.             PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], -1);
  386.             SendClientMessage(playerid, -1, "Você não tem um genero.");
  387.         }
  388.         else //se for masculino, virar feminino
  389.         {
  390.             Digitou_Login[playerid][rgenero]=true; //digitou
  391.             Facebook[playerid][rGenero]=true; //feminino
  392.  
  393.             PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], 0);
  394.             PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], -1);
  395.         }
  396.         PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][7]),PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][8]);
  397.     }
  398.     else if(playertextid == P_TD_LogarF[playerid][8])//masculino
  399.     {
  400.         PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][7]),PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][8]);
  401.         if(Facebook[playerid][rGenero] == false && Digitou_Login[playerid][rgenero] == true) //se já for do genero masculino
  402.         {//tirar a seleção do genero
  403.             Digitou_Login[playerid][rgenero]=false; //não digitou nada
  404.  
  405.             PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], -1);
  406.             SendClientMessage(playerid, -1, "Você não tem um genero.");
  407.         }
  408.         else //se for feminino, virar masculino
  409.         {
  410.             Digitou_Login[playerid][rgenero]=true; //digitou
  411.             Facebook[playerid][rGenero]=false; //masculino
  412.  
  413.             PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], 0);
  414.             PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], -1);
  415.         }
  416.         PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][7]),PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][8]);
  417.     }
  418.  
  419.     //===================// Hud //===================//
  420.     else if(playertextid == P_TD_Facebook[playerid][0]) //search
  421.     {
  422.         return ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Search", "Digite o nome de seu amigo", "Procurar", "voltar");
  423.     }
  424.     return 1;
  425. }
  426.  
  427. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  428. {
  429.     switch(dialogid)
  430.     {
  431.         //=================// login //=================//
  432.         case 0://usuario
  433.         {
  434.             if(!response) return SelectTextDraw(playerid, -1061109505),false;
  435.             if(strlen(inputtext) <= 3 || strlen(inputtext) > 24)
  436.             {
  437.                 Digitou_Login[playerid][login]=false;
  438.                 PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][0], "_____");
  439.                 return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Usuario", "Escreva abaixo seu Usuario ou E-mail!", "Ok", "Fechar");
  440.             }
  441.             if(response)
  442.             {
  443.                 PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][0], inputtext);
  444.                 SelectTextDraw(playerid, -1061109505);
  445.  
  446.                 Digitou_Login[playerid][login]=true;
  447.  
  448.                 new string[24];
  449.                 format(string,24,"%s",inputtext);
  450.  
  451.                 Facebook[playerid][pNick]=string;
  452.             }
  453.             return 1;
  454.         }
  455.         case 1://senha
  456.         {
  457.             if(!response) return SelectTextDraw(playerid, -1061109505),false;
  458.             if(strlen(inputtext) <= 3 || strlen(inputtext) > 24)
  459.             {
  460.                 Digitou_Login[playerid][senha]=false;
  461.                 PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][1], "_____");
  462.                 return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Senha", "Escreva abaixo sua Senha!", "Ok", "Fechar");
  463.             }
  464.             if(response)
  465.             {
  466.                 SelectTextDraw(playerid, -1061109505);
  467.  
  468.                 new string[24];
  469.                 format(string,24,"%s",inputtext);
  470.                 Facebook[playerid][pPassword]=string;
  471.  
  472.                 if(strlen(inputtext) < 11)//se o texto for pequeno
  473.                 {
  474.                     for(new i; i < strlen(inputtext); i++) inputtext[i] = '.';
  475.                     PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][1], inputtext);
  476.                 }
  477.                 else PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][1], "...........");//se não
  478.  
  479.                 Digitou_Login[playerid][senha]=true;
  480.             }
  481.             return 1;
  482.         }
  483.         //=================// registro //=================//
  484.         case 2://nome
  485.         {
  486.             if(!response) return SelectTextDraw(playerid, -1061109505),false;
  487.             if(strlen(inputtext) <= 2 || strlen(inputtext) > 10)
  488.             {
  489.                 Digitou_Login[playerid][rnome]=false;
  490.                 PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][2], "Nome");
  491.                 return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "Nome", "Escreva abaixo seu Nome\npara se registrar", "Ok", "Fechar");
  492.             }
  493.             if(response)
  494.             {
  495.                 new string[11];
  496.                 format(string,11,"%s",inputtext);
  497.                 Facebook[playerid][rNick]=string;
  498.  
  499.  
  500.                 PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][2], inputtext);
  501.                 SelectTextDraw(playerid, -1061109505);
  502.  
  503.                 Digitou_Login[playerid][rnome]=true;
  504.             }
  505.             return 1;
  506.         }
  507.         case 3://sobrenome
  508.         {
  509.             if(!response) return SelectTextDraw(playerid, -1061109505),false;
  510.             if(strlen(inputtext) <= 2 || strlen(inputtext) > 10)
  511.             {
  512.                 Digitou_Login[playerid][rsobrenome]=false;
  513.                 PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][3], "Sobrenome");
  514.                 return ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "Sobrenome", "Escreva abaixo seu Sobrenome\npara se registrar", "Ok", "Fechar");
  515.             }
  516.             if(response)
  517.             {
  518.                 new string[11];
  519.                 format(string,11,"%s",inputtext);
  520.                 Facebook[playerid][rSobre]=string;
  521.  
  522.                 PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][3], inputtext);
  523.                 SelectTextDraw(playerid, -1061109505);
  524.  
  525.                 Digitou_Login[playerid][rsobrenome]=true;
  526.             }
  527.             return 1;
  528.         }
  529.         case 4://e-mail
  530.         {
  531.             if(!response) return SelectTextDraw(playerid, -1061109505),false;
  532.             if(strlen(inputtext) < 5 || strlen(inputtext) > 40)
  533.             {
  534.                 Digitou_Login[playerid][remail]=false;
  535.                 PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][4], "Email");
  536.                 return ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "E-mail", "Escreva abaixo um e-mail valido\n\nOBS: usado para ativar/recuperar/e entrar usando-o", "Ok", "Fechar");
  537.             }
  538.             if(response)
  539.             {
  540.                 if(strfind(inputtext, "@", true) != -1 && strfind(inputtext, ".com", true) != -1)//se o e-mail digitado tiver @ e .com(continue)
  541.                 {
  542.                     new email[40], charpos;
  543.                     format(email, sizeof(email), "%s", inputtext);
  544.                     Facebook[playerid][rEmail]=email;
  545.                     charpos = strfind(email, "@");
  546.                     if(charpos != -1)
  547.                     strdel(email, charpos, charpos +1);
  548.                     strins(email, "(a)", charpos);
  549.  
  550.                     PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][4], email);
  551.  
  552.                     Digitou_Login[playerid][remail]=true;
  553.                     return SelectTextDraw(playerid, -1061109505);
  554.                 }
  555.                 else
  556.                 {
  557.                     PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][4], "Email");
  558.                     return ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "E-mail", "Escreva abaixo um e-mail valido\n\nOBS: usado para ativar/recuperar/e entrar usando-o", "Ok", "Fechar");
  559.                 }
  560.             }
  561.             return 1;
  562.         }
  563.         case 5://senha
  564.         {
  565.             if(!response) return SelectTextDraw(playerid, -1061109505),false;
  566.             if(strlen(inputtext) < 3 || strlen(inputtext) > 24)
  567.             {
  568.                 PlayerTextDrawDestroy(playerid, P_TD_LogarF[playerid][5]);
  569.                 P_TD_LogarF[playerid][5] = CreatePlayerTextDraw(playerid,363.000000, 204.000000, "Nova senha");
  570.                 PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][5], 255);
  571.                 PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][5], 1);
  572.                 PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][5], 0.300000, 1.300000);
  573.                 PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][5], -1061109505);
  574.                 PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][5], 0);
  575.                 PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][5], 1);
  576.                 PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][5], 0);
  577.                 PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][5], 575.00000,22.00000);
  578.                 PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][5], true);
  579.                 PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][5]);
  580.  
  581.                 Digitou_Login[playerid][rsenha]=false;
  582.                 return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "Senha", "Escreva abaixo uma senha\npara se registrar", "Ok", "Fechar");
  583.             }
  584.             if(response)
  585.             {
  586.                 SelectTextDraw(playerid, -1061109505);
  587.  
  588.                 new string[24];
  589.                 format(string,24,"%s",inputtext);
  590.                 Facebook[playerid][rSenha]=string;
  591.  
  592.                 PlayerTextDrawDestroy(playerid, P_TD_LogarF[playerid][5]);
  593.                 P_TD_LogarF[playerid][5] = CreatePlayerTextDraw(playerid,363.000000, 186.000000, "Nova senha");
  594.                 PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][5], 255);
  595.                 PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][5], 1);
  596.                 PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][5], 0.750000, 3.400002);
  597.                 PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][5], -1061109505);
  598.                 PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][5], 0);
  599.                 PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][5], 1);
  600.                 PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][5], 0);
  601.                 PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][5], 575.00000,22.00000);
  602.                 PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][5], true);
  603.  
  604.                 if(strlen(inputtext) < 40)//se o texto for pequeno
  605.                 {
  606.                     for(new i; i < strlen(inputtext); i++) inputtext[i] = '.';
  607.                     PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][5], inputtext);
  608.                 }
  609.                 else PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][5], "........................................");//se não
  610.                 PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][5]);
  611.                 Digitou_Login[playerid][rsenha]=true;
  612.             }
  613.             return 1;
  614.         }
  615.         case 6://nascimento
  616.         {
  617.             if(!response) return SelectTextDraw(playerid, -1061109505),false;
  618.             if(strlen(inputtext) <= 9 || strlen(inputtext) >= 11 )
  619.             {
  620.                 Digitou_Login[playerid][rnascimento]=false;
  621.                 PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][6], "Dia/Mes/Ano");
  622.                 return ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Nascimento", "Escreva abaixo sua data de nascimento\n\nFormato [DD/MM/AAAA]\npara se registrar", "Ok", "Fechar");
  623.             }
  624.             if(response)
  625.             {
  626.                 if(strfind(inputtext, "/", true) != -1)
  627.                 {
  628.                     new string[11];
  629.                     format(string,11,"%s",inputtext);
  630.                     Facebook[playerid][rNascimento]=string;
  631.  
  632.                     PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][6], inputtext);
  633.                     SelectTextDraw(playerid, -1061109505);
  634.  
  635.                     Digitou_Login[playerid][rnascimento]=true;
  636.                 }
  637.                 else return ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Nascimento", "Escreva abaixo sua data de nascimento\n\nFormato [DD/MM/AAAA]\npara se registrar", "Ok", "Fechar");
  638.             }
  639.             return 1;
  640.         }
  641.         //=================// hud //=================//
  642.         case 7:
  643.         {
  644.             if(!response) return false; //voltar
  645.             else
  646.             {
  647.                 mysql_format(Conexao, Query, sizeof(Query), "SELECT * FROM FaceConta WHERE usuario='%e' LIMIT 1", inputtext);
  648.                 new Cache:Temp = mysql_query(Conexao, Query, true);
  649.                 if(cache_get_row_count(Conexao))
  650.                 {
  651.                     PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][0], inputtext);
  652.                     new Strdialog[140];
  653.                     format(Strdialog,sizeof(Strdialog),"Encontramos seu amigo'%s'!",inputtext);
  654.                     ShowPlayerDialog(playerid, 201,DIALOG_STYLE_MSGBOX,"ACHEI",Strdialog,"Ok","");
  655.                 }
  656.                 else
  657.                 {
  658.                     ShowPlayerDialog(playerid, 201,DIALOG_STYLE_MSGBOX,":(","não Encontramos a conta do seu amigo\nVerifique se digitou corretamente o nome dele\nE tente novamente","Ok","");
  659.                     PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][0], "Pesquisar no facebook");
  660.                 }
  661.                 cache_delete(Temp, Conexao);
  662.                 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
  663.             }
  664.         }
  665.     }
  666.     return 0;
  667. }
  668.  
  669. G_TDraw_LogarF()
  670. {
  671.     //=================// login //=================//
  672.     G_TD_LogarF[0] = TextDrawCreate(641.000000, 0.000000, "_");
  673.     TextDrawBackgroundColor(G_TD_LogarF[0], 255);
  674.     TextDrawFont(G_TD_LogarF[0], 1);
  675.     TextDrawLetterSize(G_TD_LogarF[0], 0.500000, 49.799980);
  676.     TextDrawColor(G_TD_LogarF[0], -1);
  677.     TextDrawSetOutline(G_TD_LogarF[0], 0);
  678.     TextDrawSetProportional(G_TD_LogarF[0], 1);
  679.     TextDrawSetShadow(G_TD_LogarF[0], 1);
  680.     TextDrawUseBox(G_TD_LogarF[0], 1);
  681.     TextDrawBoxColor(G_TD_LogarF[0], -656677889);
  682.     TextDrawTextSize(G_TD_LogarF[0], -4.000000, 0.000000);
  683.     TextDrawSetSelectable(G_TD_LogarF[0], 0);
  684.  
  685.     G_TD_LogarF[1] = TextDrawCreate(641.000000, 0.000000, "_");
  686.     TextDrawBackgroundColor(G_TD_LogarF[1], 255);
  687.     TextDrawFont(G_TD_LogarF[1], 1);
  688.     TextDrawLetterSize(G_TD_LogarF[1], 0.500000, 5.999999);
  689.     TextDrawColor(G_TD_LogarF[1], -1);
  690.     TextDrawSetOutline(G_TD_LogarF[1], 0);
  691.     TextDrawSetProportional(G_TD_LogarF[1], 1);
  692.     TextDrawSetShadow(G_TD_LogarF[1], 1);
  693.     TextDrawUseBox(G_TD_LogarF[1], 1);
  694.     TextDrawBoxColor(G_TD_LogarF[1], 1113230591);
  695.     TextDrawTextSize(G_TD_LogarF[1], -4.000000, 0.000000);
  696.     TextDrawSetSelectable(G_TD_LogarF[1], 0);
  697.  
  698.     G_TD_LogarF[2] = TextDrawCreate(69.000000, 20.000000, "facebook");
  699.     TextDrawBackgroundColor(G_TD_LogarF[2], 842150450);
  700.     TextDrawFont(G_TD_LogarF[2], 1);
  701.     TextDrawLetterSize(G_TD_LogarF[2], 0.629999, 3.199998);
  702.     TextDrawColor(G_TD_LogarF[2], -1);
  703.     TextDrawSetOutline(G_TD_LogarF[2], 1);
  704.     TextDrawSetProportional(G_TD_LogarF[2], 1);
  705.     TextDrawSetSelectable(G_TD_LogarF[2], 0);
  706.  
  707.     G_TD_LogarF[3] = TextDrawCreate(456.000000, 28.000000, "______________________"); //usuario
  708.     TextDrawBackgroundColor(G_TD_LogarF[3], 255);
  709.     TextDrawFont(G_TD_LogarF[3], 1);
  710.     TextDrawLetterSize(G_TD_LogarF[3], 0.500000, 1.000000);
  711.     TextDrawColor(G_TD_LogarF[3], -36);
  712.     TextDrawSetOutline(G_TD_LogarF[3], 0);
  713.     TextDrawSetProportional(G_TD_LogarF[3], 1);
  714.     TextDrawSetShadow(G_TD_LogarF[3], 1);
  715.     TextDrawUseBox(G_TD_LogarF[3], 1);
  716.     TextDrawBoxColor(G_TD_LogarF[3], -36);
  717.     TextDrawTextSize(G_TD_LogarF[3], 365.000000, 20.000000);
  718.     TextDrawSetSelectable(G_TD_LogarF[3], 0);
  719.  
  720.     G_TD_LogarF[4] = TextDrawCreate(544.000000, 28.000000, "______________________"); //senha
  721.     TextDrawBackgroundColor(G_TD_LogarF[4], 255);
  722.     TextDrawFont(G_TD_LogarF[4], 1);
  723.     TextDrawLetterSize(G_TD_LogarF[4], 0.500000, 1.000000);
  724.     TextDrawColor(G_TD_LogarF[4], -36);
  725.     TextDrawSetOutline(G_TD_LogarF[4], 0);
  726.     TextDrawSetProportional(G_TD_LogarF[4], 1);
  727.     TextDrawSetShadow(G_TD_LogarF[4], 1);
  728.     TextDrawUseBox(G_TD_LogarF[4], 1);
  729.     TextDrawBoxColor(G_TD_LogarF[4], -36);
  730.     TextDrawTextSize(G_TD_LogarF[4], 460.000000, 20.000000);
  731.     TextDrawSetSelectable(G_TD_LogarF[4], 1);
  732.  
  733.     G_TD_LogarF[5] = TextDrawCreate(367.000000, 13.000000, "Email ou usuario");
  734.     TextDrawBackgroundColor(G_TD_LogarF[5], 255);
  735.     TextDrawFont(G_TD_LogarF[5], 1);
  736.     TextDrawLetterSize(G_TD_LogarF[5], 0.210000, 1.000000);
  737.     TextDrawColor(G_TD_LogarF[5], -16);
  738.     TextDrawSetOutline(G_TD_LogarF[5], 0);
  739.     TextDrawSetProportional(G_TD_LogarF[5], 1);
  740.     TextDrawSetShadow(G_TD_LogarF[5], 0);
  741.     TextDrawSetSelectable(G_TD_LogarF[5], 0);
  742.  
  743.     G_TD_LogarF[6] = TextDrawCreate(462.000000, 13.000000, "Senha");
  744.     TextDrawBackgroundColor(G_TD_LogarF[6], 255);
  745.     TextDrawFont(G_TD_LogarF[6], 1);
  746.     TextDrawLetterSize(G_TD_LogarF[6], 0.210000, 1.000000);
  747.     TextDrawColor(G_TD_LogarF[6], -16);
  748.     TextDrawSetOutline(G_TD_LogarF[6], 0);
  749.     TextDrawSetProportional(G_TD_LogarF[6], 1);
  750.     TextDrawSetShadow(G_TD_LogarF[6], 0);
  751.     TextDrawSetSelectable(G_TD_LogarF[6], 0);
  752.  
  753.     G_TD_LogarF[7] = TextDrawCreate(460.000000, 43.000000, "Esqueceu a conta?");
  754.     TextDrawBackgroundColor(G_TD_LogarF[7], 255);
  755.     TextDrawFont(G_TD_LogarF[7], 1);
  756.     TextDrawLetterSize(G_TD_LogarF[7], 0.200000, 0.899999);
  757.     TextDrawColor(G_TD_LogarF[7], -1716461313);
  758.     TextDrawSetOutline(G_TD_LogarF[7], 0);
  759.     TextDrawSetProportional(G_TD_LogarF[7], 1);
  760.     TextDrawSetShadow(G_TD_LogarF[7], 0);
  761.     TextDrawTextSize(G_TD_LogarF[7], 550.000000, 11.000000);
  762.     TextDrawSetSelectable(G_TD_LogarF[7], 1);
  763.  
  764.     G_TD_LogarF[8] = TextDrawCreate(70.000000, 76.000000, "O Facebook ajuda voce a se conectar e ~n~compartilhar com as pessoas que fazem parte ~n~da sua vida.");
  765.     TextDrawBackgroundColor(G_TD_LogarF[8], 255);
  766.     TextDrawFont(G_TD_LogarF[8], 1);
  767.     TextDrawLetterSize(G_TD_LogarF[8], 0.310000, 1.700000);
  768.     TextDrawColor(G_TD_LogarF[8], 13020);
  769.     TextDrawSetOutline(G_TD_LogarF[8], 0);
  770.     TextDrawSetProportional(G_TD_LogarF[8], 1);
  771.     TextDrawSetShadow(G_TD_LogarF[8], 0);
  772.     TextDrawSetSelectable(G_TD_LogarF[8], 0);
  773.  
  774.     G_TD_LogarF[9] = TextDrawCreate(358.000000, 76.000000, "Abra uma conta");
  775.     TextDrawBackgroundColor(G_TD_LogarF[9], 255);
  776.     TextDrawFont(G_TD_LogarF[9], 1);
  777.     TextDrawLetterSize(G_TD_LogarF[9], 0.450000, 2.500000);
  778.     TextDrawColor(G_TD_LogarF[9], 200);
  779.     TextDrawSetOutline(G_TD_LogarF[9], 0);
  780.     TextDrawSetProportional(G_TD_LogarF[9], 1);
  781.     TextDrawSetShadow(G_TD_LogarF[9], 0);
  782.     TextDrawSetSelectable(G_TD_LogarF[9], 0);
  783.  
  784.     G_TD_LogarF[10] = TextDrawCreate(357.000000, 101.000000, "E gratuito e sempre sera.");
  785.     TextDrawBackgroundColor(G_TD_LogarF[10], 255);
  786.     TextDrawFont(G_TD_LogarF[10], 1);
  787.     TextDrawLetterSize(G_TD_LogarF[10], 0.270000, 1.500000);
  788.     TextDrawColor(G_TD_LogarF[10], 200);
  789.     TextDrawSetOutline(G_TD_LogarF[10], 0);
  790.     TextDrawSetProportional(G_TD_LogarF[10], 1);
  791.     TextDrawSetShadow(G_TD_LogarF[10], 0);
  792.     TextDrawSetSelectable(G_TD_LogarF[10], 0);
  793.  
  794.     G_TD_LogarF[11] = TextDrawCreate(466.000000, 138.000000, "______________________");//nome
  795.     TextDrawBackgroundColor(G_TD_LogarF[11], 255);
  796.     TextDrawFont(G_TD_LogarF[11], 1);
  797.     TextDrawLetterSize(G_TD_LogarF[11], 0.500000, 1.600000);
  798.     TextDrawColor(G_TD_LogarF[11], -36);
  799.     TextDrawSetOutline(G_TD_LogarF[11], 0);
  800.     TextDrawSetProportional(G_TD_LogarF[11], 1);
  801.     TextDrawSetShadow(G_TD_LogarF[11], 1);
  802.     TextDrawUseBox(G_TD_LogarF[11], 1);
  803.     TextDrawBoxColor(G_TD_LogarF[11], -36);
  804.     TextDrawTextSize(G_TD_LogarF[11], 357.000000, 20.000000);
  805.     TextDrawSetSelectable(G_TD_LogarF[11], 1);
  806.  
  807.     G_TD_LogarF[12] = TextDrawCreate(580.000000, 138.000000, "______________________");//sobrenome
  808.     TextDrawBackgroundColor(G_TD_LogarF[12], 255);
  809.     TextDrawFont(G_TD_LogarF[12], 1);
  810.     TextDrawLetterSize(G_TD_LogarF[12], 0.500000, 1.700000);
  811.     TextDrawColor(G_TD_LogarF[12], -36);
  812.     TextDrawSetOutline(G_TD_LogarF[12], 0);
  813.     TextDrawSetProportional(G_TD_LogarF[12], 1);
  814.     TextDrawSetShadow(G_TD_LogarF[12], 1);
  815.     TextDrawUseBox(G_TD_LogarF[12], 1);
  816.     TextDrawBoxColor(G_TD_LogarF[12], -36);
  817.     TextDrawTextSize(G_TD_LogarF[12], 470.000000, 20.000000);
  818.     TextDrawSetSelectable(G_TD_LogarF[12], 1);
  819.  
  820.     G_TD_LogarF[13] = TextDrawCreate(580.000000, 168.000000, "______________________");//email
  821.     TextDrawBackgroundColor(G_TD_LogarF[13], 255);
  822.     TextDrawFont(G_TD_LogarF[13], 1);
  823.     TextDrawLetterSize(G_TD_LogarF[13], 0.500000, 1.700000);
  824.     TextDrawColor(G_TD_LogarF[13], -36);
  825.     TextDrawSetOutline(G_TD_LogarF[13], 0);
  826.     TextDrawSetProportional(G_TD_LogarF[13], 1);
  827.     TextDrawSetShadow(G_TD_LogarF[13], 1);
  828.     TextDrawUseBox(G_TD_LogarF[13], 1);
  829.     TextDrawBoxColor(G_TD_LogarF[13], -36);
  830.     TextDrawTextSize(G_TD_LogarF[13], 357.000000, 20.000000);
  831.     TextDrawSetSelectable(G_TD_LogarF[13], 1);
  832.  
  833.     G_TD_LogarF[14] = TextDrawCreate(580.000000, 201.000000, "______________________");//senha
  834.     TextDrawBackgroundColor(G_TD_LogarF[14], 255);
  835.     TextDrawFont(G_TD_LogarF[14], 1);
  836.     TextDrawLetterSize(G_TD_LogarF[14], 0.500000, 1.700000);
  837.     TextDrawColor(G_TD_LogarF[14], -36);
  838.     TextDrawSetOutline(G_TD_LogarF[14], 0);
  839.     TextDrawSetProportional(G_TD_LogarF[14], 1);
  840.     TextDrawSetShadow(G_TD_LogarF[14], 1);
  841.     TextDrawUseBox(G_TD_LogarF[14], 1);
  842.     TextDrawBoxColor(G_TD_LogarF[14], -36);
  843.     TextDrawTextSize(G_TD_LogarF[14], 357.000000, 20.000000);
  844.     TextDrawSetSelectable(G_TD_LogarF[14], 1);
  845.  
  846.     G_TD_LogarF[15] = TextDrawCreate(432.000000, 245.000000, "______________________"); //nascimento
  847.     TextDrawBackgroundColor(G_TD_LogarF[15], 255);
  848.     TextDrawFont(G_TD_LogarF[15], 1);
  849.     TextDrawLetterSize(G_TD_LogarF[15], 0.500000, 1.700000);
  850.     TextDrawColor(G_TD_LogarF[15], -36);
  851.     TextDrawSetOutline(G_TD_LogarF[15], 0);
  852.     TextDrawSetProportional(G_TD_LogarF[15], 1);
  853.     TextDrawSetShadow(G_TD_LogarF[15], 1);
  854.     TextDrawUseBox(G_TD_LogarF[15], 1);
  855.     TextDrawBoxColor(G_TD_LogarF[15], -36);
  856.     TextDrawTextSize(G_TD_LogarF[15], 357.000000, 20.000000);
  857.     TextDrawSetSelectable(G_TD_LogarF[15], 1);
  858.  
  859.     G_TD_LogarF[16] = TextDrawCreate(357.000000, 224.000000, "Data de nascimento");
  860.     TextDrawBackgroundColor(G_TD_LogarF[16], 255);
  861.     TextDrawFont(G_TD_LogarF[16], 1);
  862.     TextDrawLetterSize(G_TD_LogarF[16], 0.270000, 1.500000);
  863.     TextDrawColor(G_TD_LogarF[16], 200);
  864.     TextDrawSetOutline(G_TD_LogarF[16], 0);
  865.     TextDrawSetProportional(G_TD_LogarF[16], 1);
  866.     TextDrawSetShadow(G_TD_LogarF[16], 0);
  867.     TextDrawSetSelectable(G_TD_LogarF[16], 0);
  868.  
  869.     G_TD_LogarF[17] = TextDrawCreate(371.000000, 271.000000, "Feminino_____Masculino");
  870.     TextDrawBackgroundColor(G_TD_LogarF[17], 255);
  871.     TextDrawFont(G_TD_LogarF[17], 1);
  872.     TextDrawLetterSize(G_TD_LogarF[17], 0.270000, 1.500000);
  873.     TextDrawColor(G_TD_LogarF[17], 200);
  874.     TextDrawSetOutline(G_TD_LogarF[17], 0);
  875.     TextDrawSetProportional(G_TD_LogarF[17], 1);
  876.     TextDrawSetShadow(G_TD_LogarF[17], 0);
  877.     TextDrawSetSelectable(G_TD_LogarF[17], 0);
  878.  
  879.     G_TD_LogarF[18] = TextDrawCreate(358.000000, 305.000000, "ld_spac:white");
  880.     TextDrawBackgroundColor(G_TD_LogarF[18], 255);
  881.     TextDrawFont(G_TD_LogarF[18], 4);
  882.     TextDrawLetterSize(G_TD_LogarF[18], 0.500000, 1.000000);
  883.     TextDrawColor(G_TD_LogarF[18], 762982399);
  884.     TextDrawSetOutline(G_TD_LogarF[18], 0);
  885.     TextDrawSetProportional(G_TD_LogarF[18], 1);
  886.     TextDrawSetShadow(G_TD_LogarF[18], 1);
  887.     TextDrawUseBox(G_TD_LogarF[18], 1);
  888.     TextDrawBoxColor(G_TD_LogarF[18], 865875455);
  889.     TextDrawTextSize(G_TD_LogarF[18], 87.000000, 20.000000);
  890.     TextDrawSetSelectable(G_TD_LogarF[18], 0);
  891.  
  892.     G_TD_LogarF[19] = TextDrawCreate(365.000000, 308.000000, "Abrir uma conta");
  893.     TextDrawBackgroundColor(G_TD_LogarF[19], 255);
  894.     TextDrawFont(G_TD_LogarF[19], 1);
  895.     TextDrawLetterSize(G_TD_LogarF[19], 0.270000, 1.500000);
  896.     TextDrawColor(G_TD_LogarF[19], -16);
  897.     TextDrawSetOutline(G_TD_LogarF[19], 0);
  898.     TextDrawSetProportional(G_TD_LogarF[19], 1);
  899.     TextDrawSetShadow(G_TD_LogarF[19], 0);
  900.     TextDrawTextSize(G_TD_LogarF[19], 450.000000, 20.000000);
  901.     TextDrawSetSelectable(G_TD_LogarF[19], true);
  902.  
  903.     G_TD_LogarF[20] = TextDrawCreate(358.000000, 305.000000, "ld_spac:white");
  904.     TextDrawBackgroundColor(G_TD_LogarF[20], 255);
  905.     TextDrawFont(G_TD_LogarF[20], 4);
  906.     TextDrawLetterSize(G_TD_LogarF[20], 0.500000, 0.899999);
  907.     TextDrawColor(G_TD_LogarF[20], 932264447);
  908.     TextDrawSetOutline(G_TD_LogarF[20], 0);
  909.     TextDrawSetProportional(G_TD_LogarF[20], 1);
  910.     TextDrawSetShadow(G_TD_LogarF[20], 1);
  911.     TextDrawUseBox(G_TD_LogarF[20], 1);
  912.     TextDrawBoxColor(G_TD_LogarF[20], 255);
  913.     TextDrawTextSize(G_TD_LogarF[20], 87.000000, 11.000000);
  914.     TextDrawSetSelectable(G_TD_LogarF[20], 0);
  915.  
  916.     G_TD_LogarF[21] = TextDrawCreate(553.000000, 26.000000, "ld_spac:white");
  917.     TextDrawBackgroundColor(G_TD_LogarF[21], 255);
  918.     TextDrawFont(G_TD_LogarF[21], 4);
  919.     TextDrawLetterSize(G_TD_LogarF[21], 0.500000, 1.000000);
  920.     TextDrawColor(G_TD_LogarF[21], 1315945215);
  921.     TextDrawSetOutline(G_TD_LogarF[21], 0);
  922.     TextDrawSetProportional(G_TD_LogarF[21], 1);
  923.     TextDrawSetShadow(G_TD_LogarF[21], 1);
  924.     TextDrawUseBox(G_TD_LogarF[21], 1);
  925.     TextDrawBoxColor(G_TD_LogarF[21], 255);
  926.     TextDrawTextSize(G_TD_LogarF[21], 27.000000, 13.000000);
  927.     TextDrawSetSelectable(G_TD_LogarF[21], 0);
  928.  
  929.     G_TD_LogarF[22] = TextDrawCreate(555.000000, 27.000000, "Entrar");
  930.     TextDrawBackgroundColor(G_TD_LogarF[22], 255);
  931.     TextDrawFont(G_TD_LogarF[22], 1);
  932.     TextDrawLetterSize(G_TD_LogarF[22], 0.230000, 1.200000);
  933.     TextDrawColor(G_TD_LogarF[22], -16);
  934.     TextDrawSetOutline(G_TD_LogarF[22], 0);
  935.     TextDrawSetProportional(G_TD_LogarF[22], 1);
  936.     TextDrawSetShadow(G_TD_LogarF[22], 0);
  937.     TextDrawTextSize(G_TD_LogarF[22], 585.000000, 20.000000);
  938.     TextDrawSetSelectable(G_TD_LogarF[22], 1);
  939.  
  940.     //=================// hud //=================//
  941.     G_TD_Facebook[0] = TextDrawCreate(642.000000, 1.000000, "~fundo~");
  942.     TextDrawBackgroundColor(G_TD_Facebook[0], 255);
  943.     TextDrawFont(G_TD_Facebook[0], 1);
  944.     TextDrawLetterSize(G_TD_Facebook[0], 0.500000, 2.299998);
  945.     TextDrawColor(G_TD_Facebook[0], -1);
  946.     TextDrawSetOutline(G_TD_Facebook[0], 0);
  947.     TextDrawSetProportional(G_TD_Facebook[0], 1);
  948.     TextDrawSetShadow(G_TD_Facebook[0], 1);
  949.     TextDrawUseBox(G_TD_Facebook[0], 1);
  950.     TextDrawBoxColor(G_TD_Facebook[0], 1113230591);
  951.     TextDrawTextSize(G_TD_Facebook[0], -5.000000, 0.000000);
  952.     TextDrawSetSelectable(G_TD_Facebook[0], 0);
  953.  
  954.     G_TD_Facebook[1] = TextDrawCreate(21.000000, 7.000000, "~logo~");
  955.     TextDrawBackgroundColor(G_TD_Facebook[1], 255);
  956.     TextDrawFont(G_TD_Facebook[1], 1);
  957.     TextDrawLetterSize(G_TD_Facebook[1], 0.500000, 1.000000);
  958.     TextDrawColor(G_TD_Facebook[1], 505303240);
  959.     TextDrawSetOutline(G_TD_Facebook[1], 0);
  960.     TextDrawSetProportional(G_TD_Facebook[1], 1);
  961.     TextDrawSetShadow(G_TD_Facebook[1], 0);
  962.     TextDrawUseBox(G_TD_Facebook[1], 1);
  963.     TextDrawBoxColor(G_TD_Facebook[1], -589505316);
  964.     TextDrawTextSize(G_TD_Facebook[1], 30.000000, 0.000000);
  965.     TextDrawSetSelectable(G_TD_Facebook[1], 0);
  966.  
  967.     G_TD_Facebook[2] = TextDrawCreate(253.000000, 8.000000, "_"); //search
  968.     TextDrawBackgroundColor(G_TD_Facebook[2], 255);
  969.     TextDrawFont(G_TD_Facebook[2], 1);
  970.     TextDrawLetterSize(G_TD_Facebook[2], 0.500000, 0.8);
  971.     TextDrawColor(G_TD_Facebook[2], 505303240);
  972.     TextDrawSetOutline(G_TD_Facebook[2], 0);
  973.     TextDrawSetProportional(G_TD_Facebook[2], 1);
  974.     TextDrawSetShadow(G_TD_Facebook[2], 0);
  975.     TextDrawUseBox(G_TD_Facebook[2], 1);
  976.     TextDrawBoxColor(G_TD_Facebook[2], -589505316);
  977.     TextDrawTextSize(G_TD_Facebook[2], 35.000000, 15.000000);
  978.     TextDrawSetSelectable(G_TD_Facebook[2], 1);
  979.  
  980.     G_TD_Facebook[3] = TextDrawCreate(24.000000, 2.000000, "f");
  981.     TextDrawBackgroundColor(G_TD_Facebook[3], 255);
  982.     TextDrawFont(G_TD_Facebook[3], 1);
  983.     TextDrawLetterSize(G_TD_Facebook[3], 0.439999, 2.099998);
  984.     TextDrawColor(G_TD_Facebook[3], 505308380);
  985.     TextDrawSetOutline(G_TD_Facebook[3], 0);
  986.     TextDrawSetProportional(G_TD_Facebook[3], 1);
  987.     TextDrawSetShadow(G_TD_Facebook[3], 0);
  988.     TextDrawSetSelectable(G_TD_Facebook[3], 0);
  989.  
  990.     G_TD_Facebook[4] = TextDrawCreate(238.000000, 8.000000, "O");
  991.     TextDrawBackgroundColor(G_TD_Facebook[4], 255);
  992.     TextDrawFont(G_TD_Facebook[4], 1);
  993.     TextDrawLetterSize(G_TD_Facebook[4], 0.319999, 0.599998);
  994.     TextDrawColor(G_TD_Facebook[4], 1684301020);
  995.     TextDrawSetOutline(G_TD_Facebook[4], 0);
  996.     TextDrawSetProportional(G_TD_Facebook[4], 1);
  997.     TextDrawSetShadow(G_TD_Facebook[4], 0);
  998.     TextDrawSetSelectable(G_TD_Facebook[4], 0);
  999.  
  1000.     G_TD_Facebook[5] = TextDrawCreate(248.000000, 12.000000, "/");
  1001.     TextDrawBackgroundColor(G_TD_Facebook[5], 255);
  1002.     TextDrawFont(G_TD_Facebook[5], 1);
  1003.     TextDrawLetterSize(G_TD_Facebook[5], -0.339998, 0.400000);
  1004.     TextDrawColor(G_TD_Facebook[5], 1684301020);
  1005.     TextDrawSetOutline(G_TD_Facebook[5], 0);
  1006.     TextDrawSetProportional(G_TD_Facebook[5], 1);
  1007.     TextDrawSetShadow(G_TD_Facebook[5], 0);
  1008.     TextDrawSetSelectable(G_TD_Facebook[5], 0);
  1009.  
  1010.     G_TD_Facebook[6] = TextDrawCreate(601.000000, 10.000000, "ld_beat:down");
  1011.     TextDrawBackgroundColor(G_TD_Facebook[6], 255);
  1012.     TextDrawFont(G_TD_Facebook[6], 4);
  1013.     TextDrawLetterSize(G_TD_Facebook[6], 0.500000, 1.000000);
  1014.     TextDrawColor(G_TD_Facebook[6], -1061109505);
  1015.     TextDrawSetOutline(G_TD_Facebook[6], 0);
  1016.     TextDrawSetProportional(G_TD_Facebook[6], 1);
  1017.     TextDrawSetShadow(G_TD_Facebook[6], 1);
  1018.     TextDrawUseBox(G_TD_Facebook[6], 1);
  1019.     TextDrawBoxColor(G_TD_Facebook[6], 255);
  1020.     TextDrawTextSize(G_TD_Facebook[6], 13.000000, 8.000000);
  1021.     TextDrawSetSelectable(G_TD_Facebook[6], 1);
  1022.  
  1023.     G_TD_Facebook[7] = TextDrawCreate(302.000000, 4.000000, "ld_spac:white");
  1024.     TextDrawBackgroundColor(G_TD_Facebook[7], 255);
  1025.     TextDrawFont(G_TD_Facebook[7], 4);
  1026.     TextDrawLetterSize(G_TD_Facebook[7], 0.500000, 1.799998);
  1027.     TextDrawColor(G_TD_Facebook[7], 0x425A8CFF);
  1028.     TextDrawSetOutline(G_TD_Facebook[7], 0);
  1029.     TextDrawSetProportional(G_TD_Facebook[7], 1);
  1030.     TextDrawSetShadow(G_TD_Facebook[7], 0);
  1031.     TextDrawUseBox(G_TD_Facebook[7], 1);
  1032.     TextDrawBoxColor(G_TD_Facebook[7], 0x425A8CFF);
  1033.     TextDrawTextSize(G_TD_Facebook[7], 92.000000, 19.000000);
  1034.     TextDrawSetSelectable(G_TD_Facebook[7], 1);
  1035.  
  1036.     G_TD_Facebook[8] = TextDrawCreate(394.000000, 4.000000, "ld_spac:white");
  1037.     TextDrawBackgroundColor(G_TD_Facebook[8], 255);
  1038.     TextDrawFont(G_TD_Facebook[8], 4);
  1039.     TextDrawLetterSize(G_TD_Facebook[8], 0.500000, 1.799998);
  1040.     TextDrawColor(G_TD_Facebook[8], 0x425A8CFF);
  1041.     TextDrawSetOutline(G_TD_Facebook[8], 0);
  1042.     TextDrawSetProportional(G_TD_Facebook[8], 1);
  1043.     TextDrawSetShadow(G_TD_Facebook[8], 0);
  1044.     TextDrawUseBox(G_TD_Facebook[8], 1);
  1045.     TextDrawBoxColor(G_TD_Facebook[8], 0x425A8CFF);
  1046.     TextDrawTextSize(G_TD_Facebook[8], 60.000000, 19.000000);
  1047.     TextDrawSetSelectable(G_TD_Facebook[8], 1);
  1048.  
  1049.     G_TD_Facebook[9] = TextDrawCreate(454.000000, 4.000000, "ld_spac:white");
  1050.     TextDrawBackgroundColor(G_TD_Facebook[9], 255);
  1051.     TextDrawFont(G_TD_Facebook[9], 4);
  1052.     TextDrawLetterSize(G_TD_Facebook[9], 0.500000, 1.799998);
  1053.     TextDrawColor(G_TD_Facebook[9], 0x425A8CFF);
  1054.     TextDrawSetOutline(G_TD_Facebook[9], 0);
  1055.     TextDrawSetProportional(G_TD_Facebook[9], 1);
  1056.     TextDrawSetShadow(G_TD_Facebook[9], 0);
  1057.     TextDrawUseBox(G_TD_Facebook[9], 1);
  1058.     TextDrawBoxColor(G_TD_Facebook[9], 0x425A8CFF);
  1059.     TextDrawTextSize(G_TD_Facebook[9], 77.000000, 19.000000);
  1060.     TextDrawSetSelectable(G_TD_Facebook[9], 1);
  1061.  
  1062.     G_TD_Facebook[10] = TextDrawCreate(399.000000, 9.000000, "Pagina inicial__Encontrar amigos");
  1063.     TextDrawBackgroundColor(G_TD_Facebook[10], 255);
  1064.     TextDrawFont(G_TD_Facebook[10], 1);
  1065.     TextDrawLetterSize(G_TD_Facebook[10], 0.239998, 0.799996);
  1066.     TextDrawColor(G_TD_Facebook[10], -589505281);
  1067.     TextDrawSetOutline(G_TD_Facebook[10], 0);
  1068.     TextDrawSetProportional(G_TD_Facebook[10], 1);
  1069.     TextDrawSetShadow(G_TD_Facebook[10], 0);
  1070.     TextDrawSetSelectable(G_TD_Facebook[10], 0);
  1071.     //=========================================================================//
  1072.  
  1073.     //=========================================================================//
  1074.     G_TD_Facebook_CONF[0] = TextDrawCreate(618.000000, 28.000000, "_");
  1075.     TextDrawBackgroundColor(G_TD_Facebook_CONF[0], 255);
  1076.     TextDrawFont(G_TD_Facebook_CONF[0], 1);
  1077.     TextDrawLetterSize(G_TD_Facebook_CONF[0], 0.500000, 6.699998);
  1078.     TextDrawColor(G_TD_Facebook_CONF[0], -1768515876);
  1079.     TextDrawSetOutline(G_TD_Facebook_CONF[0], 0);
  1080.     TextDrawSetProportional(G_TD_Facebook_CONF[0], 1);
  1081.     TextDrawSetShadow(G_TD_Facebook_CONF[0], 0);
  1082.     TextDrawUseBox(G_TD_Facebook_CONF[0], 1);
  1083.     TextDrawBoxColor(G_TD_Facebook_CONF[0], 2105376255);
  1084.     TextDrawTextSize(G_TD_Facebook_CONF[0], 529.000000, 3.000000);
  1085.     TextDrawSetSelectable(G_TD_Facebook_CONF[0], 0);
  1086.  
  1087.     G_TD_Facebook_CONF[1] = TextDrawCreate(617.000000, 29.000000, "_");
  1088.     TextDrawBackgroundColor(G_TD_Facebook_CONF[1], 255);
  1089.     TextDrawFont(G_TD_Facebook_CONF[1], 1);
  1090.     TextDrawLetterSize(G_TD_Facebook_CONF[1], 0.500000, 6.499999);
  1091.     TextDrawColor(G_TD_Facebook_CONF[1], 505303240);
  1092.     TextDrawSetOutline(G_TD_Facebook_CONF[1], 0);
  1093.     TextDrawSetProportional(G_TD_Facebook_CONF[1], 1);
  1094.     TextDrawSetShadow(G_TD_Facebook_CONF[1], 0);
  1095.     TextDrawUseBox(G_TD_Facebook_CONF[1], 1);
  1096.     TextDrawBoxColor(G_TD_Facebook_CONF[1], -589505316);
  1097.     TextDrawTextSize(G_TD_Facebook_CONF[1], 530.000000, 3.000000);
  1098.     TextDrawSetSelectable(G_TD_Facebook_CONF[1], 0);
  1099.  
  1100.     G_TD_Facebook_CONF[2] = TextDrawCreate(533.000000, 28.000000, "ld_spac:white");
  1101.     TextDrawBackgroundColor(G_TD_Facebook_CONF[2], 255);
  1102.     TextDrawFont(G_TD_Facebook_CONF[2], 4);
  1103.     TextDrawLetterSize(G_TD_Facebook_CONF[2], 0.500000, 1.799998);
  1104.     TextDrawColor(G_TD_Facebook_CONF[2], -589505316);
  1105.     TextDrawSetOutline(G_TD_Facebook_CONF[2], 0);
  1106.     TextDrawSetProportional(G_TD_Facebook_CONF[2], 1);
  1107.     TextDrawSetShadow(G_TD_Facebook_CONF[2], 0);
  1108.     TextDrawUseBox(G_TD_Facebook_CONF[2], 1);
  1109.     TextDrawBoxColor(G_TD_Facebook_CONF[2], -589505316);
  1110.     TextDrawTextSize(G_TD_Facebook_CONF[2], 81.000000, 18.000000);
  1111.     TextDrawSetSelectable(G_TD_Facebook_CONF[2], 1);
  1112.  
  1113.     G_TD_Facebook_CONF[3] = TextDrawCreate(533.000000, 47.000000, "ld_spac:white");
  1114.     TextDrawBackgroundColor(G_TD_Facebook_CONF[3], 255);
  1115.     TextDrawFont(G_TD_Facebook_CONF[3], 4);
  1116.     TextDrawLetterSize(G_TD_Facebook_CONF[3], 0.500000, 2.299998);
  1117.     TextDrawColor(G_TD_Facebook_CONF[3], -589505316);
  1118.     TextDrawSetOutline(G_TD_Facebook_CONF[3], 0);
  1119.     TextDrawSetProportional(G_TD_Facebook_CONF[3], 1);
  1120.     TextDrawSetShadow(G_TD_Facebook_CONF[3], 0);
  1121.     TextDrawUseBox(G_TD_Facebook_CONF[3], 1);
  1122.     TextDrawBoxColor(G_TD_Facebook_CONF[3], -589505316);
  1123.     TextDrawTextSize(G_TD_Facebook_CONF[3], 81.000000, 20.000000);
  1124.     TextDrawSetSelectable(G_TD_Facebook_CONF[3], 1);
  1125.  
  1126.     G_TD_Facebook_CONF[4] = TextDrawCreate(533.000000, 68.000000, "ld_spac:white");
  1127.     TextDrawBackgroundColor(G_TD_Facebook_CONF[4], 255);
  1128.     TextDrawFont(G_TD_Facebook_CONF[4], 4);
  1129.     TextDrawLetterSize(G_TD_Facebook_CONF[4], 0.500000, 1.799998);
  1130.     TextDrawColor(G_TD_Facebook_CONF[4], -589505316);
  1131.     TextDrawSetOutline(G_TD_Facebook_CONF[4], 0);
  1132.     TextDrawSetProportional(G_TD_Facebook_CONF[4], 1);
  1133.     TextDrawSetShadow(G_TD_Facebook_CONF[4], 0);
  1134.     TextDrawUseBox(G_TD_Facebook_CONF[4], 1);
  1135.     TextDrawBoxColor(G_TD_Facebook_CONF[4], 0x425A8CFF);
  1136.     TextDrawTextSize(G_TD_Facebook_CONF[4], 81.000000, 18.000000);
  1137.     TextDrawSetSelectable(G_TD_Facebook_CONF[4], 1);
  1138.  
  1139.     G_TD_Facebook_CONF[5] = TextDrawCreate(545.000000, 31.000000, "Creditos~n~~n~Configuracoes~n~~n~Sair");
  1140.     TextDrawBackgroundColor(G_TD_Facebook_CONF[5], 255);
  1141.     TextDrawFont(G_TD_Facebook_CONF[5], 1);
  1142.     TextDrawLetterSize(G_TD_Facebook_CONF[5], 0.209998, 1.099997);
  1143.     TextDrawColor(G_TD_Facebook_CONF[5], -1768515841);
  1144.     TextDrawSetOutline(G_TD_Facebook_CONF[5], 0);
  1145.     TextDrawSetProportional(G_TD_Facebook_CONF[5], 1);
  1146.     TextDrawSetShadow(G_TD_Facebook_CONF[5], 0);
  1147.     TextDrawSetSelectable(G_TD_Facebook_CONF[5], 0);
  1148.     return 1;
  1149. }
  1150.  
  1151. P_TDraw_LogarF(playerid)
  1152. {
  1153.     //=================// login //=================//
  1154.     P_TD_LogarF[playerid][0] = CreatePlayerTextDraw(playerid,371.000000, 27.000000, "______________________"); //usuario
  1155.     PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][0], 255);
  1156.     PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][0], 1);
  1157.     PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][0], 0.250000, 1.200000);
  1158.     PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][0], 336860310);
  1159.     PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][0], 0);
  1160.     PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][0], 1);
  1161.     PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][0], 0);
  1162.     PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][0], 460.000000, 14.000000);
  1163.     PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][0], true);
  1164.  
  1165.     P_TD_LogarF[playerid][1] = CreatePlayerTextDraw(playerid,465.000000, 9.000000, "______________________"); //...........
  1166.     PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][1], 255);
  1167.     PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][1], 2);
  1168.     PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][1], 0.750000, 3.400002);
  1169.     PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][1], 336860310);
  1170.     PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][1], 0);
  1171.     PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][1], 1);
  1172.     PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][1], 0);
  1173.     PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][1], 555.00000,22.00000);
  1174.     PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][1], true);
  1175.  
  1176.     //=================// registro //=================//
  1177.     P_TD_LogarF[playerid][2] = CreatePlayerTextDraw(playerid,363.000000, 140.000000, "Nome");
  1178.     PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][2], 255);
  1179.     PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][2], 1);
  1180.     PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][2], 0.300000, 1.300000);
  1181.     PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][2], -1061109505);
  1182.     PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][2], 0);
  1183.     PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][2], 1);
  1184.     PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][2], 0);
  1185.     PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][2], 467.00000,22.00000);
  1186.     PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][2], true);
  1187.  
  1188.     P_TD_LogarF[playerid][3] = CreatePlayerTextDraw(playerid,477.000000, 140.000000, "Sobrenome");
  1189.     PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][3], 255);
  1190.     PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][3], 1);
  1191.     PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][3], 0.300000, 1.300000);
  1192.     PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][3], -1061109505);
  1193.     PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][3], 0);
  1194.     PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][3], 1);
  1195.     PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][3], 0);
  1196.     PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][3], 575.00000,22.00000);
  1197.     PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][3], true);
  1198.  
  1199.     P_TD_LogarF[playerid][4] = CreatePlayerTextDraw(playerid,363.000000, 171.000000, "Email");
  1200.     PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][4], 255);
  1201.     PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][4], 1);
  1202.     PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][4], 0.300000, 1.300000);
  1203.     PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][4], -1061109505);
  1204.     PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][4], 0);
  1205.     PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][4], 1);
  1206.     PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][4], 0);
  1207.     PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][4], 575.00000,22.00000);
  1208.     PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][4], true);
  1209.  
  1210.     P_TD_LogarF[playerid][5] = CreatePlayerTextDraw(playerid,363.000000, 204.000000, "Nova senha");
  1211.     PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][5], 255);
  1212.     PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][5], 1);
  1213.     PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][5], 0.300000, 1.300000);
  1214.     PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][5], -1061109505);
  1215.     PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][5], 0);
  1216.     PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][5], 1);
  1217.     PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][5], 0);
  1218.     PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][5], 575.00000,22.00000);
  1219.     PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][5], true);
  1220.  
  1221.     P_TD_LogarF[playerid][6] = CreatePlayerTextDraw(playerid,363.000000, 246.000000, "Dia/Mes/Ano");
  1222.     PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][6], 255);
  1223.     PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][6], 1);
  1224.     PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][6], 0.300000, 1.300000);
  1225.     PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][6], -1061109505);
  1226.     PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][6], 0);
  1227.     PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][6], 1);
  1228.     PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][6], 0);
  1229.     PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][6], 430.00000,17.00000);
  1230.     PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][6], true);
  1231.  
  1232.     P_TD_LogarF[playerid][7] = CreatePlayerTextDraw(playerid,361.000000, 259.000000, "."); //feminino
  1233.     PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][7], 255);
  1234.     PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][7], 1);
  1235.     PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][7], 0.699999, 2.600000);
  1236.     PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], -1);
  1237.     PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][7], 1);
  1238.     PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][7], 1);
  1239.     PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][7], 372.00000,17.50000);
  1240.     PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][7], true);
  1241.  
  1242.     P_TD_LogarF[playerid][8] = CreatePlayerTextDraw(playerid,420.000000, 259.000000, "."); //masculino
  1243.     PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][8], 255);
  1244.     PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][8], 1);
  1245.     PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][8], 0.699999, 2.600000);
  1246.     PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], -1);
  1247.     PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][8], 1);
  1248.     PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][8], 1);
  1249.     PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][8], 427.00000,17.50000);
  1250.     PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][8], true);
  1251.  
  1252.     //=================// hud //=================//
  1253.     P_TD_Facebook[playerid][0] = CreatePlayerTextDraw(playerid,41.000000, 7.000000, "Pesquisar no Facebook");
  1254.     PlayerTextDrawBackgroundColor(playerid,P_TD_Facebook[playerid][0], 255);
  1255.     PlayerTextDrawFont(playerid,P_TD_Facebook[playerid][0], 1);
  1256.     PlayerTextDrawLetterSize(playerid,P_TD_Facebook[playerid][0], 0.289999, 0.899996);
  1257.     PlayerTextDrawColor(playerid,P_TD_Facebook[playerid][0], -1768515841);
  1258.     PlayerTextDrawSetOutline(playerid,P_TD_Facebook[playerid][0], 0);
  1259.     PlayerTextDrawSetProportional(playerid,P_TD_Facebook[playerid][0], 1);
  1260.     PlayerTextDrawSetShadow(playerid,P_TD_Facebook[playerid][0], 0);
  1261.     PlayerTextDrawTextSize(playerid,P_TD_Facebook[playerid][0], 260.00000,16.00000);
  1262.     PlayerTextDrawSetSelectable(playerid,P_TD_Facebook[playerid][0], true);
  1263.  
  1264.     P_TD_Facebook[playerid][1] = CreatePlayerTextDraw(playerid,304.000000, 6.000000, "LD_TATT:5cross3");
  1265.     PlayerTextDrawBackgroundColor(playerid,P_TD_Facebook[playerid][1], 0);
  1266.     PlayerTextDrawFont(playerid,P_TD_Facebook[playerid][1], 4);
  1267.     PlayerTextDrawLetterSize(playerid,P_TD_Facebook[playerid][1], 0.500000, 1.000000);
  1268.     PlayerTextDrawColor(playerid,P_TD_Facebook[playerid][1], -926365496);
  1269.     PlayerTextDrawSetOutline(playerid,P_TD_Facebook[playerid][1], 0);
  1270.     PlayerTextDrawSetProportional(playerid,P_TD_Facebook[playerid][1], 1);
  1271.     PlayerTextDrawSetShadow(playerid,P_TD_Facebook[playerid][1], 1);
  1272.     PlayerTextDrawUseBox(playerid,P_TD_Facebook[playerid][1], 1);
  1273.     PlayerTextDrawBoxColor(playerid,P_TD_Facebook[playerid][1], 0);
  1274.     PlayerTextDrawTextSize(playerid,P_TD_Facebook[playerid][1], 15.000000, 16.000000);
  1275.     PlayerTextDrawSetSelectable(playerid,P_TD_Facebook[playerid][1], 0);
  1276.  
  1277.     P_TD_Facebook[playerid][2] = CreatePlayerTextDraw(playerid,326.000000, 9.000000, "_");
  1278.     PlayerTextDrawBackgroundColor(playerid,P_TD_Facebook[playerid][2], 255);
  1279.     PlayerTextDrawFont(playerid,P_TD_Facebook[playerid][2], 1);
  1280.     PlayerTextDrawLetterSize(playerid,P_TD_Facebook[playerid][2], 0.219998, 0.799996);
  1281.     PlayerTextDrawColor(playerid,P_TD_Facebook[playerid][2], -589505281);
  1282.     PlayerTextDrawSetOutline(playerid,P_TD_Facebook[playerid][2], 0);
  1283.     PlayerTextDrawSetProportional(playerid,P_TD_Facebook[playerid][2], 1);
  1284.     PlayerTextDrawSetShadow(playerid,P_TD_Facebook[playerid][2], 0);
  1285.     PlayerTextDrawSetSelectable(playerid,P_TD_Facebook[playerid][2], 0);
  1286.  
  1287.     return 1;
  1288. }
  1289.  
  1290. public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
  1291. {
  1292.     switch(errorid)
  1293.     {
  1294.         case CR_SERVER_GONE_ERROR:
  1295.         {
  1296.             for(new fail = 0; fail < 4; fail++) print("       * Conexão Perdida! *");
  1297.             mysql_reconnect(connectionHandle);
  1298.         }
  1299.         case ER_SYNTAX_ERROR:for(new fail = 0; fail < 4; fail++) printf("       * Erro na Syntax da consulta %s! *",query);
  1300.     }
  1301. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement