SA-MP Forums Archive
[Ajuda] Tag De Admin - 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: [Ajuda] Tag De Admin (/showthread.php?tid=460266)



Tag De Admin - Speedpz - 27.08.2013

Bom quero colocar um tag de admin qndo digita no chat

pawn Код:
public OnPlayerText(playerid, text[])
{
if(APlayerData[playerid][PlayerName])
{
new textv2[128], name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    format(textv2, sizeof (textv2), "%s [ID:%d]:{FFFFFF} %s", name, playerid, text);
    SendClientMessageToAll(GetPlayerColor(playerid),textv2);
    return 0;
}



Re: Tag De Admin - Dragonsaurus - 27.08.2013

pawn Код:
public OnPlayerText(playerid, text[])
{
     if(APlayerData[playerid][PlayerName])
     {
          new textv2[128], name[MAX_PLAYER_NAME];
          GetPlayerName(playerid, name, sizeof (name));
          format(textv2, sizeof (textv2), "%s [ID:%d]:{FFFFFF} %s", name, playerid, text);
          SendClientMessageToAll(GetPlayerColor(playerid),textv2);
          SetPlayerChatBubble(playerid, textv2, GetPlayerColor(playerid), 10);  // Adicione esta linha, e desculpe pelo mau portuguкs, usando o ****** Tradutor...
     }
     return 0;
}