[PEDIDO] Comando -
ViCtOr_Mc - 22.06.2011
E ae pessoal tudo na boa?? Eu nгo sei se fiz esse tуpico, mais queria fazer outro, que quando a pessoa digita-se algo no chat, aparecia a ID da pessoa do lado, tipo RPG, aqueles que mostra, sу que queria um que nгo venha bug ou que o nome da pessoa fica invisнvel, de preferкncia, a cor da informaзгo da ID fosse branca tipo assim:
COR BRANCA = [ID: %d]
Tipo isso sacou?? Vlw quem me ajudar !!!
Re: [PEDIDO] Comando -
Macintosh - 22.06.2011
Poste seu OnPlayerText.
Re: [PEDIDO] Comando -
RockFire - 22.06.2011
PHP код:
new nome[MAX_PLAYER_NAME],str[128];
GetPlayerName(playerid,nome,sizeof(nome));
format(str,sizeof(str),"{FF00FF}%s{FFFFFF} (%d): %s",nome,playerid,text);
SendClientMessageToAll(-1,str);
Em OnPlayerText :B
Re: [PEDIDO] Comando -
ViCtOr_Mc - 22.06.2011
Vlw depois eu testo,

Qualquer coisa do EDIT
Re: [PEDIDO] Comando -
ViCtOr_Mc - 23.06.2011
Fico tudo bagunзado, mostro a ID, e depois mais embaixo fico o nome normal, tem jeito de arrumar ai?
Re: [PEDIDO] Comando -
Ricop522 - 23.06.2011
public OnPlayerCommandText()
new nome[MAX_PLAYER_NAME],str[128];
GetPlayerName(playerid,nome,sizeof(nome));
format(str,sizeof(str),"{FF00FF}%s{FFFFFF} (%d): %s",nome,playerid,text);
SendClientMessageToAll(-1,str);
return 0x0;
}
Re: [PEDIDO] Comando -
TheGarfield - 23.06.2011
Quote:
Originally Posted by Ricop522
public OnPlayerCommandText()
new nome[MAX_PLAYER_NAME],str[128];
GetPlayerName(playerid,nome,sizeof(nome));
format(str,sizeof(str),"{FF00FF}%s{FFFFFF} (%d): %s",nome,playerid,text);
SendClientMessageToAll(-1,str);
return 0x0;
}
|
lol
pawn Код:
public OnPlayerText(playerid, text[])
{
new n[24], string[128];
format(string, sizeof(string),"{FF00FF}%s{FFFFFF}(%i): %s",GetPlayerName(playerid, n, 24),playerid, text);
SendClientMessageToAll(-1, string);
return 0;
}
acho que o OnPlayerCommandText nгo existe o parвmetro text.
Re: [PEDIDO] Comando -
ViCtOr_Mc - 23.06.2011
Funciono, portanto eu queria que a cor sу fosse no ID, nгo nome inteiro.
Tipo sу o ID que tive-se uma cor sу.
Re: [PEDIDO] Comando -
Shadoww5 - 23.06.2011
Sinceramente, eu ainda nгo entendi o que vocк falou ...
Tem alguma screenshot que vocк pode nos mostrar ? Facilitaria muito.
Re: [PEDIDO] Comando -
Ricop522 - 23.06.2011
Quote:
Originally Posted by TheGarfield
lol
pawn Код:
public OnPlayerText(playerid, text[]) { new n[24], string[128]; format(string, sizeof(string),"{FF00FF}%s{FFFFFF}(%i): %s",GetPlayerName(playerid, n, 24),playerid, text); SendClientMessageToAll(-1, string); return 0; }
acho que o OnPlayerCommandText nгo existe o parвmetro text.
|
Viajei. Era Text.
PHP код:
new n[MAX_PLAYER_NAME], string[0x80]; GetPlayerName(playerid, n, sizeof(n));
format(string, sizeof(string),"%s[%i] entrou!",n,playerid);
SendClientMessageToAll(-1, string);