[Pedido] Textdraw name
#2

Mano pega de exemplo

Inicio GM
pawn Код:
new Text:Nomes[MAX_PLAYERS];
pawn Код:
public OnPlayerSpawn(playerid)
{
    new str1[40];
    TextDrawShowForPlayer(playerid, Nomes[playerid]);
    format(str1,sizeof(str1),"%s",pNome(playerid));
    TextDrawSetString(Nomes[playerid], str1);
}
pawn Код:
public OnGameModeInit()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    Nomes[i] = TextDrawCreate(290.000000,380.000000,"_");
    TextDrawAlignment(Nomes[i],0);
    TextDrawBackgroundColor(Nomes[i],0x000000ff);
    TextDrawFont(Nomes[i],1);
    TextDrawLetterSize(Nomes[i],0.89,1.000000);
    TextDrawColor(Nomes[i],0xffffffff);
    TextDrawSetOutline(Nomes[i],1);
    TextDrawSetProportional(Nomes[i],1);
    TextDrawSetShadow(Nomes[i],1);
    }
}
Fim GM
pawn Код:
stock pNome(playerid)
{//Essa funзгo irб returnar o nome do jogador, sendo assim nгo precisa toda vez usar new nome[MAX_PLAYER_NAME]; GetPlayerName e bla bla bla.
    GetPlayerName(playerid, nome, sizeof(nome));
    return nome;
}
Reply


Messages In This Thread
Textdraw name - by maikons - 27.12.2013, 02:26
Re: Textdraw name - by Wellington1999 - 27.12.2013, 02:46
Re: Textdraw name - by Input - 27.12.2013, 02:48
Re: Textdraw name - by Wellington1999 - 27.12.2013, 03:00
Re: Textdraw name - by maikons - 28.12.2013, 20:45

Forum Jump:


Users browsing this thread: 2 Guest(s)