03.06.2009, 16:58
I was searching for a gentle solution on that, ended up with this function:
http://dracoblue.net/dev/toggle-mapi...-a-player/138/
Does not need to store any colors, just does it's work by some bitwise-or .
- Draco
http://dracoblue.net/dev/toggle-mapi...-a-player/138/
pawn Код:
stock togglePlayerMapIconVisibility(playerid,bool:visible){
SetPlayerColor(playerid, (GetPlayerColor(playerid) | 0xFF) - (visible ? 0x00 : 0xFF));
}
- Draco