[AJUDA] Text Draw
#2

pawn Код:
//TOPO DO GM
    new Text:Textdraw0[MAX_PLAYERS];
    new Text:Textdraw1[MAX_PLAYERS];
    new Text:Textdraw2[MAX_PLAYERS];
    new Text:Textdraw3[MAX_PLAYERS];
    new Text:Textdraw4[MAX_PLAYERS];
    new Text:Textdraw5[MAX_PLAYERS];
    new Text:Textdraw6[MAX_PLAYERS];
// OnPlayerConnect 
             new texto1[256];
    new texto2[256];
    new texto4[256];
    new texto5[256];
    new texto6[256];
    new sexo[10];
    new nxtlevel = PlayerInfo[playerid][pLevel]+1;
    new expamount = nxtlevel*levelexp;
    if(PlayerInfo[playerid][pSex] == 1)
    {
        format(sexo,10,"Masculino");
    }
    if(PlayerInfo[playerid][pSex] == 2)
    {
        format(sexo,10,"Feminino");
    }
    format(texto1,sizeof(texto1),"Respeito: %d/%d",PlayerInfo[playerid][pExp],expamount);
    format(texto2,sizeof(texto1),"Level: %d",PlayerInfo[playerid][pLevel]);
    format(texto4,sizeof(texto1),"Idade: %d",PlayerInfo[playerid][pAge]);
    format(texto5,sizeof(texto1),"Sexo: %s",sexo);
    format(texto6,sizeof(texto1),"Nome: %s",pNome(playerid));
    Textdraw0[playerid] = TextDrawCreate(44.000000, 322.000000,texto1);
    TextDrawBackgroundColor(Textdraw0[playerid], 255);
    TextDrawFont(Textdraw0[playerid], 1);
    TextDrawLetterSize(Textdraw0[playerid], 0.219999, 1.299999);
    TextDrawColor(Textdraw0[playerid], 16777215);
    TextDrawSetOutline(Textdraw0[playerid], 0);
    TextDrawSetProportional(Textdraw0[playerid], 1);
    TextDrawSetShadow(Textdraw0[playerid], 1);

    Textdraw1[playerid] = TextDrawCreate(44.000000, 310.000000, texto2);
    TextDrawBackgroundColor(Textdraw1[playerid], 255);
    TextDrawFont(Textdraw1[playerid], 1);
    TextDrawLetterSize(Textdraw1[playerid], 0.219999, 1.299998);
    TextDrawColor(Textdraw1[playerid], -16711681);
    TextDrawSetOutline(Textdraw1[playerid], 0);
    TextDrawSetProportional(Textdraw1[playerid], 1);
    TextDrawSetShadow(Textdraw1[playerid], 1);

    Textdraw2[playerid] = TextDrawCreate(85.000000, 257.000000, "          ");
    TextDrawAlignment(Textdraw2[playerid], 2);
    TextDrawBackgroundColor(Textdraw2[playerid], 255);
    TextDrawFont(Textdraw2[playerid], 1);
    TextDrawLetterSize(Textdraw2[playerid], 0.500000, 1.000000);
    TextDrawColor(Textdraw2[playerid], -1);
    TextDrawSetOutline(Textdraw2[playerid], 1);
    TextDrawSetProportional(Textdraw2[playerid], 1);
    TextDrawUseBox(Textdraw2[playerid], 1);
    TextDrawBoxColor(Textdraw2[playerid], 255);
    TextDrawTextSize(Textdraw2[playerid], -253.000000, -97.000000);

    Textdraw3[playerid] = TextDrawCreate(44.000000, 298.000000, texto4);
    TextDrawBackgroundColor(Textdraw3[playerid], 255);
    TextDrawFont(Textdraw3[playerid], 1);
    TextDrawLetterSize(Textdraw3[playerid], 0.219999, 1.299998);
    TextDrawColor(Textdraw3[playerid], -65281);
    TextDrawSetOutline(Textdraw3[playerid], 0);
    TextDrawSetProportional(Textdraw3[playerid], 1);
    TextDrawSetShadow(Textdraw3[playerid], 1);

    Textdraw4[playerid] = TextDrawCreate(44.000000, 285.000000, texto5);
    TextDrawBackgroundColor(Textdraw4[playerid], 255);
    TextDrawFont(Textdraw4[playerid], 1);
    TextDrawLetterSize(Textdraw4[playerid], 0.219999, 1.299999);
    TextDrawColor(Textdraw4[playerid], 16711935);
    TextDrawSetOutline(Textdraw4[playerid], 0);
    TextDrawSetProportional(Textdraw4[playerid], 1);
    TextDrawSetShadow(Textdraw4[playerid], 1);

    Textdraw5[playerid] = TextDrawCreate(44.000000, 273.000000, texto6);
    TextDrawBackgroundColor(Textdraw5[playerid], 255);
    TextDrawFont(Textdraw5[playerid], 1);
    TextDrawLetterSize(Textdraw5[playerid], 0.219999, 1.299999);
    TextDrawColor(Textdraw5[playerid], -1);
    TextDrawSetOutline(Textdraw5[playerid], 0);
    TextDrawSetProportional(Textdraw5[playerid], 1);
    TextDrawSetShadow(Textdraw5[playerid], 1);

    Textdraw6[playerid] = TextDrawCreate(54.000000, 257.000000, "Informacoes:");
    TextDrawBackgroundColor(Textdraw6[playerid], 255);
    TextDrawFont(Textdraw6[playerid], 1);
    TextDrawLetterSize(Textdraw6[playerid], 0.219999, 1.299998);
    TextDrawColor(Textdraw6[playerid], -16776961);
    TextDrawSetOutline(Textdraw6[playerid], 0);
    TextDrawSetProportional(Textdraw6[playerid], 1);
    TextDrawSetShadow(Textdraw6[playerid], 1);
TextDrawShowForPlayer(playerid, Textdraw6[playerid]);
TextDrawShowForPlayer(playerid, Textdraw5[playerid]);
TextDrawShowForPlayer(playerid, Textdraw4[playerid]);
TextDrawShowForPlayer(playerid, Textdraw3[playerid]);
TextDrawShowForPlayer(playerid, Textdraw2[playerid]);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
Fiz na correria, ve se pega!
Reply


Messages In This Thread
[AJUDA] Text Draw - by lukas_loky - 17.09.2011, 19:30
Re: [AJUDA] Text Draw - by .Skool_. - 17.09.2011, 19:46
Re: [AJUDA] Text Draw - by Hiuship - 17.09.2011, 19:48
Re: [AJUDA] Text Draw - by .Skool_. - 17.09.2011, 19:49
Re: [AJUDA] Text Draw - by lukas_loky - 17.09.2011, 20:43
Re: [AJUDA] Text Draw - by Hiuship - 17.09.2011, 23:31

Forum Jump:


Users browsing this thread: 1 Guest(s)