[Ajuda] probleminha com textdraw de level
#7

pawn Код:
new Text:Textdraw0[MAX_PLAYERS];
forward AtualizarLevel();

public OnGameModeInit()
{
    SetTimer("Scores", 1000, true);
    return true;
}

public OnPlayerSpawn(playerid)
{
    Textdraw0[playerid] = TextDrawCreate(500.000000, 100.000000, "Level:");
    TextDrawBackgroundColor(Textdraw0[playerid], -1);
    TextDrawFont(Textdraw0[playerid], 3);
    TextDrawLetterSize(Textdraw0[playerid], 0.460000, 1.100000);
    TextDrawColor(Textdraw0[playerid], 255);
    TextDrawSetOutline(Textdraw0[playerid], 1);
    TextDrawSetProportional(Textdraw0[playerid], 1);
    TextDrawShowForPlayer(playerid, Textdraw0[playerid]);
    return true;
}

public AtualizarLevel()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
                {
                    new teste[128];
                    format(teste, sizeof(teste), "Level: %d", GetPlayerLevel1(playerid));
                    TextDrawSetString(Textdraw0[i], teste);
                }
        }
}
Tуpico Cloused..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)