SA-MP Forums Archive
Como fazer uma textdraw igual essa? Level/Casa/Horas Jogadas/ORG - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: Como fazer uma textdraw igual essa? Level/Casa/Horas Jogadas/ORG (/showthread.php?tid=431471)



Como fazer uma textdraw igual essa? Level/Casa/Horas Jogadas/ORG - Zepetto67 - 18.04.2013

Como faзo uma igual essa so que com Level/Casa/Horas Jogadas/ORG




Video: https://www.youtube.com/watch?v=OmUGpkjQlBI


Re: Como fazer uma textdraw igual essa? Level/Casa/Horas Jogadas/ORG - CaozinhoDosCorre - 18.04.2013

Para Criar os TEXT:

https://sampforum.blast.hk/showthread.php?tid=117851

e estude estб Funзгo:

https://sampwiki.blast.hk/wiki/TextDrawSetString


Respuesta: Re: Como fazer uma textdraw igual essa? Level/Casa/Horas Jogadas/ORG - Zepetto67 - 18.04.2013

Quote:
Originally Posted by CaozinhoDosCorre
Посмотреть сообщение
Nгo entedir muito a ultima funзгo. tem como fazer o comando prб mim?


Re: Respuesta: Re: Como fazer uma textdraw igual essa? Level/Casa/Horas Jogadas/ORG - CaozinhoDosCorre - 18.04.2013

Quote:
Originally Posted by Zepetto67
Посмотреть сообщение
Nгo entedir muito a ultima funзгo. tem como fazer o comando prб mim?
Topo do GM:
Criamos uma Variaveis, e Definimos nossa CallBack

pawn Код:
new Text:BarraPretaForum, Text:TLevel;
forward TextDrawLevel;
CallBack OnGameModeInit.

pawn Код:
TLevel= TextDrawCreate(3.000000, 430.000000, "-");
    TextDrawBackgroundColor(TLevel, 255);
    TextDrawFont(TLevel, 0);
    TextDrawLetterSize(TLevel, 0.5, 2.0);
    TextDrawColor(TLevel, -1);
    TextDrawSetOutline(TLevel, 1);
    TextDrawSetProportional(TLevel, 1);
    TextDrawSetShadow(TLevel, 1);
    BarraPretaForum = TextDrawCreate(0.000000, 428.000000, "~n~ ~n~"); // Barra Preta
    TextDrawBackgroundColor(BarraPretaForum, 255);
    TextDrawFont(BarraPretaForum, 1);
    TextDrawLetterSize(BarraPretaForum, 0.500000, 2.000000);
    TextDrawColor(BarraPretaForum, -1);
    TextDrawSetOutline(BarraPretaForum, 2);
    TextDrawSetProportional(BarraPretaForum, 1);
    TextDrawSetShadow(BarraPretaForum, 1);
    TextDrawUseBox(BarraPretaForum, 1);
    TextDrawBoxColor(BarraPretaForum, 151587227);
    TextDrawTextSize(BarraPretaForum, 640.000000, -240.000000);


Criamos uma CallBack para Atualizar a TextDraw:

pawn Код:
public TextDrawLevel(playerid);
{

        new cLevel[128];
    format(cLevel, sizeof(cLevel), "Level: %d", PlayerInfo[playerid][pLevel]);
    TextDrawSetString(playerid, TLevel, cLevel);

}
na CallBack
Код:
OnPlayerSpawn.
Adiciona:
Код:
TextDrawShowForPlayer(playerid, TLevel);
TextDrawLevel(playerid);


Espero ter te ajudado mano