07.01.2011, 21:23
You need to shift player color 8 bits right to remove the alpha part, like this:
If you wanna know how this works:
https://sampwiki.blast.hk/wiki/Binary
https://sampwiki.blast.hk/wiki/Hex
pawn Код:
format(str, sizeof(str), "{%x}", GetPlayerColor(playerid) >> 8);
https://sampwiki.blast.hk/wiki/Binary
https://sampwiki.blast.hk/wiki/Hex