Advertisement
PedroEduardo

[EN] [GameMode] Facebook Simulator v0.3 R2

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