SA-MP Forums Archive
[Pedido] Tutorial sobre essas Text Drawn. - 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: [Pedido] Tutorial sobre essas Text Drawn. (/showthread.php?tid=376888)



Tutorial sobre essas Text Drawn. - felipe_mr - 12.09.2012

Ola eu queria agradecer a todos que este vendo este Post, e estou aqui fazendo um pedido de um tutorial de como colocar um text drawn em cima do player, level de procurado em cima do player e de ADM ex: Ola em que Posso ajuda-lo PF me ajuda jб tentei fazer com o cуdigo do wiki mas nгo deu certo OBG pela Atenзгo.


Re: Tutorial sobre essas Text Drawn. - Rhayziin - 12.09.2012

https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
https://sampforum.blast.hk/showthread.php?tid=334784




Re: Tutorial sobre essas Text Drawn. - felipe_mr - 12.09.2012

Mas o deste tуpico https://sampforum.blast.hk/showthread.php?tid=334784 nгo e sу para admin logado na Rcon ?

pawn Код:
//Adicione esta forward junto as outras forwards '-'
forward AtualizarChatBubble();

//Adicione este settimer na public OnGameModeInit
SetTimer("AtualizarChatBubble", 1000, true);

// Callback ._.
public AtualizarChatBubble()
{
    for(new x=0; x < MAX_PLAYERS; x++)
    {
        if(IsPlayerAdmin(x))
        {
            SetPlayerChatBubble(x, "Administrador", 0xFF0000AA, 100.0, 10000); // 0xFF0000AA = Cor // 0xFF0000AA = Cor Vermelho .
        //Vocк pode alterar o texto " Adminstrador " pelo texto a sua escolha. ;)
        }
    }
}

Quote:
Originally Posted by dPlaYer_
Посмотреть сообщение
Eu vou usar o texto: Adminstrador. Somente para adminstradores logados na RCON



Re: Tutorial sobre essas Text Drawn. - Rhayziin - 12.09.2012

Vocк pode tentar mudar isso:
pawn Код:
if(IsPlayerAdmin(x))
para isso:
pawn Код:
if((x))
ou
pawn Код:
if(IsPlayerConnected(x))



Re: Tutorial sobre essas Text Drawn. - Sky™ - 12.09.2012

Com essa
Funзгo mesmo do Felipe da para fazer tranquilamente Colocando as funзгo de Procurado do Seu game Mode
em vez de
pawn Код:
IsPlayerAdmin



Re: Tutorial sobre essas Text Drawn. - DartakousLien - 12.09.2012

text drawn ? escreve direito
text draw

#edit
SetPlayerChatBubble coloca um texto encima de sua cabeзa por um determinado tempo

use o que o Rhayziin disse


Re: Tutorial sobre essas Text Drawn. - Sky™ - 12.09.2012

@ edit

pawn Код:
¬¬



Re: Tutorial sobre essas Text Drawn. - DartakousLien - 12.09.2012

como assim ? nao entendi ? :/