OnPlayerText -
Ts3 - 27.06.2014
pawn Код:
new string[144], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[%d] %s: %s", playerid, name, text);
SendClientMessageToAll(playerid, string);
return 0;
Olб o cуdigo acima e de quando o player fala no chat, pois bem ele estб do jeito que quero..
Ex: [ID] Nick: texto
Com um porйm, o texto estб todo preto '-'
Do inicio ao fim da linha tudo preto.. alguйm sabe o motivo?
Gostaria dessa forma, porйm nгo com o texto preto, a cor do ID e nick seria uma, e a do texto branca.
Help.
Re: OnPlayerText -
4G4M3N0M - 27.06.2014
assim ela irб ficar toda branca se quiser que eu coloque outras cores me fale quais!
pawn Код:
new string[144], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "{FFFFFF}[%d] %s: %s", playerid, name, text);
SendClientMessageToAll(playerid, string);
return 0;
Re: OnPlayerText -
Ts3 - 27.06.2014
Ah cara isso eu sei fazer nй. '-'
Gostaria que ficasse com as cores padrгo, porйm nesse modelo.. [ID] Nick: text
Vlw por tentar ajudar..
Re: OnPlayerText -
darkxdll - 27.06.2014
Quote:
SendClientMessageToAll(playerid, string);
|
Pelo amor de deus em !
Mandando mensagem pra todos ou pra 1 player sу ? Se decide amigo !
Re: OnPlayerText -
n0minal - 27.06.2014
Faz o que o Agamenon falou ali mas crie uma tag com a hex branca antes do ultimo "%s"... Desta forma sу o texto ficarб branco...
@Edit: e remova o parвmetro "playerid" da funзгo SendClientMessageToAll como o dark disse acima...
@Edit 2
Quote:
format(string, sizeof(string), "{000000} [%d] %s: {FFFFFF}%s", playerid, name, text);
SendClientMessageToAll(string);
|
Re: OnPlayerText -
UPsamp - 27.06.2014
PHP код:
new string[144], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "[%d] %s: {FFFFFF}%s", playerid, name, text);
SendClientMessageToAll(0x000000AA, string);
return 0;