SA-MP Forums Archive
[Ajuda] Chatglobal e Cor da fala. - 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] Chatglobal e Cor da fala. (/showthread.php?tid=438166)



Chatglobal e Cor da fala. - Paulaosamp - 18.05.2013

Queria saber um valor para configurar o radius disso :
https://sampwiki.blast.hk/wiki/LimitGlobalChatRadius

Quero que me recomendem um valor de chat prуximo.

E tambйm queria saber como eu altero a cor da fala que aparece na encima da cabeзa do player. Ja tentei de tudo e infelizmente nгo consegui soluзгo.


Re: Chatglobal e Cor da fala. - Lуs - 18.05.2013

20.0

SetPlayerChatBubble


Re: Chatglobal e Cor da fala. - Paulaosamp - 18.05.2013

Obrigado, mas mesmo com essas configuraзхes no radius . o chat global continua...


Re: Chatglobal e Cor da fala. - focaximubh - 19.05.2013

Poste teu OnPlayerText


Re: Chatglobal e Cor da fala. - Paulaosamp - 20.05.2013

Quote:

public OnPlayerText(playerid, text[])
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(Mute[playerid] == 1)
{
SendClientMessage(playerid, Vermelho, "[ANT-FLOOD]Vocк nгo pode falar enquanto estб mudo!");
return 0;
}
SetPlayerChatBubble(playerid, text, 0xFFFFFFFF, 100.0, 10000);
if(strfind(text, ":7777", true) != -1 || strfind(text, ":7780", true) != -1 || strfind(text, ":7781", true) != -1 || strfind(text, ":7880", true) != -1 || strfind(text, ":7700", true) != -1 || strfind(text, ": 7 7 7 7", true) != -1 || strfind(text, ": 7777", true) != -1){
new string[256];
SendClientMessage(playerid,Vermelho,"(INFO) Vocк foi banido por estar divulgando um servidor.");
format(string, sizeof(string), "(INFO) %s foi banido. Razгo: Tentou divulgar." ,PlayerName(playerid));
SendClientMessageToAll(tcadm, string);
Ban(playerid);
return 0;
}
if(strfind(text, "www.", true) != -1 || strfind(text, "w w w .", true) != -1 || strfind(text, ".com", true) != -1 || strfind(text, ". c o m", true) != -1){
new string[256];
SendClientMessage(playerid,Vermelho,"(INFO) Vocк foi kickado por estar divulgando um site.");
format(string, sizeof(string), "(INFO) %s foi kickado. Razгo: Tentou divulgar site" ,PlayerName(playerid));
SendClientMessageToAll(tcadm, string);
Kick(playerid);
return 0;
}
if(NaFaculdade[playerid] == 1)
{
Conversa[playerid] = Conversa[playerid]+1;
new Float:X;
new Float:Y;
new Float:Z;
new string[256];
PlayerPlaySound(playerid,1147, X, Y, Z);
format(string, sizeof(string), "(INFO) Vocк estб conversando. Vocк recebeu um aviso, agora vocк estб com %d/3 aviso(s).", Conversa[playerid]);
SendClientMessage(playerid, Aviso, string);
if(Conversa[playerid] == 3){
SpawnPlayer(playerid);
NaFaculdade[playerid] = 0;
minutos[playerid] = 0;
SendClientMessage(playerid, Vermelho, "(INFO) Vocк conversou muito e foi expulso da biblioteca!");
}
return 0;
}
if(strfind(text, "Hack", true) == 0)
{
SendClientMessageToAll(Vermelho, "Use: /relatorio [nick] [motivo]");
}
if(InCall[playerid]==1)
{
format(str3,128," [Celular] %s (%d): %s",GetName(playerid),playerid,text);
SendClientMessage(gc,BLUEWHITE,str3);
format(str3,128," [Celular] %s (%d): %s",GetName(playerid),playerid,text);
SendClientMessage(sender,BLUEWHITE,str3);
return 0;
}
if(dini_Int(file,"Entrevista") == 1){
new string[256];
format(string,sizeof(string),"[»] O entrevistado %d responde: %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
if(dini_Int(file,"Entrevista") == 2){
new string[256];
format(string,sizeof(string),"[»] O reporter %d pergunta: %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;
}
if(AFK[playerid] == 1)
{
SendClientMessage(playerid, Vermelho, "Para voltar ao jogo digite /on.");
return 0;
}
if(PlayerInfo[playerid][Logged] == 0){
SendClientMessage(playerid, Vermelho, "Logue-se antes.");
return 0;
}
new string[256];
format(string,sizeof(string),"[ID: %d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;

Peguei essa parte de outro game mod, desconfio que hб algo ai que habilita o chat global,desconfio dessa parte:

Quote:

new string[256];
format(string,sizeof(string),"[ID: %d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
return 0;




Re: Chatglobal e Cor da fala. - iNicianTe - 20.05.2013

pawn Код:
new string[256];
format(string,sizeof(string),"[ID: %d] %s",playerid,text);//[ID: %d] %s eo que aparecer dps do nome do player
SendPlayerMessageToAll(playerid,string);
return 0;
ESSA EA PARTE SIM


Re: Chatglobal e Cor da fala. - Paulaosamp - 20.05.2013

Vou analisar volto em breve, vou retira-la, alguйm pode testar comigo ?


Re: Chatglobal e Cor da fala. - iNicianTe - 20.05.2013

imagem fico massa mas voce consiguiu arumar oque queria ?


Re: Chatglobal e Cor da fala. - Paulaosamp - 20.05.2013

Foi um erro eu postei no local errado a imagem. poderia testar comigo?


Re: Chatglobal e Cor da fala. - iNicianTe - 20.05.2013

sim passa o ip

ou se quiser faz assim
troque o "[ID: %d] %s"
por
[ID: %d]{COR} %s