Ajuda Bug Chat -
EquipeBMR - 01.03.2014
Bom Eu Venho Pedir uma Ajuda a Voces tipo eu quero por o id antes do nick no chat isso eu ja consegui mais o problema e que quero deixar ID:%i para branco para aparecer assim branco e o nick com as cores aleatorias msm da score board normal vo mandar os codigos para voces entenderem melhor e me ajudar
olha ele assim fica o id e o nick com a cor aleatoria
//Chat com ID
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(StrText, sizeof(StrText),"[ID:%i] %s: {FFFFFF}%s", playerid, nome, text);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 0;
}
so que eu queria deixar assim o com o ID Branco й somente o Nick com a Cor Aleatoria da Score Board Me Ajudem Vlw Ai Gente
//Chat com ID
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(StrText, sizeof(StrText),"[{F9FAF5}ID:%i] %s: {FFFFFF}%s", playerid, nome, text);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 0;
}
Re: Ajuda Bug Chat -
yNexus - 01.03.2014
PHP Code:
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(StrText, sizeof(StrText),"%s: [{F9FAF5}ID:%i]: {FFFFFF}%s", playerid, nome, text);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 0;
}
Re: Ajuda Bug Chat -
EquipeBMR - 01.03.2014
Man ASSIM EU SEI FAZER TO FALANDO COM O ID ANTES DO NICK
Re: Ajuda Bug Chat -
EquipeBMR - 01.03.2014
Quote:
Originally Posted by yNexus
PHP Code:
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(StrText, sizeof(StrText),"%s: [{F9FAF5}ID:%i]: {FFFFFF}%s", playerid, nome, text);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 0;
}
|
EU TO PRECISANDO COM O ID ANTES DO NICK NAO DPS
Re: Ajuda Bug Chat -
Stroon - 02.03.2014
Quote:
Originally Posted by yNexus
PHP Code:
new StrText[129], nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
format(StrText, sizeof(StrText),"%s: [{F9FAF5}ID:%i]: {FFFFFF}%s", playerid, nome, text);
SendClientMessageToAll(GetPlayerColor(playerid), StrText);
return 0;
}
|
Eu coloco isso em?? ↓
pawn Code:
public OnPlayerText(playerid, text[])
Quote:
Originally Posted by EquipeBMR
Man ASSIM EU SEI FAZER TO FALANDO COM O ID ANTES DO NICK
|
Mano eu acho que й so inverter.
pawn Code:
format(StrText, sizeof(StrText),"[{F9FAF5}ID:%i]: %s: {FFFFFF}%s", playerid, nome, text);
Re: Ajuda Bug Chat -
EquipeBMR - 02.03.2014
NAO DEU CERTO MAN CONTINUOU A MSM MERDA
Re: Ajuda Bug Chat -
Stroon - 02.03.2014
No meu nгo obteve resultando eu coloquei so que nгo apareceu o ID, Esperando alguйm que saiba como arrumar.
-
EquipeBMR desliga o caps mano?
Re: Ajuda Bug Chat -
Stroon - 02.03.2014
Alguйm da um help pra nois?
Re: Ajuda Bug Chat -
PT - 02.03.2014
ve se e isso:
pawn Code:
new pttext[128];
GetPlayerName(playerid, pttext, MAX_PLAYER_NAME);
format(pttext, sizeof(pttext),"{FFFFFF}[ID:%d] {%06x}%s: {FFFFFF}%s", playerid, (GetPlayerColor(playerid) >>> 8), pttext, text);
SendClientMessageToAll(GetPlayerColor(playerid), pttext);
Re: Ajuda Bug Chat -
Stroon - 03.03.2014
Na minha Gm fico certinho, do jeito que eu queria » Nick:[ID]
Vк se funfa na sua Gm ai, Faz umas adptaзгo!
pawn Code:
public OnPlayerText(playerid, text[])
{
new string[200];
format(string,sizeof(string),"[%d] %s",playerid,text);
SendPlayerMessageToAll(playerid,string);
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
new string2[128];
format(string2, 128,"%s[%d]: %s", aname, playerid,text);
printf("%s",string2);
return 0;
}