SA-MP Forums Archive
[Ajuda] Mudar cor do nick direto para Hexadecimal - 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] Mudar cor do nick direto para Hexadecimal (/showthread.php?tid=578925)



Mudar cor do nick direto para Hexadecimal - Ts3 - 23.06.2015

Alguйm teria uma ideia de como criar um comando para mudar a cor do nick, porйm direto para hexadecimal?

/cornick #696969

E ficaria cinza.. eu tinha uma base porйm perdi. :/


Re: Comando - zPain - 23.06.2015

pawn Код:
CMD:cornick(playerid, params[]) {
    static hex;
    if(!sscanf(params, "x", hex)) {
        SetPlayerColor(playerid, hex);
    }
    return 1;
}
Se eu nгo me engano, o uso seria /cornick 0x696969FF. Nгo tenho sa:mp instalado para testar.


Re: Comando - ipsLuan - 23.06.2015

Pegue algum desses e use como base.

https://sampforum.blast.hk/showthread.php?tid=274249
https://sampforum.blast.hk/showthread.php?tid=191465
https://sampforum.blast.hk/showthread.php?tid=472305


Re: Comando - Ts3 - 23.06.2015

Abraзos e obrigado zPain, a vocк tambйm Luan.