12.09.2014, 09:08
pawn Код:
stock SetPlayerColorAlpha(playerid, alpha) //By Betamaster
{
new r, g, b, a;
HexToRGBA(GetPlayerColor(playerid), r, g, b, a);
SetPlayerColor(playerid, RGBAToHex(r, g, b, alpha));
}
stock HexToRGBA(colour, &r, &g, &b, &a) //By Betamaster
{
r = (colour >> 24) & 0xFF;
g = (colour >> 16) & 0xFF;
b = (colour >> 8) & 0xFF;
a = colour & 0xFF;
}
pawn Код:
SetPlayerColorAlpha(playerid, yourvalue);