[Ajuda] Onplayertext
#1

como faзo para ficar

[STAFF] NICK [ID]: TEXTO

obs: estou tentando fazer sozinho mais nгo consigo deixar do geito que quero!!


CODIGO:

pawn Код:
if(ContaPlayer[playerid][Level] > 0)
    {
        new string[168];
        format(string, sizeof(string), "{00FF00}[STAFF][ID:{A9A9A9}%d{FFFFFF}]: {FFFFFF}%s", playerid, text);
        SendPlayerMessageToAll(playerid, string);
        SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
        return 0;
    }
Reply
#2

Код:
SetTimer("CargoADM", 1000, true);
Код:
forward CargoADM();
public CargoADM()
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
     	new String[256];
		if(Player[i][pCargoADM] > 1)
		{
			format(String,256,"CargoADM");
			SetPlayerChatBubble(i,String, 0xFF0000FF, 20.0, 2000);
		}
	}
}
Reply
#3

Seria legal se vocк falasse o que nгo ta dando certo, mas bora lб.

1 - Vocк formata a string e nгo usa na funзгo, faзa assim:
PHP код:
SetPlayerChatBubble(playeridstring0xFF0000FF100.010000); 
2 - Todas essas cores nгo serгo aplicadas na mensagem, apenas a cor que vocк passou na funзгo. Portanto vai sair algo assim no chat:
{00FF00}[STAFF][ID:{A9A9A9}0{FFFFFF}]: {FFFFFF}Artista


Isso eu estou falando baseado em problemas relacionados a funзгo SetPlayerChatBubble. Vocк nгo disse o que ta acontecendo, entгo nгo tem como eu te ajudar direito.
Reply
#4

Aii estб:

Quote:
Quote:

public OnPlayerText

Quote:

if(ContaPlayer[playerid][Level] > 0) //Variavel da STAFF
{
SetPlayerChatBubble(playerid, text, 0xFFFDE8AA, 100.0, 10000);
format(MsgText, sizeof (MsgText), "{FFFFFF}[ID:%d]{00EE76}[STAFF]{ffffff}: %s", playerid, text);
SendPlayerMessageToAll(playerid,MsgText);
return 0;
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)