Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //===========================================//
- //** System: GameMode Facebook Simulator v0.3( http://forum.sa-mp.com/showthread.php?p=3874060 )
- //** Credits: Pedro Eduardo
- //===========================================//
- #include a_samp
- #include a_mysql
- #define HOST "127.0.0.1"
- #define USUARIO "root"
- #define DATABASE "samp"
- #define SENHA ""
- #define Versao "v0.3 R2"
- #define ClearChat(%1) for(new i = 0; i < %1; i++) SendClientMessage(playerid,-1,"")
- main(){}
- enum pFac
- {
- ID,
- pNick[24],
- pPassword[24],
- bool:ceta,
- rNick[11],rSobre[11],rEmail[40],rSenha[24],rNascimento[11],bool:rGenero
- };
- new
- Conexao,Query[2048],
- Facebook[MAX_PLAYERS][pFac],resetFacebook[pFac]
- ;
- enum fLogin
- {
- bool:login,bool:senha,
- bool:rnome,bool:rsobrenome,bool:remail,bool:rsenha,bool:rnascimento,bool:rgenero
- };
- new
- Digitou_Login[MAX_PLAYERS][fLogin],ResetfLogin[fLogin],
- Text:G_TD_LogarF[23], //login
- PlayerText:P_TD_LogarF[MAX_PLAYERS][9], //per login
- Text:G_TD_Facebook[11], //hud
- Text:G_TD_Facebook_CONF[6], //menu
- PlayerText:P_TD_Facebook[MAX_PLAYERS][3] //per hud
- ;
- public OnGameModeInit()
- {
- SendRconCommand("hostname Facebook Simulator [0.3.7] by Pedro Eduardo");
- SetGameModeText("FB "Versao"");
- Conexao = mysql_connect(HOST, USUARIO, DATABASE, SENHA);
- //create table accounts
- mysql_query(Conexao, "CREATE TABLE IF NOT EXISTS `FaceConta`(`ID`int AUTO_INCREMENT PRIMARY KEY,`Usuario` varchar(24) NOT NULL,\
- `Senha` varchar(24) NOT NULL,`Email` varchar(40) NOT NULL,`Nascimento` varchar(11) NOT NULL,`Genero` int(2) NOT NULL)", false);
- print("\n ====================================================================");
- print(" | |");
- print(" | Attempting to connect to the database... |");
- print(" | |");
- if(mysql_errno() != 0)
- for(new fail = 0; fail < 5; fail++)
- print(" | * Failed to connect to database!! * |");
- else
- {
- print(" | * Successfully connected. * |");
- print(" | |");
- print(" | |");
- print(" | Copyright (c) 2017 Facebook Simulator All rights reserved |");
- }
- print(" | |");
- print(" ====================================================================\n");
- G_TDraw_LogarF();
- return 1;
- }
- public OnGameModeExit()
- {
- mysql_close(Conexao);
- for(new a = 0; a < 23; ++a) TextDrawHideForAll(G_TD_LogarF[a]),TextDrawDestroy(G_TD_LogarF[a]);
- for(new a = 0; a < 11; ++a) TextDrawHideForAll(G_TD_Facebook[a]),TextDrawDestroy(G_TD_Facebook[a]);
- for(new b = 0; b < 6; ++b) TextDrawHideForAll(G_TD_Facebook_CONF[b]),TextDrawDestroy(G_TD_Facebook_CONF[b]);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- P_TDraw_LogarF(playerid);
- for(new a = 0; a < 23; ++a) TextDrawShowForPlayer(playerid, G_TD_LogarF[a]);
- for(new b = 0; b < 9; ++b) PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][b]);
- SelectTextDraw(playerid, -1061109505);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- //reset
- Digitou_Login[playerid] = ResetfLogin;
- Facebook[playerid] = resetFacebook;
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- TogglePlayerSpectating(playerid, true);
- ClearChat(20);
- return 1;
- }
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- //===================// login //===================//
- if(clickedid == G_TD_LogarF[7])//forgot password
- {
- SendClientMessage(playerid, -1, "sorry :v LOL'"),SendClientMessage(playerid, -1,"");
- }
- else if(clickedid == G_TD_LogarF[22])//enter
- {
- if(Digitou_Login[playerid][login] == false)
- {
- SendClientMessage(playerid, -1,"write your User!"),SendClientMessage(playerid, -1,"");
- }
- if(Digitou_Login[playerid][senha] == false)
- {
- SendClientMessage(playerid, -1,"write your Password!"),SendClientMessage(playerid, -1,"");
- }
- //============================================================================//
- else if(Digitou_Login[playerid][login]==Digitou_Login[playerid][senha] == true)
- {
- mysql_format(Conexao, Query, sizeof(Query), "SELECT * FROM FaceConta WHERE Usuario='%e' AND Senha='%e' LIMIT 1", Facebook[playerid][pNick],Facebook[playerid][pPassword]);
- new Cache:Temp = mysql_query(Conexao, Query, true);
- if(!cache_get_row_count(Conexao)) //if not exist / wrong password
- {
- //search e-mail
- mysql_format(Conexao, Query, sizeof(Query), "SELECT * FROM FaceConta WHERE Email='%e' LIMIT 1", Facebook[playerid][pNick]);
- new Cache:Temp3 = mysql_query(Conexao, Query, true);
- if(!cache_get_row_count(Conexao)) //not exist
- {
- SendClientMessage(playerid, -1,"the user write, not exist or wrong your password ;3");
- }
- else //if exist
- {
- //===================// Login //===================//
- for(new a = 0; a < 23; ++a) TextDrawHideForPlayer(playerid, G_TD_LogarF[a]);
- for(new b = 0; b < 9; ++b) PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][b]);
- CancelSelectTextDraw(playerid);
- //===================// Hud //===================//
- PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][0],"Search Facebook");
- for(new c = 0; c < 11; ++c) TextDrawShowForPlayer(playerid, G_TD_Facebook[c]);
- for(new d = 0; d < 3; ++d) PlayerTextDrawShow(playerid, P_TD_Facebook[playerid][d]);
- SelectTextDraw(playerid, 0x3C507AFF);
- PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][2], Facebook[playerid][pNick]);
- Facebook[playerid][ceta]=false;
- ClearChat(20);
- }
- cache_delete(Temp3, Conexao);
- }
- else //--------------------------------------------------------------------------//
- {
- //===================// Login //===================//
- for(new a = 0; a < 23; ++a) TextDrawHideForPlayer(playerid, G_TD_LogarF[a]);
- for(new b = 0; b < 9; ++b) PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][b]);
- CancelSelectTextDraw(playerid);
- //===================// Hud //===================//
- PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][0],"Search Facebook");
- for(new c = 0; c < 11; ++c) TextDrawShowForPlayer(playerid, G_TD_Facebook[c]);
- for(new d = 0; d < 3; ++d) PlayerTextDrawShow(playerid, P_TD_Facebook[playerid][d]);
- SelectTextDraw(playerid, 0x3C507AFF);
- PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][2], Facebook[playerid][pNick]);
- Facebook[playerid][ceta]=false;
- ClearChat(20);
- }
- cache_delete(Temp, Conexao);
- }
- }
- else if(clickedid == G_TD_LogarF[19])//Create Account
- {
- if(Digitou_Login[playerid][rnome] == false)
- {
- SendClientMessage(playerid, -1,"Write your first name!"),SendClientMessage(playerid, -1,"");
- }
- if(Digitou_Login[playerid][rsobrenome] == false)
- {
- SendClientMessage(playerid, -1,"write your last name!"),SendClientMessage(playerid, -1,"");
- }
- if(Digitou_Login[playerid][remail] == false)
- {
- SendClientMessage(playerid, -1,"write your email!"),SendClientMessage(playerid, -1,"");
- }
- if(Digitou_Login[playerid][rsenha] == false)
- {
- SendClientMessage(playerid, -1,"write your password for register!"),SendClientMessage(playerid, -1,"");
- }
- if(Digitou_Login[playerid][rnascimento] == false)
- {
- SendClientMessage(playerid, -1,"Write Your Birthday!"),SendClientMessage(playerid, -1,"");
- }
- if(Digitou_Login[playerid][rgenero] == false)
- {
- SendClientMessage(playerid, -1,"Choose a genre! (female):(male)"),SendClientMessage(playerid, -1,"");
- }
- //============================================================================//
- 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)
- {
- new nome[MAX_PLAYER_NAME];
- format(nome,sizeof(nome),"%s_%s",Facebook[playerid][rNick],Facebook[playerid][rSobre]);
- Facebook[playerid][pNick]=nome;
- mysql_format(Conexao, Query, sizeof(Query), "SELECT * FROM FaceConta WHERE Usuario='%e' LIMIT 1", Facebook[playerid][pNick]);
- mysql_tquery(Conexao, Query, "Mysql_check", "d", playerid);
- }
- }
- //===================// Hud //===================//
- else if(clickedid == G_TD_Facebook[6]) //arrow down
- {
- if(Facebook[playerid][ceta] == true)
- {
- for(new c = 0; c < 6; ++c) TextDrawHideForPlayer(playerid, G_TD_Facebook_CONF[c]);
- Facebook[playerid][ceta]=false;
- }
- else
- {
- for(new c = 0; c < 6; ++c) TextDrawShowForPlayer(playerid, G_TD_Facebook_CONF[c]);
- Facebook[playerid][ceta]=true;
- }
- }
- else if(clickedid == G_TD_Facebook[7]) //perfil
- {
- SendClientMessage(playerid, -1, "Function currently unavailable :(");
- }
- else if(clickedid == G_TD_Facebook[8]) //home
- {
- SendClientMessage(playerid, -1, "Function currently unavailable :(");
- }
- else if(clickedid == G_TD_Facebook[9]) //search friend
- {
- return ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Search", "write your friend's name", "Search", "exit");
- }
- //=========================================================================//
- //=========================================================================//
- else if(clickedid == G_TD_Facebook_CONF[2]) //credits
- {
- Facebook[playerid][ceta]=false;
- for(new b = 0; b < 6; ++b) TextDrawHideForPlayer(playerid, G_TD_Facebook_CONF[b]);
- 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","");
- }
- else if(clickedid == G_TD_Facebook_CONF[3]) //settings
- {
- SendClientMessage(playerid, -1, "Function currently unavailable :(");
- }
- else if(clickedid == G_TD_Facebook_CONF[4]) //exit
- {
- //===================// Hud //===================//
- for(new c = 0; c < 11; ++c) TextDrawHideForPlayer(playerid, G_TD_Facebook[c]);
- for(new d = 0; d < 6; ++d) TextDrawHideForPlayer(playerid, G_TD_Facebook_CONF[d]);
- for(new e = 0; e < 3; ++e) PlayerTextDrawHide(playerid, P_TD_Facebook[playerid][e]);
- CancelSelectTextDraw(playerid);
- //===================// Login //===================//
- //reset
- Digitou_Login[playerid] = ResetfLogin;
- Facebook[playerid] = resetFacebook;
- //2reset
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][0],"_");
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][1],"_");
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][2],"First Name");
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][3],"Last Name");
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][4],"Email");
- PlayerTextDrawDestroy(playerid, P_TD_LogarF[playerid][5]);
- P_TD_LogarF[playerid][5] = CreatePlayerTextDraw(playerid,363.000000, 204.000000, "New Password");
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][5], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][5], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][5], 0.300000, 1.300000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][5], -1061109505);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][5], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][5], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][5], 575.00000,22.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][5], true);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][6], 0.240000, 1.300000);
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][6],"Month/Day/Year");
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], -1);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], -1);
- for(new a = 0; a < 23; ++a) TextDrawShowForPlayer(playerid, G_TD_LogarF[a]);
- for(new b = 0; b < 9; ++b) PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][b]);
- SelectTextDraw(playerid, -1061109505);
- ClearChat(20);
- }
- return 1;
- }
- forward Mysql_check(playerid);
- public Mysql_check(playerid)
- {
- if(!cache_get_row_count(Conexao)) //if not exist accounts
- {
- mysql_format(Conexao, Query, sizeof(Query), "INSERT INTO FaceConta (Usuario,Senha,Genero,Nascimento,Email) VALUES ('%e','%e','%d','%e','%e')",
- Facebook[playerid][pNick],Facebook[playerid][rSenha],Facebook[playerid][rGenero]?(0):(1),Facebook[playerid][rNascimento],Facebook[playerid][rEmail]);
- new Cache:Temp = mysql_query(Conexao, Query, true);
- Facebook[playerid][ID] = cache_insert_id();
- cache_delete(Temp, Conexao);
- new string[42 + 24];
- format(string,42 + 24,"Your User is: '%s'! do it log in.",Facebook[playerid][pNick]);
- SendClientMessage(playerid, -1, string);
- }
- else //if exist
- {
- SendClientMessage(playerid, -1,"sorry, Your name is already being used :'(");
- }
- return 1;
- }
- public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
- {
- if(_:playertextid == INVALID_TEXT_DRAW) return CallLocalFunction("OnPlayerClickPlayerTextDraw", "ii", playerid, INVALID_TEXT_DRAW);
- //=================// login //=================//
- else if(playertextid == P_TD_LogarF[playerid][0])//user or email
- {
- CancelSelectTextDraw(playerid);
- return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "user", "Write down, your User or Email", "Ok", "Exit");
- }
- else if(playertextid == P_TD_LogarF[playerid][1])//password
- {
- CancelSelectTextDraw(playerid);
- return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "password", "Write down, your password!", "Ok", "Exit");
- }
- //=================// register //=================//
- else if(playertextid == P_TD_LogarF[playerid][2])//first name
- {
- CancelSelectTextDraw(playerid);
- return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "first name", "Write down, your Name", "Ok", "Exit");
- }
- else if(playertextid == P_TD_LogarF[playerid][3])//last name
- {
- CancelSelectTextDraw(playerid);
- return ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "last name", "Write down, your last name", "Ok", "Exit");
- }
- else if(playertextid == P_TD_LogarF[playerid][4])//email
- {
- CancelSelectTextDraw(playerid);
- 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");
- }
- else if(playertextid == P_TD_LogarF[playerid][5])//password
- {
- CancelSelectTextDraw(playerid);
- return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_PASSWORD, "password", "Write down, your password", "Ok", "Exit");
- }
- else if(playertextid == P_TD_LogarF[playerid][6])//Birthday
- {
- CancelSelectTextDraw(playerid);
- return ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Birthday", "write down, your Birthday\n\nFormat [MM/DD/YYYY]", "Ok", "Exit");
- }
- else if(playertextid == P_TD_LogarF[playerid][7])//female
- {
- PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][7]),PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][8]);
- if(Facebook[playerid][rGenero] == true && Digitou_Login[playerid][rgenero] == true) //If already female
- {//Remove Selection
- Digitou_Login[playerid][rgenero]=false;
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], -1);
- SendClientMessage(playerid, -1, "You do not have a genre.");
- }
- else //if male, set female
- {
- Digitou_Login[playerid][rgenero]=true;
- Facebook[playerid][rGenero]=true; //female
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], 0);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], -1);
- }
- PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][7]),PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][8]);
- }
- else if(playertextid == P_TD_LogarF[playerid][8])//male
- {
- PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][7]),PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][8]);
- if(Facebook[playerid][rGenero] == false && Digitou_Login[playerid][rgenero] == true) //If already male
- {//Remove Selection
- Digitou_Login[playerid][rgenero]=false;
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], -1);
- SendClientMessage(playerid, -1, "You do not have a genre.");
- }
- else //if female, set male
- {
- Digitou_Login[playerid][rgenero]=true;
- Facebook[playerid][rGenero]=false; //male
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], 0);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], -1);
- }
- PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][7]),PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][8]);
- }
- //===================// Hud //===================//
- else if(playertextid == P_TD_Facebook[playerid][0]) //search
- {
- return ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "Search", "Enter your friend's name", "Serach", "exit");
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- switch(dialogid)
- {
- //=================// login //=================//
- case 0://user
- {
- if(!response) return SelectTextDraw(playerid, -1061109505),false;
- if(strlen(inputtext) <= 3 || strlen(inputtext) > 24)
- {
- Digitou_Login[playerid][login]=false;
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][0], "_____");
- return ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "User", "Write down, your User or Email", "Ok", "Exit");
- }
- if(response)
- {
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][0], inputtext);
- SelectTextDraw(playerid, -1061109505);
- Digitou_Login[playerid][login]=true;
- new string[24];
- format(string,24,"%s",inputtext);
- Facebook[playerid][pNick]=string;
- }
- return 1;
- }
- case 1://Password
- {
- if(!response) return SelectTextDraw(playerid, -1061109505),false;
- if(strlen(inputtext) <= 3 || strlen(inputtext) > 24)
- {
- Digitou_Login[playerid][senha]=false;
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][1], "_____");
- return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Password", "Write your Password!", "Ok", "Exit");
- }
- if(response)
- {
- SelectTextDraw(playerid, -1061109505);
- new string[24];
- format(string,24,"%s",inputtext);
- Facebook[playerid][pPassword]=string;
- if(strlen(inputtext) < 11)//if text for small
- {
- for(new i; i < strlen(inputtext); i++) inputtext[i] = '.';
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][1], inputtext);
- }
- else PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][1], "...........");//else
- Digitou_Login[playerid][senha]=true;
- }
- return 1;
- }
- //=================// registro //=================//
- case 2://First Name
- {
- if(!response) return SelectTextDraw(playerid, -1061109505),false;
- if(strlen(inputtext) <= 2 || strlen(inputtext) > 10)
- {
- Digitou_Login[playerid][rnome]=false;
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][2], "First Name");
- return ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT, "First Name", "Write down, your First Name", "Ok", "Exit");
- }
- if(response)
- {
- new string[11];
- format(string,11,"%s",inputtext);
- Facebook[playerid][rNick]=string;
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][2], inputtext);
- SelectTextDraw(playerid, -1061109505);
- Digitou_Login[playerid][rnome]=true;
- }
- return 1;
- }
- case 3://Last Name
- {
- if(!response) return SelectTextDraw(playerid, -1061109505),false;
- if(strlen(inputtext) <= 2 || strlen(inputtext) > 10)
- {
- Digitou_Login[playerid][rsobrenome]=false;
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][3], "Last Name");
- return ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "Last Name", "Write down, your Last Name", "Ok", "Exit");
- }
- if(response)
- {
- new string[11];
- format(string,11,"%s",inputtext);
- Facebook[playerid][rSobre]=string;
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][3], inputtext);
- SelectTextDraw(playerid, -1061109505);
- Digitou_Login[playerid][rsobrenome]=true;
- }
- return 1;
- }
- case 4://e-mail
- {
- if(!response) return SelectTextDraw(playerid, -1061109505),false;
- if(strlen(inputtext) < 5 || strlen(inputtext) > 40)
- {
- Digitou_Login[playerid][remail]=false;
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][4], "Email");
- 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");
- }
- if(response)
- {
- if(strfind(inputtext, "@", true) != -1 && strfind(inputtext, ".com", true) != -1)//if valid email (continue)
- {
- new email[40], charpos;
- format(email, sizeof(email), "%s", inputtext);
- Facebook[playerid][rEmail]=email;
- charpos = strfind(email, "@");
- if(charpos != -1)
- strdel(email, charpos, charpos +1);
- strins(email, "(a)", charpos);
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][4], email);
- Digitou_Login[playerid][remail]=true;
- return SelectTextDraw(playerid, -1061109505);
- }
- else
- {
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][4], "Email");
- 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");
- }
- }
- return 1;
- }
- case 5://Password
- {
- if(!response) return SelectTextDraw(playerid, -1061109505),false;
- if(strlen(inputtext) < 3 || strlen(inputtext) > 24)
- {
- PlayerTextDrawDestroy(playerid, P_TD_LogarF[playerid][5]);
- P_TD_LogarF[playerid][5] = CreatePlayerTextDraw(playerid,363.000000, 204.000000, "New Password");
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][5], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][5], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][5], 0.300000, 1.300000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][5], -1061109505);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][5], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][5], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][5], 575.00000,22.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][5], true);
- PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][5]);
- Digitou_Login[playerid][rsenha]=false;
- return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_INPUT, "password", "Write down, your password", "Ok", "Exit");
- }
- if(response)
- {
- SelectTextDraw(playerid, -1061109505);
- new string[24];
- format(string,24,"%s",inputtext);
- Facebook[playerid][rSenha]=string;
- PlayerTextDrawDestroy(playerid, P_TD_LogarF[playerid][5]);
- P_TD_LogarF[playerid][5] = CreatePlayerTextDraw(playerid,363.000000, 186.000000, "New Password");
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][5], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][5], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][5], 0.750000, 3.400002);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][5], -1061109505);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][5], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][5], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][5], 575.00000,22.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][5], true);
- if(strlen(inputtext) < 40)//if text for small
- {
- for(new i; i < strlen(inputtext); i++) inputtext[i] = '.';
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][5], inputtext);
- }
- else PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][5], "........................................");//else
- PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][5]);
- Digitou_Login[playerid][rsenha]=true;
- }
- return 1;
- }
- case 6://nascimento
- {
- if(!response) return SelectTextDraw(playerid, -1061109505),false;
- if(strlen(inputtext) <= 9 || strlen(inputtext) >= 11 )
- {
- Digitou_Login[playerid][rnascimento]=false;
- PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][6]);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][6], 0.240000, 1.300000);
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][6], "Month/Day/Year");
- PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][6]);
- return ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Birthday", "Write down, your Birthday\n\nFormat [MM/DD/YYYY]", "Ok", "Exit");
- }
- if(response)
- {
- if(strfind(inputtext, "/", true) != -1)
- {
- new string[11];
- format(string,11,"%s",inputtext);
- Facebook[playerid][rNascimento]=string;
- PlayerTextDrawHide(playerid, P_TD_LogarF[playerid][6]);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][6], 0.300000, 1.300000);
- PlayerTextDrawSetString(playerid, P_TD_LogarF[playerid][6], inputtext);
- PlayerTextDrawShow(playerid, P_TD_LogarF[playerid][6]);
- SelectTextDraw(playerid, -1061109505);
- Digitou_Login[playerid][rnascimento]=true;
- }
- else return ShowPlayerDialog(playerid, 6, DIALOG_STYLE_INPUT, "Birthday", "Write down, your Birthday\n\nFormat [MM/DD/YYYY]", "Ok", "Exit");
- }
- return 1;
- }
- //=================// hud //=================//
- case 7://search
- {
- if(!response) return false;
- else
- {
- mysql_format(Conexao, Query, sizeof(Query), "SELECT * FROM FaceConta WHERE usuario='%e' LIMIT 1", inputtext);
- new Cache:Temp = mysql_query(Conexao, Query, true);
- if(cache_get_row_count(Conexao))
- {
- PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][0], inputtext);
- new Strdialog[140];
- format(Strdialog,sizeof(Strdialog),"We found your friend '%s'!",inputtext);
- ShowPlayerDialog(playerid, 201,DIALOG_STYLE_MSGBOX,"I found",Strdialog,"Ok","");
- }
- else
- {
- ShowPlayerDialog(playerid, 201,DIALOG_STYLE_MSGBOX,":(","Your friend's name is not registered\nMake sure you spelled the name correctly\nAnd try again","Ok","");
- PlayerTextDrawSetString(playerid, P_TD_Facebook[playerid][0], "Search facebook");
- }
- cache_delete(Temp, Conexao);
- //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
- }
- }
- }
- return 0;
- }
- G_TDraw_LogarF()
- {
- //=================// login //=================//
- G_TD_LogarF[0] = TextDrawCreate(641.000000, 0.000000, "_");
- TextDrawBackgroundColor(G_TD_LogarF[0], 255);
- TextDrawFont(G_TD_LogarF[0], 1);
- TextDrawLetterSize(G_TD_LogarF[0], 0.500000, 49.799980);
- TextDrawColor(G_TD_LogarF[0], -1);
- TextDrawSetOutline(G_TD_LogarF[0], 0);
- TextDrawSetProportional(G_TD_LogarF[0], 1);
- TextDrawSetShadow(G_TD_LogarF[0], 1);
- TextDrawUseBox(G_TD_LogarF[0], 1);
- TextDrawBoxColor(G_TD_LogarF[0], -656677889);
- TextDrawTextSize(G_TD_LogarF[0], -4.000000, 0.000000);
- TextDrawSetSelectable(G_TD_LogarF[0], 0);
- G_TD_LogarF[1] = TextDrawCreate(641.000000, 0.000000, "_");
- TextDrawBackgroundColor(G_TD_LogarF[1], 255);
- TextDrawFont(G_TD_LogarF[1], 1);
- TextDrawLetterSize(G_TD_LogarF[1], 0.500000, 5.999999);
- TextDrawColor(G_TD_LogarF[1], -1);
- TextDrawSetOutline(G_TD_LogarF[1], 0);
- TextDrawSetProportional(G_TD_LogarF[1], 1);
- TextDrawSetShadow(G_TD_LogarF[1], 1);
- TextDrawUseBox(G_TD_LogarF[1], 1);
- TextDrawBoxColor(G_TD_LogarF[1], 1113230591);
- TextDrawTextSize(G_TD_LogarF[1], -4.000000, 0.000000);
- TextDrawSetSelectable(G_TD_LogarF[1], 0);
- G_TD_LogarF[2] = TextDrawCreate(69.000000, 20.000000, "facebook");
- TextDrawBackgroundColor(G_TD_LogarF[2], 842150450);
- TextDrawFont(G_TD_LogarF[2], 1);
- TextDrawLetterSize(G_TD_LogarF[2], 0.629999, 3.199998);
- TextDrawColor(G_TD_LogarF[2], -1);
- TextDrawSetOutline(G_TD_LogarF[2], 1);
- TextDrawSetProportional(G_TD_LogarF[2], 1);
- TextDrawSetSelectable(G_TD_LogarF[2], 0);
- G_TD_LogarF[3] = TextDrawCreate(456.000000, 28.000000, "______________________"); //user
- TextDrawBackgroundColor(G_TD_LogarF[3], 255);
- TextDrawFont(G_TD_LogarF[3], 1);
- TextDrawLetterSize(G_TD_LogarF[3], 0.500000, 1.000000);
- TextDrawColor(G_TD_LogarF[3], -36);
- TextDrawSetOutline(G_TD_LogarF[3], 0);
- TextDrawSetProportional(G_TD_LogarF[3], 1);
- TextDrawSetShadow(G_TD_LogarF[3], 1);
- TextDrawUseBox(G_TD_LogarF[3], 1);
- TextDrawBoxColor(G_TD_LogarF[3], -36);
- TextDrawTextSize(G_TD_LogarF[3], 365.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[3], 0);
- G_TD_LogarF[4] = TextDrawCreate(544.000000, 28.000000, "______________________"); //Password
- TextDrawBackgroundColor(G_TD_LogarF[4], 255);
- TextDrawFont(G_TD_LogarF[4], 1);
- TextDrawLetterSize(G_TD_LogarF[4], 0.500000, 1.000000);
- TextDrawColor(G_TD_LogarF[4], -36);
- TextDrawSetOutline(G_TD_LogarF[4], 0);
- TextDrawSetProportional(G_TD_LogarF[4], 1);
- TextDrawSetShadow(G_TD_LogarF[4], 1);
- TextDrawUseBox(G_TD_LogarF[4], 1);
- TextDrawBoxColor(G_TD_LogarF[4], -36);
- TextDrawTextSize(G_TD_LogarF[4], 460.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[4], 1);
- G_TD_LogarF[5] = TextDrawCreate(367.000000, 13.000000, "Email or user");
- TextDrawBackgroundColor(G_TD_LogarF[5], 255);
- TextDrawFont(G_TD_LogarF[5], 1);
- TextDrawLetterSize(G_TD_LogarF[5], 0.210000, 1.000000);
- TextDrawColor(G_TD_LogarF[5], -16);
- TextDrawSetOutline(G_TD_LogarF[5], 0);
- TextDrawSetProportional(G_TD_LogarF[5], 1);
- TextDrawSetShadow(G_TD_LogarF[5], 0);
- TextDrawSetSelectable(G_TD_LogarF[5], 0);
- G_TD_LogarF[6] = TextDrawCreate(462.000000, 13.000000, "Password");
- TextDrawBackgroundColor(G_TD_LogarF[6], 255);
- TextDrawFont(G_TD_LogarF[6], 1);
- TextDrawLetterSize(G_TD_LogarF[6], 0.210000, 1.000000);
- TextDrawColor(G_TD_LogarF[6], -16);
- TextDrawSetOutline(G_TD_LogarF[6], 0);
- TextDrawSetProportional(G_TD_LogarF[6], 1);
- TextDrawSetShadow(G_TD_LogarF[6], 0);
- TextDrawSetSelectable(G_TD_LogarF[6], 0);
- G_TD_LogarF[7] = TextDrawCreate(460.000000, 43.000000, "Forgot your password?");
- TextDrawBackgroundColor(G_TD_LogarF[7], 255);
- TextDrawFont(G_TD_LogarF[7], 1);
- TextDrawLetterSize(G_TD_LogarF[7], 0.200000, 0.899999);
- TextDrawColor(G_TD_LogarF[7], -1716461313);
- TextDrawSetOutline(G_TD_LogarF[7], 0);
- TextDrawSetProportional(G_TD_LogarF[7], 1);
- TextDrawSetShadow(G_TD_LogarF[7], 0);
- TextDrawTextSize(G_TD_LogarF[7], 550.000000, 11.000000);
- TextDrawSetSelectable(G_TD_LogarF[7], 1);
- G_TD_LogarF[8] = TextDrawCreate(70.000000, 76.000000, "Connect with friends and the ~n~world around you on Facebook.");
- TextDrawBackgroundColor(G_TD_LogarF[8], 255);
- TextDrawFont(G_TD_LogarF[8], 1);
- TextDrawLetterSize(G_TD_LogarF[8], 0.310000, 1.700000);
- TextDrawColor(G_TD_LogarF[8], 13020);
- TextDrawSetOutline(G_TD_LogarF[8], 0);
- TextDrawSetProportional(G_TD_LogarF[8], 1);
- TextDrawSetShadow(G_TD_LogarF[8], 0);
- TextDrawSetSelectable(G_TD_LogarF[8], 0);
- G_TD_LogarF[9] = TextDrawCreate(358.000000, 76.000000, "Sign Up");
- TextDrawBackgroundColor(G_TD_LogarF[9], 255);
- TextDrawFont(G_TD_LogarF[9], 1);
- TextDrawLetterSize(G_TD_LogarF[9], 0.450000, 2.500000);
- TextDrawColor(G_TD_LogarF[9], 200);
- TextDrawSetOutline(G_TD_LogarF[9], 0);
- TextDrawSetProportional(G_TD_LogarF[9], 1);
- TextDrawSetShadow(G_TD_LogarF[9], 0);
- TextDrawSetSelectable(G_TD_LogarF[9], 0);
- G_TD_LogarF[10] = TextDrawCreate(357.000000, 101.000000, "It s free and always will be.");
- TextDrawBackgroundColor(G_TD_LogarF[10], 255);
- TextDrawFont(G_TD_LogarF[10], 1);
- TextDrawLetterSize(G_TD_LogarF[10], 0.270000, 1.500000);
- TextDrawColor(G_TD_LogarF[10], 200);
- TextDrawSetOutline(G_TD_LogarF[10], 0);
- TextDrawSetProportional(G_TD_LogarF[10], 1);
- TextDrawSetShadow(G_TD_LogarF[10], 0);
- TextDrawSetSelectable(G_TD_LogarF[10], 0);
- G_TD_LogarF[11] = TextDrawCreate(466.000000, 138.000000, "______________________");//first name
- TextDrawBackgroundColor(G_TD_LogarF[11], 255);
- TextDrawFont(G_TD_LogarF[11], 1);
- TextDrawLetterSize(G_TD_LogarF[11], 0.500000, 1.600000);
- TextDrawColor(G_TD_LogarF[11], -36);
- TextDrawSetOutline(G_TD_LogarF[11], 0);
- TextDrawSetProportional(G_TD_LogarF[11], 1);
- TextDrawSetShadow(G_TD_LogarF[11], 1);
- TextDrawUseBox(G_TD_LogarF[11], 1);
- TextDrawBoxColor(G_TD_LogarF[11], -36);
- TextDrawTextSize(G_TD_LogarF[11], 357.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[11], 1);
- G_TD_LogarF[12] = TextDrawCreate(580.000000, 138.000000, "______________________");//last name
- TextDrawBackgroundColor(G_TD_LogarF[12], 255);
- TextDrawFont(G_TD_LogarF[12], 1);
- TextDrawLetterSize(G_TD_LogarF[12], 0.500000, 1.700000);
- TextDrawColor(G_TD_LogarF[12], -36);
- TextDrawSetOutline(G_TD_LogarF[12], 0);
- TextDrawSetProportional(G_TD_LogarF[12], 1);
- TextDrawSetShadow(G_TD_LogarF[12], 1);
- TextDrawUseBox(G_TD_LogarF[12], 1);
- TextDrawBoxColor(G_TD_LogarF[12], -36);
- TextDrawTextSize(G_TD_LogarF[12], 470.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[12], 1);
- G_TD_LogarF[13] = TextDrawCreate(580.000000, 168.000000, "______________________");//email
- TextDrawBackgroundColor(G_TD_LogarF[13], 255);
- TextDrawFont(G_TD_LogarF[13], 1);
- TextDrawLetterSize(G_TD_LogarF[13], 0.500000, 1.700000);
- TextDrawColor(G_TD_LogarF[13], -36);
- TextDrawSetOutline(G_TD_LogarF[13], 0);
- TextDrawSetProportional(G_TD_LogarF[13], 1);
- TextDrawSetShadow(G_TD_LogarF[13], 1);
- TextDrawUseBox(G_TD_LogarF[13], 1);
- TextDrawBoxColor(G_TD_LogarF[13], -36);
- TextDrawTextSize(G_TD_LogarF[13], 357.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[13], 1);
- G_TD_LogarF[14] = TextDrawCreate(580.000000, 201.000000, "______________________");//password
- TextDrawBackgroundColor(G_TD_LogarF[14], 255);
- TextDrawFont(G_TD_LogarF[14], 1);
- TextDrawLetterSize(G_TD_LogarF[14], 0.500000, 1.700000);
- TextDrawColor(G_TD_LogarF[14], -36);
- TextDrawSetOutline(G_TD_LogarF[14], 0);
- TextDrawSetProportional(G_TD_LogarF[14], 1);
- TextDrawSetShadow(G_TD_LogarF[14], 1);
- TextDrawUseBox(G_TD_LogarF[14], 1);
- TextDrawBoxColor(G_TD_LogarF[14], -36);
- TextDrawTextSize(G_TD_LogarF[14], 357.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[14], 1);
- G_TD_LogarF[15] = TextDrawCreate(432.000000, 245.000000, "______________________"); //Birthday
- TextDrawBackgroundColor(G_TD_LogarF[15], 255);
- TextDrawFont(G_TD_LogarF[15], 1);
- TextDrawLetterSize(G_TD_LogarF[15], 0.500000, 1.700000);
- TextDrawColor(G_TD_LogarF[15], -36);
- TextDrawSetOutline(G_TD_LogarF[15], 0);
- TextDrawSetProportional(G_TD_LogarF[15], 1);
- TextDrawSetShadow(G_TD_LogarF[15], 1);
- TextDrawUseBox(G_TD_LogarF[15], 1);
- TextDrawBoxColor(G_TD_LogarF[15], -36);
- TextDrawTextSize(G_TD_LogarF[15], 357.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[15], 1);
- G_TD_LogarF[16] = TextDrawCreate(357.000000, 224.000000, "Birthday");
- TextDrawBackgroundColor(G_TD_LogarF[16], 255);
- TextDrawFont(G_TD_LogarF[16], 1);
- TextDrawLetterSize(G_TD_LogarF[16], 0.270000, 1.500000);
- TextDrawColor(G_TD_LogarF[16], 200);
- TextDrawSetOutline(G_TD_LogarF[16], 0);
- TextDrawSetProportional(G_TD_LogarF[16], 1);
- TextDrawSetShadow(G_TD_LogarF[16], 0);
- TextDrawSetSelectable(G_TD_LogarF[16], 0);
- G_TD_LogarF[17] = TextDrawCreate(371.000000, 271.000000, "Female_______Male");
- TextDrawBackgroundColor(G_TD_LogarF[17], 255);
- TextDrawFont(G_TD_LogarF[17], 1);
- TextDrawLetterSize(G_TD_LogarF[17], 0.270000, 1.500000);
- TextDrawColor(G_TD_LogarF[17], 200);
- TextDrawSetOutline(G_TD_LogarF[17], 0);
- TextDrawSetProportional(G_TD_LogarF[17], 1);
- TextDrawSetShadow(G_TD_LogarF[17], 0);
- TextDrawSetSelectable(G_TD_LogarF[17], 0);
- G_TD_LogarF[18] = TextDrawCreate(358.000000, 305.000000, "ld_spac:white");
- TextDrawBackgroundColor(G_TD_LogarF[18], 255);
- TextDrawFont(G_TD_LogarF[18], 4);
- TextDrawLetterSize(G_TD_LogarF[18], 0.500000, 1.000000);
- TextDrawColor(G_TD_LogarF[18], 762982399);
- TextDrawSetOutline(G_TD_LogarF[18], 0);
- TextDrawSetProportional(G_TD_LogarF[18], 1);
- TextDrawSetShadow(G_TD_LogarF[18], 1);
- TextDrawUseBox(G_TD_LogarF[18], 1);
- TextDrawBoxColor(G_TD_LogarF[18], 865875455);
- TextDrawTextSize(G_TD_LogarF[18], 87.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[18], 0);
- G_TD_LogarF[19] = TextDrawCreate(365.000000, 308.000000, "Create Account");
- TextDrawBackgroundColor(G_TD_LogarF[19], 255);
- TextDrawFont(G_TD_LogarF[19], 1);
- TextDrawLetterSize(G_TD_LogarF[19], 0.270000, 1.500000);
- TextDrawColor(G_TD_LogarF[19], -16);
- TextDrawSetOutline(G_TD_LogarF[19], 0);
- TextDrawSetProportional(G_TD_LogarF[19], 1);
- TextDrawSetShadow(G_TD_LogarF[19], 0);
- TextDrawTextSize(G_TD_LogarF[19], 450.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[19], true);
- G_TD_LogarF[20] = TextDrawCreate(358.000000, 305.000000, "ld_spac:white");
- TextDrawBackgroundColor(G_TD_LogarF[20], 255);
- TextDrawFont(G_TD_LogarF[20], 4);
- TextDrawLetterSize(G_TD_LogarF[20], 0.500000, 0.899999);
- TextDrawColor(G_TD_LogarF[20], 932264447);
- TextDrawSetOutline(G_TD_LogarF[20], 0);
- TextDrawSetProportional(G_TD_LogarF[20], 1);
- TextDrawSetShadow(G_TD_LogarF[20], 1);
- TextDrawUseBox(G_TD_LogarF[20], 1);
- TextDrawBoxColor(G_TD_LogarF[20], 255);
- TextDrawTextSize(G_TD_LogarF[20], 87.000000, 11.000000);
- TextDrawSetSelectable(G_TD_LogarF[20], 0);
- G_TD_LogarF[21] = TextDrawCreate(553.000000, 26.000000, "ld_spac:white");
- TextDrawBackgroundColor(G_TD_LogarF[21], 255);
- TextDrawFont(G_TD_LogarF[21], 4);
- TextDrawLetterSize(G_TD_LogarF[21], 0.500000, 1.000000);
- TextDrawColor(G_TD_LogarF[21], 1315945215);
- TextDrawSetOutline(G_TD_LogarF[21], 0);
- TextDrawSetProportional(G_TD_LogarF[21], 1);
- TextDrawSetShadow(G_TD_LogarF[21], 1);
- TextDrawUseBox(G_TD_LogarF[21], 1);
- TextDrawBoxColor(G_TD_LogarF[21], 255);
- TextDrawTextSize(G_TD_LogarF[21], 27.000000, 13.000000);
- TextDrawSetSelectable(G_TD_LogarF[21], 0);
- G_TD_LogarF[22] = TextDrawCreate(555.000000, 27.000000, "Log In");//enter
- TextDrawBackgroundColor(G_TD_LogarF[22], 255);
- TextDrawFont(G_TD_LogarF[22], 1);
- TextDrawLetterSize(G_TD_LogarF[22], 0.230000, 1.200000);
- TextDrawColor(G_TD_LogarF[22], -16);
- TextDrawSetOutline(G_TD_LogarF[22], 0);
- TextDrawSetProportional(G_TD_LogarF[22], 1);
- TextDrawSetShadow(G_TD_LogarF[22], 0);
- TextDrawTextSize(G_TD_LogarF[22], 585.000000, 20.000000);
- TextDrawSetSelectable(G_TD_LogarF[22], 1);
- //=================// hud //=================//
- G_TD_Facebook[0] = TextDrawCreate(642.000000, 1.000000, "~fundo~");
- TextDrawBackgroundColor(G_TD_Facebook[0], 255);
- TextDrawFont(G_TD_Facebook[0], 1);
- TextDrawLetterSize(G_TD_Facebook[0], 0.500000, 2.299998);
- TextDrawColor(G_TD_Facebook[0], -1);
- TextDrawSetOutline(G_TD_Facebook[0], 0);
- TextDrawSetProportional(G_TD_Facebook[0], 1);
- TextDrawSetShadow(G_TD_Facebook[0], 1);
- TextDrawUseBox(G_TD_Facebook[0], 1);
- TextDrawBoxColor(G_TD_Facebook[0], 1113230591);
- TextDrawTextSize(G_TD_Facebook[0], -5.000000, 0.000000);
- TextDrawSetSelectable(G_TD_Facebook[0], 0);
- G_TD_Facebook[1] = TextDrawCreate(21.000000, 7.000000, "~logo~");
- TextDrawBackgroundColor(G_TD_Facebook[1], 255);
- TextDrawFont(G_TD_Facebook[1], 1);
- TextDrawLetterSize(G_TD_Facebook[1], 0.500000, 1.000000);
- TextDrawColor(G_TD_Facebook[1], 505303240);
- TextDrawSetOutline(G_TD_Facebook[1], 0);
- TextDrawSetProportional(G_TD_Facebook[1], 1);
- TextDrawSetShadow(G_TD_Facebook[1], 0);
- TextDrawUseBox(G_TD_Facebook[1], 1);
- TextDrawBoxColor(G_TD_Facebook[1], -589505316);
- TextDrawTextSize(G_TD_Facebook[1], 30.000000, 0.000000);
- TextDrawSetSelectable(G_TD_Facebook[1], 0);
- G_TD_Facebook[2] = TextDrawCreate(253.000000, 8.000000, "_"); //search
- TextDrawBackgroundColor(G_TD_Facebook[2], 255);
- TextDrawFont(G_TD_Facebook[2], 1);
- TextDrawLetterSize(G_TD_Facebook[2], 0.500000, 0.8);
- TextDrawColor(G_TD_Facebook[2], 505303240);
- TextDrawSetOutline(G_TD_Facebook[2], 0);
- TextDrawSetProportional(G_TD_Facebook[2], 1);
- TextDrawSetShadow(G_TD_Facebook[2], 0);
- TextDrawUseBox(G_TD_Facebook[2], 1);
- TextDrawBoxColor(G_TD_Facebook[2], -589505316);
- TextDrawTextSize(G_TD_Facebook[2], 35.000000, 15.000000);
- TextDrawSetSelectable(G_TD_Facebook[2], 1);
- G_TD_Facebook[3] = TextDrawCreate(24.000000, 2.000000, "f");
- TextDrawBackgroundColor(G_TD_Facebook[3], 255);
- TextDrawFont(G_TD_Facebook[3], 1);
- TextDrawLetterSize(G_TD_Facebook[3], 0.439999, 2.099998);
- TextDrawColor(G_TD_Facebook[3], 505308380);
- TextDrawSetOutline(G_TD_Facebook[3], 0);
- TextDrawSetProportional(G_TD_Facebook[3], 1);
- TextDrawSetShadow(G_TD_Facebook[3], 0);
- TextDrawSetSelectable(G_TD_Facebook[3], 0);
- G_TD_Facebook[4] = TextDrawCreate(238.000000, 8.000000, "O");
- TextDrawBackgroundColor(G_TD_Facebook[4], 255);
- TextDrawFont(G_TD_Facebook[4], 1);
- TextDrawLetterSize(G_TD_Facebook[4], 0.319999, 0.599998);
- TextDrawColor(G_TD_Facebook[4], 1684301020);
- TextDrawSetOutline(G_TD_Facebook[4], 0);
- TextDrawSetProportional(G_TD_Facebook[4], 1);
- TextDrawSetShadow(G_TD_Facebook[4], 0);
- TextDrawSetSelectable(G_TD_Facebook[4], 0);
- G_TD_Facebook[5] = TextDrawCreate(248.000000, 12.000000, "/");
- TextDrawBackgroundColor(G_TD_Facebook[5], 255);
- TextDrawFont(G_TD_Facebook[5], 1);
- TextDrawLetterSize(G_TD_Facebook[5], -0.339998, 0.400000);
- TextDrawColor(G_TD_Facebook[5], 1684301020);
- TextDrawSetOutline(G_TD_Facebook[5], 0);
- TextDrawSetProportional(G_TD_Facebook[5], 1);
- TextDrawSetShadow(G_TD_Facebook[5], 0);
- TextDrawSetSelectable(G_TD_Facebook[5], 0);
- G_TD_Facebook[6] = TextDrawCreate(601.000000, 10.000000, "ld_beat:down");
- TextDrawBackgroundColor(G_TD_Facebook[6], 255);
- TextDrawFont(G_TD_Facebook[6], 4);
- TextDrawLetterSize(G_TD_Facebook[6], 0.500000, 1.000000);
- TextDrawColor(G_TD_Facebook[6], -1061109505);
- TextDrawSetOutline(G_TD_Facebook[6], 0);
- TextDrawSetProportional(G_TD_Facebook[6], 1);
- TextDrawSetShadow(G_TD_Facebook[6], 1);
- TextDrawUseBox(G_TD_Facebook[6], 1);
- TextDrawBoxColor(G_TD_Facebook[6], 255);
- TextDrawTextSize(G_TD_Facebook[6], 13.000000, 8.000000);
- TextDrawSetSelectable(G_TD_Facebook[6], 1);
- G_TD_Facebook[7] = TextDrawCreate(302.000000, 4.000000, "ld_spac:white");
- TextDrawBackgroundColor(G_TD_Facebook[7], 255);
- TextDrawFont(G_TD_Facebook[7], 4);
- TextDrawLetterSize(G_TD_Facebook[7], 0.500000, 1.799998);
- TextDrawColor(G_TD_Facebook[7], 0x425A8CFF);
- TextDrawSetOutline(G_TD_Facebook[7], 0);
- TextDrawSetProportional(G_TD_Facebook[7], 1);
- TextDrawSetShadow(G_TD_Facebook[7], 0);
- TextDrawUseBox(G_TD_Facebook[7], 1);
- TextDrawBoxColor(G_TD_Facebook[7], 0x425A8CFF);
- TextDrawTextSize(G_TD_Facebook[7], 92.000000, 19.000000);
- TextDrawSetSelectable(G_TD_Facebook[7], 1);
- G_TD_Facebook[8] = TextDrawCreate(394.000000, 4.000000, "ld_spac:white");
- TextDrawBackgroundColor(G_TD_Facebook[8], 255);
- TextDrawFont(G_TD_Facebook[8], 4);
- TextDrawLetterSize(G_TD_Facebook[8], 0.500000, 1.799998);
- TextDrawColor(G_TD_Facebook[8], 0x425A8CFF);
- TextDrawSetOutline(G_TD_Facebook[8], 0);
- TextDrawSetProportional(G_TD_Facebook[8], 1);
- TextDrawSetShadow(G_TD_Facebook[8], 0);
- TextDrawUseBox(G_TD_Facebook[8], 1);
- TextDrawBoxColor(G_TD_Facebook[8], 0x425A8CFF);
- TextDrawTextSize(G_TD_Facebook[8], 60.000000, 19.000000);
- TextDrawSetSelectable(G_TD_Facebook[8], 1);
- G_TD_Facebook[9] = TextDrawCreate(454.000000, 4.000000, "ld_spac:white");
- TextDrawBackgroundColor(G_TD_Facebook[9], 255);
- TextDrawFont(G_TD_Facebook[9], 4);
- TextDrawLetterSize(G_TD_Facebook[9], 0.500000, 1.799998);
- TextDrawColor(G_TD_Facebook[9], 0x425A8CFF);
- TextDrawSetOutline(G_TD_Facebook[9], 0);
- TextDrawSetProportional(G_TD_Facebook[9], 1);
- TextDrawSetShadow(G_TD_Facebook[9], 0);
- TextDrawUseBox(G_TD_Facebook[9], 1);
- TextDrawBoxColor(G_TD_Facebook[9], 0x425A8CFF);
- TextDrawTextSize(G_TD_Facebook[9], 77.000000, 19.000000);
- TextDrawSetSelectable(G_TD_Facebook[9], 1);
- G_TD_Facebook[10] = TextDrawCreate(399.000000, 9.000000, "__Home________Find Friends");
- TextDrawBackgroundColor(G_TD_Facebook[10], 255);
- TextDrawFont(G_TD_Facebook[10], 1);
- TextDrawLetterSize(G_TD_Facebook[10], 0.239998, 0.799996);
- TextDrawColor(G_TD_Facebook[10], -589505281);
- TextDrawSetOutline(G_TD_Facebook[10], 0);
- TextDrawSetProportional(G_TD_Facebook[10], 1);
- TextDrawSetShadow(G_TD_Facebook[10], 0);
- TextDrawSetSelectable(G_TD_Facebook[10], 0);
- //=========================================================================//
- //=========================================================================//
- G_TD_Facebook_CONF[0] = TextDrawCreate(618.000000, 28.000000, "_");
- TextDrawBackgroundColor(G_TD_Facebook_CONF[0], 255);
- TextDrawFont(G_TD_Facebook_CONF[0], 1);
- TextDrawLetterSize(G_TD_Facebook_CONF[0], 0.500000, 6.699998);
- TextDrawColor(G_TD_Facebook_CONF[0], -1768515876);
- TextDrawSetOutline(G_TD_Facebook_CONF[0], 0);
- TextDrawSetProportional(G_TD_Facebook_CONF[0], 1);
- TextDrawSetShadow(G_TD_Facebook_CONF[0], 0);
- TextDrawUseBox(G_TD_Facebook_CONF[0], 1);
- TextDrawBoxColor(G_TD_Facebook_CONF[0], 2105376255);
- TextDrawTextSize(G_TD_Facebook_CONF[0], 529.000000, 3.000000);
- TextDrawSetSelectable(G_TD_Facebook_CONF[0], 0);
- G_TD_Facebook_CONF[1] = TextDrawCreate(617.000000, 29.000000, "_");
- TextDrawBackgroundColor(G_TD_Facebook_CONF[1], 255);
- TextDrawFont(G_TD_Facebook_CONF[1], 1);
- TextDrawLetterSize(G_TD_Facebook_CONF[1], 0.500000, 6.499999);
- TextDrawColor(G_TD_Facebook_CONF[1], 505303240);
- TextDrawSetOutline(G_TD_Facebook_CONF[1], 0);
- TextDrawSetProportional(G_TD_Facebook_CONF[1], 1);
- TextDrawSetShadow(G_TD_Facebook_CONF[1], 0);
- TextDrawUseBox(G_TD_Facebook_CONF[1], 1);
- TextDrawBoxColor(G_TD_Facebook_CONF[1], -589505316);
- TextDrawTextSize(G_TD_Facebook_CONF[1], 530.000000, 3.000000);
- TextDrawSetSelectable(G_TD_Facebook_CONF[1], 0);
- G_TD_Facebook_CONF[2] = TextDrawCreate(533.000000, 28.000000, "ld_spac:white");
- TextDrawBackgroundColor(G_TD_Facebook_CONF[2], 255);
- TextDrawFont(G_TD_Facebook_CONF[2], 4);
- TextDrawLetterSize(G_TD_Facebook_CONF[2], 0.500000, 1.799998);
- TextDrawColor(G_TD_Facebook_CONF[2], -589505316);
- TextDrawSetOutline(G_TD_Facebook_CONF[2], 0);
- TextDrawSetProportional(G_TD_Facebook_CONF[2], 1);
- TextDrawSetShadow(G_TD_Facebook_CONF[2], 0);
- TextDrawUseBox(G_TD_Facebook_CONF[2], 1);
- TextDrawBoxColor(G_TD_Facebook_CONF[2], -589505316);
- TextDrawTextSize(G_TD_Facebook_CONF[2], 81.000000, 18.000000);
- TextDrawSetSelectable(G_TD_Facebook_CONF[2], 1);
- G_TD_Facebook_CONF[3] = TextDrawCreate(533.000000, 47.000000, "ld_spac:white");
- TextDrawBackgroundColor(G_TD_Facebook_CONF[3], 255);
- TextDrawFont(G_TD_Facebook_CONF[3], 4);
- TextDrawLetterSize(G_TD_Facebook_CONF[3], 0.500000, 2.299998);
- TextDrawColor(G_TD_Facebook_CONF[3], -589505316);
- TextDrawSetOutline(G_TD_Facebook_CONF[3], 0);
- TextDrawSetProportional(G_TD_Facebook_CONF[3], 1);
- TextDrawSetShadow(G_TD_Facebook_CONF[3], 0);
- TextDrawUseBox(G_TD_Facebook_CONF[3], 1);
- TextDrawBoxColor(G_TD_Facebook_CONF[3], -589505316);
- TextDrawTextSize(G_TD_Facebook_CONF[3], 81.000000, 20.000000);
- TextDrawSetSelectable(G_TD_Facebook_CONF[3], 1);
- G_TD_Facebook_CONF[4] = TextDrawCreate(533.000000, 68.000000, "ld_spac:white");
- TextDrawBackgroundColor(G_TD_Facebook_CONF[4], 255);
- TextDrawFont(G_TD_Facebook_CONF[4], 4);
- TextDrawLetterSize(G_TD_Facebook_CONF[4], 0.500000, 1.799998);
- TextDrawColor(G_TD_Facebook_CONF[4], -589505316);
- TextDrawSetOutline(G_TD_Facebook_CONF[4], 0);
- TextDrawSetProportional(G_TD_Facebook_CONF[4], 1);
- TextDrawSetShadow(G_TD_Facebook_CONF[4], 0);
- TextDrawUseBox(G_TD_Facebook_CONF[4], 1);
- TextDrawBoxColor(G_TD_Facebook_CONF[4], 0x425A8CFF);
- TextDrawTextSize(G_TD_Facebook_CONF[4], 81.000000, 18.000000);
- TextDrawSetSelectable(G_TD_Facebook_CONF[4], 1);
- G_TD_Facebook_CONF[5] = TextDrawCreate(545.000000, 31.000000, "Credits~n~~n~Settings~n~~n~Log Out");
- TextDrawBackgroundColor(G_TD_Facebook_CONF[5], 255);
- TextDrawFont(G_TD_Facebook_CONF[5], 1);
- TextDrawLetterSize(G_TD_Facebook_CONF[5], 0.209998, 1.099997);
- TextDrawColor(G_TD_Facebook_CONF[5], -1768515841);
- TextDrawSetOutline(G_TD_Facebook_CONF[5], 0);
- TextDrawSetProportional(G_TD_Facebook_CONF[5], 1);
- TextDrawSetShadow(G_TD_Facebook_CONF[5], 0);
- TextDrawSetSelectable(G_TD_Facebook_CONF[5], 0);
- return 1;
- }
- P_TDraw_LogarF(playerid)
- {
- //=================// login //=================//
- P_TD_LogarF[playerid][0] = CreatePlayerTextDraw(playerid,371.000000, 27.000000, "______________________"); //user
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][0], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][0], 0.250000, 1.200000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][0], 336860310);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][0], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][0], 460.000000, 14.000000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][0], true);
- P_TD_LogarF[playerid][1] = CreatePlayerTextDraw(playerid,465.000000, 9.000000, "______________________"); //password
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][1], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][1], 2);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][1], 0.750000, 3.400002);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][1], 336860310);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][1], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][1], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][1], 555.00000,22.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][1], true);
- //=================// registro //=================//
- P_TD_LogarF[playerid][2] = CreatePlayerTextDraw(playerid,363.000000, 140.000000, "First Name");
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][2], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][2], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][2], 0.300000, 1.300000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][2], -1061109505);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][2], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][2], 467.00000,22.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][2], true);
- P_TD_LogarF[playerid][3] = CreatePlayerTextDraw(playerid,477.000000, 140.000000, "Last Name");
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][3], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][3], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][3], 0.300000, 1.300000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][3], -1061109505);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][3], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][3], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][3], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][3], 575.00000,22.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][3], true);
- P_TD_LogarF[playerid][4] = CreatePlayerTextDraw(playerid,363.000000, 171.000000, "Email");
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][4], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][4], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][4], 0.300000, 1.300000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][4], -1061109505);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][4], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][4], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][4], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][4], 575.00000,22.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][4], true);
- P_TD_LogarF[playerid][5] = CreatePlayerTextDraw(playerid,363.000000, 204.000000, "New Password");
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][5], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][5], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][5], 0.300000, 1.300000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][5], -1061109505);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][5], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][5], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][5], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][5], 575.00000,22.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][5], true);
- P_TD_LogarF[playerid][6] = CreatePlayerTextDraw(playerid,363.000000, 246.000000, "Month/Day/Year");
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][6], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][6], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][6], 0.240000, 1.300000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][6], -1061109505);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][6], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][6], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_LogarF[playerid][6], 0);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][6], 430.00000,17.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][6], true);
- P_TD_LogarF[playerid][7] = CreatePlayerTextDraw(playerid,361.000000, 259.000000, "."); //female
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][7], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][7], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][7], 0.699999, 2.600000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][7], -1);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][7], 1);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][7], 1);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][7], 372.00000,17.50000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][7], true);
- P_TD_LogarF[playerid][8] = CreatePlayerTextDraw(playerid,420.000000, 259.000000, "."); //male
- PlayerTextDrawBackgroundColor(playerid,P_TD_LogarF[playerid][8], 255);
- PlayerTextDrawFont(playerid,P_TD_LogarF[playerid][8], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_LogarF[playerid][8], 0.699999, 2.600000);
- PlayerTextDrawColor(playerid,P_TD_LogarF[playerid][8], -1);
- PlayerTextDrawSetOutline(playerid,P_TD_LogarF[playerid][8], 1);
- PlayerTextDrawSetProportional(playerid,P_TD_LogarF[playerid][8], 1);
- PlayerTextDrawTextSize(playerid,P_TD_LogarF[playerid][8], 427.00000,17.50000);
- PlayerTextDrawSetSelectable(playerid,P_TD_LogarF[playerid][8], true);
- //=================// hud //=================//
- P_TD_Facebook[playerid][0] = CreatePlayerTextDraw(playerid,41.000000, 7.000000, "Search Facebook");
- PlayerTextDrawBackgroundColor(playerid,P_TD_Facebook[playerid][0], 255);
- PlayerTextDrawFont(playerid,P_TD_Facebook[playerid][0], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_Facebook[playerid][0], 0.289999, 0.899996);
- PlayerTextDrawColor(playerid,P_TD_Facebook[playerid][0], -1768515841);
- PlayerTextDrawSetOutline(playerid,P_TD_Facebook[playerid][0], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_Facebook[playerid][0], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_Facebook[playerid][0], 0);
- PlayerTextDrawTextSize(playerid,P_TD_Facebook[playerid][0], 260.00000,16.00000);
- PlayerTextDrawSetSelectable(playerid,P_TD_Facebook[playerid][0], true);
- P_TD_Facebook[playerid][1] = CreatePlayerTextDraw(playerid,304.000000, 6.000000, "LD_TATT:5cross3");
- PlayerTextDrawBackgroundColor(playerid,P_TD_Facebook[playerid][1], 0);
- PlayerTextDrawFont(playerid,P_TD_Facebook[playerid][1], 4);
- PlayerTextDrawLetterSize(playerid,P_TD_Facebook[playerid][1], 0.500000, 1.000000);
- PlayerTextDrawColor(playerid,P_TD_Facebook[playerid][1], -926365496);
- PlayerTextDrawSetOutline(playerid,P_TD_Facebook[playerid][1], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_Facebook[playerid][1], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_Facebook[playerid][1], 1);
- PlayerTextDrawUseBox(playerid,P_TD_Facebook[playerid][1], 1);
- PlayerTextDrawBoxColor(playerid,P_TD_Facebook[playerid][1], 0);
- PlayerTextDrawTextSize(playerid,P_TD_Facebook[playerid][1], 15.000000, 16.000000);
- PlayerTextDrawSetSelectable(playerid,P_TD_Facebook[playerid][1], 0);
- P_TD_Facebook[playerid][2] = CreatePlayerTextDraw(playerid,326.000000, 9.000000, "_");
- PlayerTextDrawBackgroundColor(playerid,P_TD_Facebook[playerid][2], 255);
- PlayerTextDrawFont(playerid,P_TD_Facebook[playerid][2], 1);
- PlayerTextDrawLetterSize(playerid,P_TD_Facebook[playerid][2], 0.219998, 0.799996);
- PlayerTextDrawColor(playerid,P_TD_Facebook[playerid][2], -589505281);
- PlayerTextDrawSetOutline(playerid,P_TD_Facebook[playerid][2], 0);
- PlayerTextDrawSetProportional(playerid,P_TD_Facebook[playerid][2], 1);
- PlayerTextDrawSetShadow(playerid,P_TD_Facebook[playerid][2], 0);
- PlayerTextDrawSetSelectable(playerid,P_TD_Facebook[playerid][2], 0);
- return 1;
- }
- public OnQueryError(errorid, error[], callback[], query[], connectionHandle)
- {
- switch(errorid)
- {
- case CR_SERVER_GONE_ERROR:
- {
- for(new fail = 0; fail < 4; fail++) print(" * Conection Lost! *");
- mysql_reconnect(connectionHandle);
- }
- case ER_SYNTAX_ERROR:for(new fail = 0; fail < 4; fail++) print(" * Error in Syntax *");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement