SA-MP Forums Archive
[Ajuda] chat id - 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] chat id (/showthread.php?tid=631716)



chat id - iName - 03.04.2017

queria por a id do player antes do nome, mas a cor da id fica a mesma cor do nome e eu queria deixar branca a id

codigo
PHP код:
static pName[MAX_PLAYER_NAME],string[256];GetPlayerName(playeridpNamesizeof(pName));
    
format(stringsizeof(string), "%d %s: {ffffff}%s",playerid,pNametext);
    
SendClientMessageToAll(GetPlayerColor(playerid), string); 



Re: chat id - ViniBorn - 03.04.2017

pawn Код:
format(string, sizeof(string), "{FFFFFF}%d {%h}%s: {ffffff}%s",playerid,GetPlayerColor(playerid) >>> 8,pName, text);
Tenta assim


Re: chat id - iName - 03.04.2017

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
pawn Код:
format(string, sizeof(string), "{FFFFFF}%d {%h}%s: {ffffff}%s",playerid,GetPlayerColor(playerid) >>> 8,pName, text);
Tenta assim
vlww.