[Ajuda] Chatglobal e Cor da fala.
#1

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.
Reply
#2

20.0

SetPlayerChatBubble
Reply
#3

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

Poste teu OnPlayerText
Reply
#5

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;

Reply
#6

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
Reply
#7

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

imagem fico massa mas voce consiguiu arumar oque queria ?
Reply
#9

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

sim passa o ip

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


Forum Jump:


Users browsing this thread: 1 Guest(s)