[DUV] Atualizar TextDrawn
#10

Em public OnGameModeInit()

pawn Код:
new string[256];
    format(string, 256, "                ~w~Kills:~r~ %d ~w~Deaths:~r~ %d ~w~Level:~r~ %d ~w~Exp:~r~ %d ~w~Estudos:~r~ %d", pap_CarregarInt(playerid, "Matou"), pap_CarregarInt(playerid, "Morreu"), pap_CarregarInt(playerid, "Level"), pap_CarregarInt(playerid, "Experiencia"), pap_CarregarInt(playerid, "Estudos"));
    Infos = TextDrawCreate(0,421.5,string);
    TextDrawUseBox(Infos,1);
    TextDrawBoxColor(Infos,0x00000066);
    TextDrawTextSize(barra,800,400);
    TextDrawAlignment(Infos,0);
    TextDrawBoxColor(barra, 126); //Cor do fundo
    TextDrawBackgroundColor(Infos,0x000000ff);
    TextDrawFont(Infos,1);
    TextDrawColor(Infos,0xffffffff);
    TextDrawSetOutline(Infos,1);
    TextDrawSetProportional(Infos,1);
    TextDrawSetShadow(Infos,1);
No Topo Do GM

pawn Код:
forward ATT();
no final do GM

pawn Код:
public ATT()
{
    TextDrawHideForPlayer(playerid, Infos);
    new string[256];
    format(string, 256, "                ~w~Kills:~r~ %d ~w~Deaths:~r~ %d ~w~Level:~r~ %d ~w~Exp:~r~ %d ~w~Estudos:~r~ %d", pap_CarregarInt(playerid, "Matou"), pap_CarregarInt(playerid, "Morreu"), pap_CarregarInt(playerid, "Level"), pap_CarregarInt(playerid, "Experiencia"), pap_CarregarInt(playerid, "Estudos"));
    TextDrawSetString(Infos, string);
    TextDrawShowForPlayer(playerid, Infos);
Agora em On Player Update

pawn Код:
public OnPlayerUpdate(playerid)
{
     ATT();
     return 1;
}
OnPlayerConnect

pawn Код:
ATT();
Reply


Messages In This Thread
[DUV] Atualizar TextDrawn - by [NWD]Tweener_ - 26.08.2010, 21:23
Re: [DUV] Atualizar TextDrawn - by BiieL - 26.08.2010, 21:27
Re: [DUV] Atualizar TextDrawn - by zSuYaNw - 26.08.2010, 21:33
Re: [DUV] Atualizar TextDrawn - by [NWD]Tweener_ - 26.08.2010, 21:57
Re: [DUV] Atualizar TextDrawn - by BiieL - 26.08.2010, 22:01
Re: [DUV] Atualizar TextDrawn - by [NWD]Tweener_ - 26.08.2010, 22:07
Re: [DUV] Atualizar TextDrawn - by BiieL - 26.08.2010, 22:10
Re: [DUV] Atualizar TextDrawn - by Canabis - 26.08.2010, 22:51
Re: [DUV] Atualizar TextDrawn - by [NWD]Tweener_ - 26.08.2010, 23:01
Re: [DUV] Atualizar TextDrawn - by TiagoPS - 27.08.2010, 13:08

Forum Jump:


Users browsing this thread: 2 Guest(s)