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;
}
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;
}