12.09.2014, 08:48
To change a player transparency for a player we do this:
For visible:
SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) | 0x000000FF));
And to hide him we use :
SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00));
My question is about the color calculation, those calculs allow to change Transparency without touching color, but how to change color without touching the transparency ??
Thanks !
For visible:
SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) | 0x000000FF));
And to hide him we use :
SetPlayerMarkerForPlayer(i, playerid, (GetPlayerColor(playerid) & 0xFFFFFF00));
My question is about the color calculation, those calculs allow to change Transparency without touching color, but how to change color without touching the transparency ??
Thanks !