[Ajuda] Como mudar cor do Chat do Player?
#1

Estou com um GM onde nele a cor do chat й verde, procurei em todos os lugares como muda essa cor e nгo achei.
Meu OnPlayerText:

Код:
public OnPlayerText(playerid, text[])
{
	new giver[MAX_PLAYER_NAME];
	new giveplayer[MAX_PLAYER_NAME];
	new tmp[128];
	new string[128];
	new giveplayerid;
	PlayerInactivity[playerid] = 0;
	//SpamProtection(playerid);
	if(TentouDivulgar(text))
	{
		if(cdivulgar[playerid] >= 6)
		{
			SendClientMessage(playerid, COLOR_LIGHTBLUE,"Aqui vocк nгo pode anunciar servidores!");
   			SendClientMessage(playerid, COLOR_LIGHTBLUE,"Seu servidor й uma merda, nгo divulgue-o aqui!");
   			PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
   			Kick(playerid);
		}
		format(string, 128, "AdmAviso: [%d]%s tentou divulgar: %s.",playerid,PlayerName(playerid),text);
		ABroadCast(COLOR_YELLOW,string,1);
		DivulgouLog(string);
       	cdivulgar[playerid] += 1;
       	return 0;
	}
Eu tava lendo que devia ser algo assim:

Код:
new string[256];
  format(string,sizeof(string),"[ID: %d] %s{FFFFFF}",playerid,text);
  SendPlayerMessageToAll(playerid,string);
  return 0;
}
Sу nгo sei se tem alguma diferenзa pelo GM ser RPG. Alguйm me ajuda
Reply
#2

pawn Код:
new string[256];
  format(string,sizeof(string),"[ID: %d]{FFFFFF} %s",playerid,text); //aqui agora o que ele digitar saira branco
  SendPlayerMessageToAll(playerid,string); //%s <<< isso e o que ele digitara entao a cor que esta entre {} tem quer vir antes
  return 0;
}
Reply
#3

no meu OnPlayerText nгo tem isso, eu posso colocar?
OBS.: nгo sou muito experiente em pawno, mas esse SendPlayerMessageToAll nгo й mensagem global? ou tem tipo um alcance mбximo?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)