14.04.2018, 17:27
Criei uma tela de login no tde selecionei a opзгo pra ser clicavel й tals mais na hora de abrir o servido ai passo o mause por cima de uma opзгo ai fica vermelho de boa ai vo pra opзгo debaixo ai seleciona ela tambйm nг to entendendo print (https://imgur.com/a/Xjp0v)
Code do da tela de login
Code do da tela de login
PHP код:
TextDrawSetSelectable(Text:TDEditor_TD[4], true);
TextDrawSetSelectable(Text:TDEditor_TD[5], true);
TextDrawSetSelectable(Text:TDEditor_TD[9], true);
TDEditor_TD[0] = TextDrawCreate(218.125000, 97.250022, "1");
TextDrawLetterSize(TDEditor_TD[0], -0.033750, 26.094175);
TextDrawTextSize(TDEditor_TD[0], 423.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -1);
TextDrawUseBox(TDEditor_TD[0], 1);
TextDrawBoxColor(TDEditor_TD[0], 103);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawSetOutline(TDEditor_TD[0], 0);
TextDrawBackgroundColor(TDEditor_TD[0], 255);
TextDrawFont(TDEditor_TD[0], 1);
TextDrawSetProportional(TDEditor_TD[0], 1);
TextDrawSetShadow(TDEditor_TD[0], 0);
TDEditor_TD[1] = TextDrawCreate(218.125000, 97.249984, "1");
TextDrawLetterSize(TDEditor_TD[1], 0.040625, 2.154167);
TextDrawTextSize(TDEditor_TD[1], 423.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawUseBox(TDEditor_TD[1], 1);
TextDrawBoxColor(TDEditor_TD[1], 11242239);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetOutline(TDEditor_TD[1], 0);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 0);
TextDrawSetProportional(TDEditor_TD[1], 1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TDEditor_TD[2] = TextDrawCreate(268.750000, 96.083305, "Gangs_Brasil");
TextDrawLetterSize(TDEditor_TD[2], 0.600000, 2.019999);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawSetOutline(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 0);
TextDrawSetProportional(TDEditor_TD[2], 1);
TextDrawSetShadow(TDEditor_TD[2], 0);
TDEditor_TD[3] = TextDrawCreate(361.875000, 94.916656, "RJ__");
TextDrawLetterSize(TDEditor_TD[3], 0.198749, 1.075000);
TextDrawAlignment(TDEditor_TD[3], 1);
TextDrawColor(TDEditor_TD[3], -1);
TextDrawSetShadow(TDEditor_TD[3], 0);
TextDrawSetOutline(TDEditor_TD[3], 0);
TextDrawBackgroundColor(TDEditor_TD[3], 255);
TextDrawFont(TDEditor_TD[3], 1);
TextDrawSetProportional(TDEditor_TD[3], 1);
TextDrawSetShadow(TDEditor_TD[3], 0);
TDEditor_TD[4] = TextDrawCreate(278.595581, 212.166610, "ACESSAR~n~__CONTA");
TextDrawLetterSize(TDEditor_TD[4], 0.390000, 1.407500);
TextDrawAlignment(TDEditor_TD[4], 1);
TextDrawColor(TDEditor_TD[4], -1);
TextDrawSetShadow(TDEditor_TD[4], 0);
TextDrawSetOutline(TDEditor_TD[4], 0);
TextDrawBackgroundColor(TDEditor_TD[4], 255);
TextDrawFont(TDEditor_TD[4], 2);
TextDrawSetProportional(TDEditor_TD[4], 1);
TextDrawSetShadow(TDEditor_TD[4], 0);
TextDrawSetSelectable(TDEditor_TD[4], true);
TDEditor_TD[5] = TextDrawCreate(274.529418, 142.749969, "REGISTRAR_~n~____CONTA");
TextDrawLetterSize(TDEditor_TD[5], 0.370000, 1.594167);
TextDrawAlignment(TDEditor_TD[5], 1);
TextDrawColor(TDEditor_TD[5], -1);
TextDrawSetShadow(TDEditor_TD[5], 0);
TextDrawSetOutline(TDEditor_TD[5], 0);
TextDrawBackgroundColor(TDEditor_TD[5], 255);
TextDrawFont(TDEditor_TD[5], 2);
TextDrawSetProportional(TDEditor_TD[5], 1);
TextDrawSetShadow(TDEditor_TD[5], 0);
TextDrawSetSelectable(TDEditor_TD[5], true);
TDEditor_TD[6] = TextDrawCreate(245.625000, 184.750030, "-");
TextDrawLetterSize(TDEditor_TD[6], 10.203124, 0.538332);
TextDrawAlignment(TDEditor_TD[6], 1);
TextDrawColor(TDEditor_TD[6], -1);
TextDrawSetShadow(TDEditor_TD[6], 0);
TextDrawSetOutline(TDEditor_TD[6], 0);
TextDrawBackgroundColor(TDEditor_TD[6], 255);
TextDrawFont(TDEditor_TD[6], 1);
TextDrawSetProportional(TDEditor_TD[6], 1);
TextDrawSetShadow(TDEditor_TD[6], 0);
TDEditor_TD[7] = TextDrawCreate(246.250000, 262.333343, "-");
TextDrawLetterSize(TDEditor_TD[7], 10.203124, 0.538332);
TextDrawAlignment(TDEditor_TD[7], 1);
TextDrawColor(TDEditor_TD[7], -1);
TextDrawSetShadow(TDEditor_TD[7], 0);
TextDrawSetOutline(TDEditor_TD[7], 0);
TextDrawBackgroundColor(TDEditor_TD[7], 255);
TextDrawFont(TDEditor_TD[7], 1);
TextDrawSetProportional(TDEditor_TD[7], 1);
TextDrawSetShadow(TDEditor_TD[7], 0);
TDEditor_TD[8] = TextDrawCreate(246.875000, 120.583366, "-");
TextDrawLetterSize(TDEditor_TD[8], 10.203124, 0.538332);
TextDrawAlignment(TDEditor_TD[8], 1);
TextDrawColor(TDEditor_TD[8], -1);
TextDrawSetShadow(TDEditor_TD[8], 0);
TextDrawSetOutline(TDEditor_TD[8], 0);
TextDrawBackgroundColor(TDEditor_TD[8], 255);
TextDrawFont(TDEditor_TD[8], 1);
TextDrawSetProportional(TDEditor_TD[8], 1);
TextDrawSetShadow(TDEditor_TD[8], 0);
TDEditor_TD[9] = TextDrawCreate(240.625000, 291.500122, "X");
TextDrawLetterSize(TDEditor_TD[9], 0.400000, 1.600000);
TextDrawTextSize(TDEditor_TD[9], 251.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[9], 1);
TextDrawColor(TDEditor_TD[9], -1);
TextDrawUseBox(TDEditor_TD[9], 1);
TextDrawBoxColor(TDEditor_TD[9], -16776961);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetOutline(TDEditor_TD[9], 0);
TextDrawBackgroundColor(TDEditor_TD[9], 255);
TextDrawFont(TDEditor_TD[9], 1);
TextDrawSetProportional(TDEditor_TD[9], 1);
TextDrawSetShadow(TDEditor_TD[9], 0);
TextDrawSetSelectable(TDEditor_TD[9], true);
TDEditor_TD[10] = TextDrawCreate(256.875000, 290.333343, "SAIR_DO_SERVIDOR");
TextDrawLetterSize(TDEditor_TD[10], 0.400000, 1.600000);
TextDrawAlignment(TDEditor_TD[10], 1);
TextDrawColor(TDEditor_TD[10], -1);
TextDrawSetShadow(TDEditor_TD[10], 0);
TextDrawSetOutline(TDEditor_TD[10], 0);
TextDrawBackgroundColor(TDEditor_TD[10], 255);
TextDrawFont(TDEditor_TD[10], 2);
TextDrawSetProportional(TDEditor_TD[10], 1);
TextDrawSetShadow(TDEditor_TD[10], 0);
TextDrawSetSelectable(TDEditor_TD[10], true);
PHP код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == TDEditor_TD[5])
{
if(Player[playerid][Registrado] == true)
{
GameTextForPlayer(playerid, "~r~VOCE JA TEM UMA CONTA EM NOSSO SERVIDOR", 3000, 3);
}
else
{
new String[250];
format(String, sizeof(String), "{FFFFFF}Seja bem vindo ao Servidor pela Primeira vez\n\n\
- Seu Nick: {CD0000}%s\n\n\
{FFFFFF}Digite uma senha e cliquem em {CD0000}Continuar!", getPName(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "{FFFFFF}Registrando sua Conta", String, "Continuar", "Cancelar");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
}
return 1;
}
if(clickedid == TDEditor_TD[4])
{
if(Player[playerid][Registrado] == false)
{
GameTextForPlayer(playerid, "~r~VOCE AINDA NAO TEM UMA CONTA EM NOSSO SERVIDOR", 3000, 3);
}
else
{
new String[250];
format(String, sizeof(String), CONTAS, getPName(playerid));
if(DOF2_FileExists(String))
format(String, sizeof(String), "{FFFFFF}Seja bem vindo novamente ao Servidor \n\n\
- Seu Nick: {CD0000}%s \n\n\
{FFFFFF}Digite sua senha e cliquem em Continuar!", getPName(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "{FFFFFF}Acessando sua Conta", String, "Continuar", "Sair");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
}
return 1;
}
if(clickedid == TDEditor_TD[9])
{
SCM(playerid, COR_LARANJA, " ");
SCM(playerid, COR_LARANJA, "VOLTE SEMPRE");
SCM(playerid, COR_LARANJA, "EQUIPE GANGS BRASIL - www.equipegb.net");
Kick(playerid);
}
return 1;
}