[Ajuda] TextDraw Clicaveis
#3

PHP код:
new Text:TextLogin0[6];
new 
PlayerText:TextLogin1[4][MAX_PLAYERS];
OnGameModeInit:
    
TextLogin0[0] = TextDrawCreate(2.0000001.500000"usebox");
    
TextDrawLetterSize(TextLogin0[0], 0.00000016.794445);
    
TextDrawTextSize(TextLogin0[0], 637.4444580.000000);
    
TextDrawAlignment(TextLogin0[0], 1);
    
TextDrawColor(TextLogin0[0], 0);
    
TextDrawUseBox(TextLogin0[0], true);
    
TextDrawBoxColor(TextLogin0[0], 102);
    
TextDrawSetShadow(TextLogin0[0], 0);
    
TextDrawSetOutline(TextLogin0[0], 0);
    
TextDrawFont(TextLogin0[0], 0);
    
TextLogin0[1] = TextDrawCreate(2.000000320.907409"usebox");
    
TextDrawLetterSize(TextLogin0[1], 0.00000013.913785);
    
TextDrawTextSize(TextLogin0[1], 637.4444580.000000);
    
TextDrawAlignment(TextLogin0[1], 1);
    
TextDrawColor(TextLogin0[1], 0);
    
TextDrawUseBox(TextLogin0[1], true);
    
TextDrawBoxColor(TextLogin0[1], 102);
    
TextDrawSetShadow(TextLogin0[1], 0);
    
TextDrawSetOutline(TextLogin0[1], 0);
    
TextDrawFont(TextLogin0[1], 0);
    
TextLogin0[2] = TextDrawCreate(182.7778476.740743"Cidade Virtual");
    
TextDrawLetterSize(TextLogin0[2], 0.9272226.349626);
    
TextDrawAlignment(TextLogin0[2], 1);
    
TextDrawColor(TextLogin0[2], 16777215);
    
TextDrawSetShadow(TextLogin0[2], 0);
    
TextDrawSetOutline(TextLogin0[2], 1);
    
TextDrawBackgroundColor(TextLogin0[2], 51);
    
TextDrawFont(TextLogin0[2], 1);
    
TextDrawSetProportional(TextLogin0[2], 1);
    
TextLogin0[3] = TextDrawCreate(368.88870256.518501"V1.0");
    
TextDrawLetterSize(TextLogin0[3], 0.4499991.600000);
    
TextDrawAlignment(TextLogin0[3], 1);
    
TextDrawColor(TextLogin0[3], -1);
    
TextDrawSetShadow(TextLogin0[3], 0);
    
TextDrawSetOutline(TextLogin0[3], 1);
    
TextDrawBackgroundColor(TextLogin0[3], 51);
    
TextDrawFont(TextLogin0[3], 1);
    
TextDrawSetProportional(TextLogin0[3], 1);
    
TextLogin0[4] = TextDrawCreate(203.33329766.370353"www.cidadevirtual.com.br");
    
TextDrawLetterSize(TextLogin0[4], 0.4499991.600000);
    
TextDrawAlignment(TextLogin0[4], 1);
    
TextDrawColor(TextLogin0[4], -1);
    
TextDrawSetShadow(TextLogin0[4], 0);
    
TextDrawSetOutline(TextLogin0[4], 1);
    
TextDrawBackgroundColor(TextLogin0[4], 51);
    
TextDrawFont(TextLogin0[4], 1);
    
TextDrawSetProportional(TextLogin0[4], 1);
    
TextLogin0[5] = TextDrawCreate(150.55560392.296318"Melhor Qualidade do que Quantidade!");
    
TextDrawLetterSize(TextLogin0[5], 0.4499991.600000);
    
TextDrawAlignment(TextLogin0[5], 1);
    
TextDrawColor(TextLogin0[5], -1);
    
TextDrawSetShadow(TextLogin0[5], 0);
    
TextDrawSetOutline(TextLogin0[5], 1);
    
TextDrawBackgroundColor(TextLogin0[5], 51);
    
TextDrawFont(TextLogin0[5], 1);
    
TextDrawSetProportional(TextLogin0[5], 1);
}
CarregarTextPlayer(playerid)
{
    
TextLogin1[playerid][0] = CreatePlayerTextDraw(playerid121.666679141.037078"Login");
    
PlayerTextDrawLetterSize(playeridTextLogin1[playerid][0], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextLogin1[playerid][0], 1);
    
PlayerTextDrawColor(playeridTextLogin1[playerid][0], -1);
    
PlayerTextDrawSetShadow(playeridTextLogin1[playerid][0], 0);
    
PlayerTextDrawSetOutline(playeridTextLogin1[playerid][0], 1);
    
PlayerTextDrawBackgroundColor(playeridTextLogin1[playerid][0], 51);
    
PlayerTextDrawFont(playeridTextLogin1[playerid][0], 1);
    
PlayerTextDrawSetProportional(playeridTextLogin1[playerid][0], 1);
    
TextDrawSetSelectable(playeridTextLogin1[playerid][0], true);
    
TextLogin1[playerid][1] = CreatePlayerTextDraw(playerid207.777770141.037017"Registro");
    
PlayerTextDrawLetterSize(playeridTextLogin1[playerid][1], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextLogin1[playerid][1], 1);
    
PlayerTextDrawColor(playeridTextLogin1[playerid][1], -1);
    
PlayerTextDrawSetShadow(playeridTextLogin1[playerid][1], 0);
    
PlayerTextDrawSetOutline(playeridTextLogin1[playerid][1], 1);
    
PlayerTextDrawBackgroundColor(playeridTextLogin1[playerid][1], 51);
    
PlayerTextDrawFont(playeridTextLogin1[playerid][1], 1);
    
PlayerTextDrawSetProportional(playeridTextLogin1[playerid][1], 1);
    
TextDrawSetSelectable(playeridTextLogin1[playerid][1], true);
    
TextLogin1[playerid][2] = CreatePlayerTextDraw(playerid311.666778141.555511"Creditos");
    
PlayerTextDrawLetterSize(playeridTextLogin1[playerid][2], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextLogin1[playerid][2], 1);
    
PlayerTextDrawColor(playeridTextLogin1[playerid][2], -1);
    
PlayerTextDrawSetShadow(playeridTextLogin1[playerid][2], 0);
    
PlayerTextDrawSetOutline(playeridTextLogin1[playerid][2], 1);
    
PlayerTextDrawBackgroundColor(playeridTextLogin1[playerid][2], 51);
    
PlayerTextDrawFont(playeridTextLogin1[playerid][2], 1);
    
PlayerTextDrawSetProportional(playeridTextLogin1[playerid][2], 1);
    
TextDrawSetSelectable(playeridTextLogin1[playerid][2], true);
    
TextLogin1[playerid][3] = CreatePlayerTextDraw(playerid430.000091141.037002"Sair");
    
PlayerTextDrawLetterSize(playeridTextLogin1[playerid][3], 0.4499991.600000);
    
PlayerTextDrawAlignment(playeridTextLogin1[playerid][3], 1);
    
PlayerTextDrawColor(playeridTextLogin1[playerid][3], -1);
    
PlayerTextDrawSetShadow(playeridTextLogin1[playerid][3], 0);
    
PlayerTextDrawSetOutline(playeridTextLogin1[playerid][3], 1);
    
PlayerTextDrawBackgroundColor(playeridTextLogin1[playerid][3], 51);
    
PlayerTextDrawFont(playeridTextLogin1[playerid][3], 1);
    
PlayerTextDrawSetProportional(playeridTextLogin1[playerid][3], 1);
    
TextDrawSetSelectable(playeridTextLogin1[playerid][3], true);
    
SelectTextDraw(playerid0xFFFFFFFF);
    for(new 
i<sizeof(TextLogin0); j++)
        
TextDrawShowForPlayer(playeridTextLogin0[i]);
    for(new 
isizeof(TextLogin1[]); j++)
        
PlayerTextDrawShow(playeridTextLogin1[playerid][i]);
}
public 
OnPlayerClickTextDraw(playeridText:clickedid)
{
    if(
clickedid == TextINVALID_TEXT_DRAW)
    {
        
SetlectTextDraw(playerid0x35F344F);
    }
       return 
1;
}
OnPlayerConnect:
    
CarregarTextPlayer(playerid); 
Ver se vai da certo aн
Reply


Messages In This Thread
TextDraw Clicaveis - by BuDweiSeR - 08.12.2017, 15:30
Re: [AJUDA]TextDraw Clicaveis - by DelK - 08.12.2017, 15:42
Re: [AJUDA]TextDraw Clicaveis - by Warlley - 08.12.2017, 16:07
Re: [AJUDA]TextDraw Clicaveis - by BuDweiSeR - 08.12.2017, 17:42
Re: [AJUDA]TextDraw Clicaveis - by RafaeeL - 12.12.2017, 22:16
Re: [AJUDA]TextDraw Clicaveis - by DelK - 12.12.2017, 22:41
Re: [AJUDA]TextDraw Clicaveis - by RogerCosta - 12.12.2017, 23:15
Re: [AJUDA]TextDraw Clicaveis - by BuDweiSeR - 13.12.2017, 00:37
Re: TextDraw Clicaveis - by BuDweiSeR - 18.12.2017, 01:15
Re: TextDraw Clicaveis - by Marllun - 18.12.2017, 01:18

Forum Jump:


Users browsing this thread: 1 Guest(s)