[Ajuda] TextDraw
#4

No topo do gm:
pawn Код:
new Matou[MAX_PLAYERS]; // a variбvel que verifica quantos o player matou e seta quantos players ele matou
new Morreu[MAX_PLAYERS]; // seta quantas vezes ele morreu e verifica quantas vezes ele morreu
Em OnPlayerDeath
pawn Код:
Morreu[playerid] ++; // seta que o player morreu
Matou[killerid] ++; // seta que o player matou
pawn Код:
forward UpdateText2(playerid);
public UpdateText2(playerid)
{
    new pScore[16], pPing[16], pSkin[16], pCash[16];
    format(pPing, sizeof(pPing), "%d", Morreu[playerid]);
    TextDrawSetString(Textdraw3, pPing);
    format(pScore, sizeof(pScore), "%d", GetPlayerScore(playerid));
    TextDrawSetString(Textdraw4, pScore);
    format(pSkin, sizeof(pSkin), "%d", GetPlayerSkin(playerid));
    TextDrawSetString(Textdraw8, pSkin);
    format(pCash, sizeof(pCash), "%d", Matou[playerid]);
    TextDrawSetString(Textdraw6, pCash);
    return 1;
}
Sу vocк arrumar direito. Te aconselho a aprender a usar variбveis.
Reply


Messages In This Thread
TextDraw - by LKING - 16.05.2014, 22:28
Re: TextDraw - by MultiKill - 16.05.2014, 22:35
Re: TextDraw - by LKING - 16.05.2014, 22:37
Re: TextDraw - by MultiKill - 16.05.2014, 22:46
Re: TextDraw - by LKING - 16.05.2014, 22:51
Re: TextDraw - by MultiKill - 16.05.2014, 22:54
Re: TextDraw - by LKING - 16.05.2014, 22:59
Re: TextDraw - by MultiKill - 16.05.2014, 23:07
Re: TextDraw - by LKING - 16.05.2014, 23:10
Re: TextDraw - by MultiKill - 16.05.2014, 23:20

Forum Jump:


Users browsing this thread: 4 Guest(s)